diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 64e6f690..49f12ca7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: cache: true - uses: hashicorp/setup-terraform@v2 with: - terraform_version: "1.2.*" + terraform_version: "1.9.*" terraform_wrapper: false - name: Run acceptance tests run: make testacc diff --git a/.gitignore b/.gitignore index 93bb5a3f..15b9a1d2 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ dev/ .idea .vscode/launch.json .speakeasy/temp +demo/* \ No newline at end of file diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bfda4a3a..50ab00a7 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: b5c8bf75-06e1-47c8-b9ae-ce49ba56069d management: docChecksum: a107ffd47833df714c17fbb8f44eb9c0 docVersion: "1.0" - speakeasyVersion: 1.345.3 - generationVersion: 2.378.3 - releaseVersion: 0.23.1 - configChecksum: b6a0270266465815fae95e0a1038eca3 + speakeasyVersion: 1.352.0 + generationVersion: 2.384.4 + releaseVersion: 0.23.7 + configChecksum: f6814dfdacb389e0eddca61bb7c19067 repoURL: https://github.com/opalsecurity/terraform-provider-opal.git repoSubDirectory: . published: true @@ -15,7 +15,7 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.1.2 constsAndDefaults: 0.1.4 - core: 3.24.2 + core: 3.24.6 deprecations: 2.81.1 globalSecurity: 2.81.6 globalServerURLs: 2.82.1 @@ -231,7 +231,6 @@ generatedFiles: - internal/sdk/.gitignore - internal/sdk/models/operations/options.go - internal/sdk/.gitattributes - - internal/sdk/internal/hooks/registration.go - internal/sdk/internal/hooks/hooks.go - examples/README.md - go.mod diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0dc560d5..617fd335 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,17 +1,17 @@ -speakeasyVersion: 1.345.3 +speakeasyVersion: 1.352.0 sources: opal-terraform-provider: sourceNamespace: opal-terraform-provider - sourceRevisionDigest: sha256:fe19f5356675f1f897227b4f8ab1411ecc32b41f2d4d0e676d9c79a4afd87812 - sourceBlobDigest: sha256:66b70d74e51f3898206042823c9b7a5feb55bd42f22f6a9d94c7856d6f8c8f55 + sourceRevisionDigest: sha256:5de9ff927b6e35695aff3f63995be2b1bac285ace66b939fdc5944fa30de7b43 + sourceBlobDigest: sha256:86b9ddd85104869419ff2b39c734475e8343b5faea5af83f20ccc4a5c482876c tags: - latest targets: terraform: source: opal-terraform-provider sourceNamespace: opal-terraform-provider - sourceRevisionDigest: sha256:fe19f5356675f1f897227b4f8ab1411ecc32b41f2d4d0e676d9c79a4afd87812 - sourceBlobDigest: sha256:66b70d74e51f3898206042823c9b7a5feb55bd42f22f6a9d94c7856d6f8c8f55 + sourceRevisionDigest: sha256:5de9ff927b6e35695aff3f63995be2b1bac285ace66b939fdc5944fa30de7b43 + sourceBlobDigest: sha256:86b9ddd85104869419ff2b39c734475e8343b5faea5af83f20ccc4a5c482876c outLocation: . workflow: workflowVersion: 1.0.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1901863b..2a7ac926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v3.0.3 +- Fix various bugs in request configuration validation leading to spurious changes and errors + ## v3.0.2 - No longer need to explicitly pass the auth token to the Opal provider. The provider will look for the OPAL_AUTH_TOKEN envar and use it if set. - 404s on refreshing state for Terrafpr, resources will result in the resource being recreated on a subsequent apply rather than erroring. diff --git a/docs/data-sources/app.md b/docs/data-sources/app.md index 4d680c2b..1393f4c9 100644 --- a/docs/data-sources/app.md +++ b/docs/data-sources/app.md @@ -31,5 +31,3 @@ data "opal_app" "my_app" { - `description` (String) A description of the app. - `name` (String) The name of the app. - `type` (String) The type of an app. - - diff --git a/docs/data-sources/apps.md b/docs/data-sources/apps.md index 28a29ab5..978ceb85 100644 --- a/docs/data-sources/apps.md +++ b/docs/data-sources/apps.md @@ -43,5 +43,3 @@ Read-Only: - `id` (String) The ID of the app. - `name` (String) The name of the app. - `type` (String) The type of an app. - - diff --git a/docs/data-sources/configuration_template_list.md b/docs/data-sources/configuration_template_list.md index f3c40df2..65ba1518 100644 --- a/docs/data-sources/configuration_template_list.md +++ b/docs/data-sources/configuration_template_list.md @@ -59,5 +59,3 @@ Read-Only: - `visibility` (String) The visibility level of the entity. must be one of ["GLOBAL", "LIMITED"] - `visibility_group_ids` (Set of String) - - diff --git a/docs/data-sources/events.md b/docs/data-sources/events.md index 82ad124e..aa92ebe7 100644 --- a/docs/data-sources/events.md +++ b/docs/data-sources/events.md @@ -68,5 +68,3 @@ Read-Only: - `additional_properties` (String) Parsed as JSON. - `sub_event_type` (String) The subevent type. - - diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index db71cf5c..8592f185 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -196,5 +196,3 @@ Read-Only: - `owner_ids` (Set of String) - `require_admin_approval` (Boolean) Whether this reviewer stage should require admin approval. - `require_manager_approval` (Boolean) Whether this reviewer stage should require manager approval. - - diff --git a/docs/data-sources/group_list.md b/docs/data-sources/group_list.md index 5eab2466..fa44f30e 100644 --- a/docs/data-sources/group_list.md +++ b/docs/data-sources/group_list.md @@ -177,5 +177,3 @@ Read-Only: - `owner_ids` (Set of String) - `require_admin_approval` (Boolean) Whether this reviewer stage should require admin approval. - `require_manager_approval` (Boolean) Whether this reviewer stage should require manager approval. - - diff --git a/docs/data-sources/group_resource_list.md b/docs/data-sources/group_resource_list.md index ed5b9298..1650af33 100644 --- a/docs/data-sources/group_resource_list.md +++ b/docs/data-sources/group_resource_list.md @@ -51,5 +51,3 @@ Read-Only: - `access_level_name` (String) The human-readable name of the access level. - `access_level_remote_id` (String) The machine-readable identifier of the access level. - - diff --git a/docs/data-sources/group_reviewers_stages_list.md b/docs/data-sources/group_reviewers_stages_list.md index 91d19ed3..00af0ca0 100644 --- a/docs/data-sources/group_reviewers_stages_list.md +++ b/docs/data-sources/group_reviewers_stages_list.md @@ -38,5 +38,3 @@ Read-Only: - `owner_ids` (Set of String) - `require_admin_approval` (Boolean) Whether this reviewer stage should require admin approval. - `require_manager_approval` (Boolean) Whether this reviewer stage should require manager approval. - - diff --git a/docs/data-sources/group_tags.md b/docs/data-sources/group_tags.md index 483d8de0..00399492 100644 --- a/docs/data-sources/group_tags.md +++ b/docs/data-sources/group_tags.md @@ -40,5 +40,3 @@ Read-Only: - `updated_at` (String) The date the tag was last updated. - `user_creator_id` (String) The ID of the user that created the tag. - `value` (String) The value of the tag. - - diff --git a/docs/data-sources/group_users.md b/docs/data-sources/group_users.md index 15569ec3..7ef901dc 100644 --- a/docs/data-sources/group_users.md +++ b/docs/data-sources/group_users.md @@ -54,5 +54,3 @@ Read-Only: - `access_level_name` (String) The human-readable name of the access level. - `access_level_remote_id` (String) The machine-readable identifier of the access level. - - diff --git a/docs/data-sources/message_channel.md b/docs/data-sources/message_channel.md index 0d4283c8..5d393bc6 100644 --- a/docs/data-sources/message_channel.md +++ b/docs/data-sources/message_channel.md @@ -31,5 +31,3 @@ data "opal_message_channel" "my_messagechannel" { - `name` (String) The name of the message channel. - `remote_id` (String) The remote ID of the message channel - `third_party_provider` (String) The third party provider of the message channel. must be one of ["SLACK"] - - diff --git a/docs/data-sources/message_channel_list.md b/docs/data-sources/message_channel_list.md index 4e996acb..6e9cf2bd 100644 --- a/docs/data-sources/message_channel_list.md +++ b/docs/data-sources/message_channel_list.md @@ -34,5 +34,3 @@ Read-Only: - `name` (String) The name of the message channel. - `remote_id` (String) The remote ID of the message channel - `third_party_provider` (String) The third party provider of the message channel. must be one of ["SLACK"] - - diff --git a/docs/data-sources/on_call_schedule.md b/docs/data-sources/on_call_schedule.md index d1e089cb..f8b23f09 100644 --- a/docs/data-sources/on_call_schedule.md +++ b/docs/data-sources/on_call_schedule.md @@ -30,5 +30,3 @@ data "opal_on_call_schedule" "my_oncallschedule" { - `name` (String) The name of the on call schedule. - `remote_id` (String) The remote ID of the on call schedule - `third_party_provider` (String) The third party provider of the on call schedule. must be one of ["OPSGENIE", "PAGER_DUTY"] - - diff --git a/docs/data-sources/on_call_schedule_list.md b/docs/data-sources/on_call_schedule_list.md index 8bd811dd..929197e5 100644 --- a/docs/data-sources/on_call_schedule_list.md +++ b/docs/data-sources/on_call_schedule_list.md @@ -33,5 +33,3 @@ Read-Only: - `name` (String) The name of the on call schedule. - `remote_id` (String) The remote ID of the on call schedule - `third_party_provider` (String) The third party provider of the on call schedule. must be one of ["OPSGENIE", "PAGER_DUTY"] - - diff --git a/docs/data-sources/owner.md b/docs/data-sources/owner.md index 0df20f86..c68b6cc1 100644 --- a/docs/data-sources/owner.md +++ b/docs/data-sources/owner.md @@ -32,5 +32,3 @@ data "opal_owner" "my_owner" { - `name` (String) The name of the owner. - `reviewer_message_channel_id` (String) - `source_group_id` (String) - - diff --git a/docs/data-sources/owner_from_name.md b/docs/data-sources/owner_from_name.md index 82bb3a68..c67c9d46 100644 --- a/docs/data-sources/owner_from_name.md +++ b/docs/data-sources/owner_from_name.md @@ -33,5 +33,3 @@ data "opal_owner_from_name" "my_ownerfromname" { - `name` (String) The name of the owner. - `reviewer_message_channel_id` (String) - `source_group_id` (String) - - diff --git a/docs/data-sources/owners.md b/docs/data-sources/owners.md index 9d4a91de..388612f5 100644 --- a/docs/data-sources/owners.md +++ b/docs/data-sources/owners.md @@ -46,5 +46,3 @@ Read-Only: - `name` (String) The name of the owner. - `reviewer_message_channel_id` (String) - `source_group_id` (String) - - diff --git a/docs/data-sources/requests.md b/docs/data-sources/requests.md index 6b068481..ef45dc73 100644 --- a/docs/data-sources/requests.md +++ b/docs/data-sources/requests.md @@ -85,5 +85,3 @@ Read-Only: - `group_id` (String) The ID of the group requested. - `name` (String) The name of the target. - `resource_id` (String) The ID of the resource requested. - - diff --git a/docs/data-sources/resource.md b/docs/data-sources/resource.md index 0fd78fdf..c1fb3f99 100644 --- a/docs/data-sources/resource.md +++ b/docs/data-sources/resource.md @@ -332,5 +332,3 @@ Read-Only: - `enabled_on_revocation` (Boolean) - `ticket_project_id` (String) - `ticket_provider` (String) The third party ticketing platform provider. must be one of ["JIRA", "LINEAR", "SERVICE_NOW"] - - diff --git a/docs/data-sources/resource_message_channel_list.md b/docs/data-sources/resource_message_channel_list.md index 76b89fc3..35113664 100644 --- a/docs/data-sources/resource_message_channel_list.md +++ b/docs/data-sources/resource_message_channel_list.md @@ -39,5 +39,3 @@ Read-Only: - `name` (String) The name of the message channel. - `remote_id` (String) The remote ID of the message channel - `third_party_provider` (String) The third party provider of the message channel. must be one of ["SLACK"] - - diff --git a/docs/data-sources/resource_reviewers_list.md b/docs/data-sources/resource_reviewers_list.md index cbd952b0..3fe60bbd 100644 --- a/docs/data-sources/resource_reviewers_list.md +++ b/docs/data-sources/resource_reviewers_list.md @@ -28,5 +28,3 @@ data "opal_resource_reviewers_list" "my_resourcereviewerslist" { ### Read-Only - `data` (List of String) The IDs of owners that are reviewers for this resource. - - diff --git a/docs/data-sources/resource_tags.md b/docs/data-sources/resource_tags.md index d55c3646..cb690ffa 100644 --- a/docs/data-sources/resource_tags.md +++ b/docs/data-sources/resource_tags.md @@ -40,5 +40,3 @@ Read-Only: - `updated_at` (String) The date the tag was last updated. - `user_creator_id` (String) The ID of the user that created the tag. - `value` (String) The value of the tag. - - diff --git a/docs/data-sources/resource_visibility.md b/docs/data-sources/resource_visibility.md index 63240749..399f5128 100644 --- a/docs/data-sources/resource_visibility.md +++ b/docs/data-sources/resource_visibility.md @@ -29,5 +29,3 @@ data "opal_resource_visibility" "my_resourcevisibility" { - `visibility` (String) The visibility level of the entity. must be one of ["GLOBAL", "LIMITED"] - `visibility_group_ids` (Set of String) - - diff --git a/docs/data-sources/resources_access_status.md b/docs/data-sources/resources_access_status.md index 0abfcd6b..de44c916 100644 --- a/docs/data-sources/resources_access_status.md +++ b/docs/data-sources/resources_access_status.md @@ -55,5 +55,3 @@ Read-Only: - `access_level_name` (String) The human-readable name of the access level. - `access_level_remote_id` (String) The machine-readable identifier of the access level. - - diff --git a/docs/data-sources/resources_list.md b/docs/data-sources/resources_list.md index 92bc4c18..fbf06489 100644 --- a/docs/data-sources/resources_list.md +++ b/docs/data-sources/resources_list.md @@ -354,5 +354,3 @@ Read-Only: - `enabled_on_revocation` (Boolean) - `ticket_project_id` (String) - `ticket_provider` (String) The third party ticketing platform provider. must be one of ["JIRA", "LINEAR", "SERVICE_NOW"] - - diff --git a/docs/data-sources/resources_users_list.md b/docs/data-sources/resources_users_list.md index b97a4a20..1e3959c3 100644 --- a/docs/data-sources/resources_users_list.md +++ b/docs/data-sources/resources_users_list.md @@ -61,5 +61,3 @@ Read-Only: - `access_level_name` (String) The human-readable name of the access level. - `access_level_remote_id` (String) The machine-readable identifier of the access level. - - diff --git a/docs/data-sources/sessions.md b/docs/data-sources/sessions.md index a02d6444..b2d9cacf 100644 --- a/docs/data-sources/sessions.md +++ b/docs/data-sources/sessions.md @@ -60,5 +60,3 @@ Read-Only: - `access_level_name` (String) The human-readable name of the access level. - `access_level_remote_id` (String) The machine-readable identifier of the access level. - - diff --git a/docs/data-sources/tag.md b/docs/data-sources/tag.md index 8a82f522..b6985584 100644 --- a/docs/data-sources/tag.md +++ b/docs/data-sources/tag.md @@ -32,5 +32,3 @@ data "opal_tag" "my_tag" { - `updated_at` (String) The date the tag was last updated. - `user_creator_id` (String) The ID of the user that created the tag. - `value` (String) The value of the tag. - - diff --git a/docs/data-sources/tags_list.md b/docs/data-sources/tags_list.md index 333648da..fec55bf7 100644 --- a/docs/data-sources/tags_list.md +++ b/docs/data-sources/tags_list.md @@ -44,5 +44,3 @@ Read-Only: - `updated_at` (String) The date the tag was last updated. - `user_creator_id` (String) The ID of the user that created the tag. - `value` (String) The value of the tag. - - diff --git a/docs/data-sources/uar.md b/docs/data-sources/uar.md index 0745c463..f61cb39b 100644 --- a/docs/data-sources/uar.md +++ b/docs/data-sources/uar.md @@ -59,5 +59,3 @@ Read-Only: - `key` (String) The key of the tag. - `value` (String) The value of the tag. - - diff --git a/docs/data-sources/uars_list.md b/docs/data-sources/uars_list.md index 45f37fcf..81f771d1 100644 --- a/docs/data-sources/uars_list.md +++ b/docs/data-sources/uars_list.md @@ -71,5 +71,3 @@ Read-Only: - `key` (String) The key of the tag. - `value` (String) The value of the tag. - - diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md index a2ec0f17..1694b7fa 100644 --- a/docs/data-sources/user.md +++ b/docs/data-sources/user.md @@ -34,5 +34,3 @@ data "opal_user" "my_user" { - `last_name` (String) The last name of the user. - `name` (String) The full name of the user. - `position` (String) The user's position. - - diff --git a/docs/data-sources/user_tags.md b/docs/data-sources/user_tags.md index 5cd008d8..5374715e 100644 --- a/docs/data-sources/user_tags.md +++ b/docs/data-sources/user_tags.md @@ -40,5 +40,3 @@ Read-Only: - `updated_at` (String) The date the tag was last updated. - `user_creator_id` (String) The ID of the user that created the tag. - `value` (String) The value of the tag. - - diff --git a/docs/data-sources/users.md b/docs/data-sources/users.md index 923f1427..b91d6320 100644 --- a/docs/data-sources/users.md +++ b/docs/data-sources/users.md @@ -45,5 +45,3 @@ Read-Only: - `last_name` (String) The last name of the user. - `name` (String) The full name of the user. - `position` (String) The user's position. - - diff --git a/docs/index.md b/docs/index.md index 93e252b4..3a918226 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,7 +17,7 @@ terraform { required_providers { opal = { source = "opalsecurity/opal" - version = "0.23.1" + version = "0.23.7" } } } @@ -30,7 +30,10 @@ provider "opal" { ## Schema -### Optional +### Required - `bearer_auth` (String, Sensitive) + +### Optional + - `server_url` (String) Server URL (defaults to https://api.opal.dev/v1) diff --git a/docs/resources/configuration_template.md b/docs/resources/configuration_template.md index 5cc10d83..1933aa35 100644 --- a/docs/resources/configuration_template.md +++ b/docs/resources/configuration_template.md @@ -145,5 +145,3 @@ Optional: - `enabled_on_revocation` (Boolean) Not Null - `ticket_project_id` (String) - `ticket_provider` (String) The third party ticketing platform provider. must be one of ["JIRA", "LINEAR", "SERVICE_NOW"] - - diff --git a/docs/resources/group_tag.md b/docs/resources/group_tag.md index a0b13251..aff80c99 100644 --- a/docs/resources/group_tag.md +++ b/docs/resources/group_tag.md @@ -26,5 +26,3 @@ resource "opal_group_tag" "my_grouptag" { - `group_id` (String) The ID of the group to apply the tag to. Requires replacement if changed. - `tag_id` (String) The ID of the tag to apply. Requires replacement if changed. - - diff --git a/docs/resources/group_user.md b/docs/resources/group_user.md index cb11c9c3..b92adda1 100644 --- a/docs/resources/group_user.md +++ b/docs/resources/group_user.md @@ -54,5 +54,3 @@ Read-Only: - `access_level_name` (String) The human-readable name of the access level. - `access_level_remote_id` (String) The machine-readable identifier of the access level. - - diff --git a/docs/resources/resource_tag.md b/docs/resources/resource_tag.md index e8e7609c..70123740 100644 --- a/docs/resources/resource_tag.md +++ b/docs/resources/resource_tag.md @@ -26,5 +26,3 @@ resource "opal_resource_tag" "my_resourcetag" { - `resource_id` (String) The ID of the resource to apply the tag to. Requires replacement if changed. - `tag_id` (String) The ID of the tag to apply. Requires replacement if changed. - - diff --git a/docs/resources/tag_user.md b/docs/resources/tag_user.md index 587bbc04..f60fa621 100644 --- a/docs/resources/tag_user.md +++ b/docs/resources/tag_user.md @@ -26,5 +26,3 @@ resource "opal_tag_user" "my_taguser" { - `tag_id` (String) The ID of the tag to apply. Requires replacement if changed. - `user_id` (String) The ID of the user to apply the tag to. Requires replacement if changed. - - diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index bd710231..4ef43c13 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { opal = { source = "opalsecurity/opal" - version = "0.23.1" + version = "0.23.7" } } } diff --git a/gen.yaml b/gen.yaml index 2458a318..bf55452d 100644 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: false flattenGlobalSecurity: true terraform: - version: 0.23.1 + version: 0.23.7 additionalDataSources: [] additionalDependencies: {} additionalResources: [] diff --git a/go.mod b/go.mod index 0e6cdb74..25c55903 100644 --- a/go.mod +++ b/go.mod @@ -2,20 +2,20 @@ module github.com/opalsecurity/terraform-provider-opal go 1.21 -toolchain go1.21.12 - require ( github.com/cenkalti/backoff/v4 v4.2.0 github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 - github.com/hashicorp/terraform-plugin-docs v0.13.0 - github.com/hashicorp/terraform-plugin-framework v1.7.0 - github.com/hashicorp/terraform-plugin-framework-validators v0.10.0 + github.com/hashicorp/terraform-plugin-docs v0.19.4 + github.com/hashicorp/terraform-plugin-framework v1.10.0 + github.com/hashicorp/terraform-plugin-framework-validators v0.13.0 github.com/hashicorp/terraform-plugin-go v0.23.0 github.com/hashicorp/terraform-plugin-testing v1.9.0 github.com/pkg/errors v0.9.1 ) require ( + github.com/BurntSushi/toml v1.2.1 // indirect + github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.0 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect @@ -24,11 +24,13 @@ require ( github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect + github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect github.com/cloudflare/circl v1.3.7 // indirect github.com/fatih/color v1.16.0 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/hashicorp/cli v1.1.6 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -52,7 +54,7 @@ require ( github.com/imdario/mergo v0.3.15 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mitchellh/cli v1.1.4 // indirect + github.com/mattn/go-runewidth v0.0.9 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/go-wordwrap v1.0.0 // indirect @@ -60,14 +62,17 @@ require ( github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/oklog/run v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect - github.com/russross/blackfriday v1.6.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.5.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect + github.com/yuin/goldmark v1.7.1 // indirect + github.com/yuin/goldmark-meta v1.1.0 // indirect github.com/zclconf/go-cty v1.14.4 // indirect + go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect golang.org/x/crypto v0.25.0 // indirect + golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect golang.org/x/mod v0.17.0 // indirect golang.org/x/net v0.25.0 // indirect golang.org/x/sync v0.7.0 // indirect @@ -78,4 +83,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 // indirect google.golang.org/protobuf v1.34.0 // indirect + gopkg.in/yaml.v2 v2.3.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index b38c7211..6961d056 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,13 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= -github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= +github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/Kunde21/markdownfmt/v3 v3.1.0 h1:KiZu9LKs+wFFBQKhrZJrFZwtLnCCWJahL+S+E/3VnM0= +github.com/Kunde21/markdownfmt/v3 v3.1.0/go.mod h1:tPXN1RTyOzJwhfHoon9wUr4HGYmWgVxSQN6VBJDkrVc= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Masterminds/sprig/v3 v3.2.0/go.mod h1:tWhwTbUTndesPNeF0C900vKoq283u6zp4APT9vaF3SI= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= @@ -18,11 +19,12 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= +github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/cenkalti/backoff/v4 v4.2.0 h1:HN5dHm3WBOgndBH6E8V0q2jIYIR3s9yglV8k/+MN3u4= @@ -38,7 +40,6 @@ github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw= github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= @@ -64,9 +65,10 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/hashicorp/cli v1.1.6 h1:CMOV+/LJfL1tXCOKrgAX0uRKnzjj/mpmqNXloRSy2K8= +github.com/hashicorp/cli v1.1.6/go.mod h1:MPon5QYlgjjo0BSoAiN0ESeT5fRzDjVRp+uioJ0piz4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -99,12 +101,12 @@ github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVW github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf4fYUmB923Wzbq1ICg= github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= -github.com/hashicorp/terraform-plugin-docs v0.13.0 h1:6e+VIWsVGb6jYJewfzq2ok2smPzZrt1Wlm9koLeKazY= -github.com/hashicorp/terraform-plugin-docs v0.13.0/go.mod h1:W0oCmHAjIlTHBbvtppWHe8fLfZ2BznQbuv8+UD8OucQ= -github.com/hashicorp/terraform-plugin-framework v1.7.0 h1:wOULbVmfONnJo9iq7/q+iBOBJul5vRovaYJIu2cY/Pw= -github.com/hashicorp/terraform-plugin-framework v1.7.0/go.mod h1:jY9Id+3KbZ17OMpulgnWLSfwxNVYSoYBQFTgsx044CI= -github.com/hashicorp/terraform-plugin-framework-validators v0.10.0 h1:4L0tmy/8esP6OcvocVymw52lY0HyQ5OxB7VNl7k4bS0= -github.com/hashicorp/terraform-plugin-framework-validators v0.10.0/go.mod h1:qdQJCdimB9JeX2YwOpItEu+IrfoJjWQ5PhLpAOMDQAE= +github.com/hashicorp/terraform-plugin-docs v0.19.4 h1:G3Bgo7J22OMtegIgn8Cd/CaSeyEljqjH3G39w28JK4c= +github.com/hashicorp/terraform-plugin-docs v0.19.4/go.mod h1:4pLASsatTmRynVzsjEhbXZ6s7xBlUw/2Kt0zfrq8HxA= +github.com/hashicorp/terraform-plugin-framework v1.10.0 h1:xXhICE2Fns1RYZxEQebwkB2+kXouLC932Li9qelozrc= +github.com/hashicorp/terraform-plugin-framework v1.10.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM= +github.com/hashicorp/terraform-plugin-framework-validators v0.13.0 h1:bxZfGo9DIUoLLtHMElsu+zwqI4IsMZQBRRy4iLzZJ8E= +github.com/hashicorp/terraform-plugin-framework-validators v0.13.0/go.mod h1:wGeI02gEhj9nPANU62F2jCaHjXulejm/X+af4PdZaNo= github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= @@ -119,8 +121,6 @@ github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= -github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= @@ -139,19 +139,17 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mitchellh/cli v1.1.4 h1:qj8czE26AU4PbiaPXK5uVmMSM+V5BYsFBiM9HhGRLUA= -github.com/mitchellh/cli v1.1.4/go.mod h1:vTLESy5mRhKOs9KDp0/RATawxP1UqBmdrpVRMnpcvKQ= +github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= @@ -172,13 +170,10 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= -github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -193,9 +188,9 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -206,17 +201,23 @@ github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= +github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc= +github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= +go.abhg.dev/goldmark/frontmatter v0.2.0 h1:P8kPG0YkL12+aYk2yU3xHv4tcXzeVnN+gU0tJ5JnxRw= +go.abhg.dev/goldmark/frontmatter v0.2.0/go.mod h1:XqrEkZuM57djk7zrlRUB02x8I5J0px76YjkOzhB4YlU= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= @@ -233,7 +234,6 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -285,7 +285,7 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/planmodifiers/boolplanmodifier/suppress_diff.go b/internal/planmodifiers/boolplanmodifier/suppress_diff.go index 5748e4b3..3d4b5520 100644 --- a/internal/planmodifiers/boolplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/boolplanmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package boolplanmodifier diff --git a/internal/planmodifiers/float64planmodifier/suppress_diff.go b/internal/planmodifiers/float64planmodifier/suppress_diff.go index dd9f500e..d8a2d4c2 100644 --- a/internal/planmodifiers/float64planmodifier/suppress_diff.go +++ b/internal/planmodifiers/float64planmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package float64planmodifier diff --git a/internal/planmodifiers/int64planmodifier/suppress_diff.go b/internal/planmodifiers/int64planmodifier/suppress_diff.go index 8b6c216c..1011b9e2 100644 --- a/internal/planmodifiers/int64planmodifier/suppress_diff.go +++ b/internal/planmodifiers/int64planmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package int64planmodifier diff --git a/internal/planmodifiers/listplanmodifier/suppress_diff.go b/internal/planmodifiers/listplanmodifier/suppress_diff.go index b96e4e34..148f46e6 100644 --- a/internal/planmodifiers/listplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/listplanmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package listplanmodifier diff --git a/internal/planmodifiers/mapplanmodifier/suppress_diff.go b/internal/planmodifiers/mapplanmodifier/suppress_diff.go index 5708ff23..9ab8af8c 100644 --- a/internal/planmodifiers/mapplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/mapplanmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package mapplanmodifier diff --git a/internal/planmodifiers/numberplanmodifier/suppress_diff.go b/internal/planmodifiers/numberplanmodifier/suppress_diff.go index c481504e..20a219c8 100644 --- a/internal/planmodifiers/numberplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/numberplanmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package numberplanmodifier diff --git a/internal/planmodifiers/objectplanmodifier/suppress_diff.go b/internal/planmodifiers/objectplanmodifier/suppress_diff.go index c8e0981d..56f0f5aa 100644 --- a/internal/planmodifiers/objectplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/objectplanmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package objectplanmodifier diff --git a/internal/planmodifiers/setplanmodifier/suppress_diff.go b/internal/planmodifiers/setplanmodifier/suppress_diff.go index c9868e4d..fec57a9c 100644 --- a/internal/planmodifiers/setplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/setplanmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package setplanmodifier diff --git a/internal/planmodifiers/stringplanmodifier/suppress_diff.go b/internal/planmodifiers/stringplanmodifier/suppress_diff.go index d5963988..3232df4c 100644 --- a/internal/planmodifiers/stringplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/stringplanmodifier/suppress_diff.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package stringplanmodifier diff --git a/internal/planmodifiers/utils/state_check.go b/internal/planmodifiers/utils/state_check.go index 66d91506..51d53622 100644 --- a/internal/planmodifiers/utils/state_check.go +++ b/internal/planmodifiers/utils/state_check.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/provider/app_data_source.go b/internal/provider/app_data_source.go index 8cda886b..4c2b92f7 100644 --- a/internal/provider/app_data_source.go +++ b/internal/provider/app_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -108,7 +108,9 @@ func (r *AppDataSource) Read(ctx context.Context, req datasource.ReadRequest, re return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetAppIDRequest{ ID: id, } diff --git a/internal/provider/app_data_source_sdk.go b/internal/provider/app_data_source_sdk.go index 7ed2536c..054c15c9 100644 --- a/internal/provider/app_data_source_sdk.go +++ b/internal/provider/app_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/apps_data_source.go b/internal/provider/apps_data_source.go index 58bea76a..07fb456c 100644 --- a/internal/provider/apps_data_source.go +++ b/internal/provider/apps_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/apps_data_source_sdk.go b/internal/provider/apps_data_source_sdk.go index 83405883..35cb5d2b 100644 --- a/internal/provider/apps_data_source_sdk.go +++ b/internal/provider/apps_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/configurationtemplate_resource.go b/internal/provider/configurationtemplate_resource.go index 453a0240..b398a668 100644 --- a/internal/provider/configurationtemplate_resource.go +++ b/internal/provider/configurationtemplate_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -402,7 +402,9 @@ func (r *ConfigurationTemplateResource) Delete(ctx context.Context, req resource return } - configurationTemplateID := data.ConfigurationTemplateID.ValueString() + var configurationTemplateID string + configurationTemplateID = data.ConfigurationTemplateID.ValueString() + request := operations.DeleteConfigurationTemplateRequest{ ConfigurationTemplateID: configurationTemplateID, } diff --git a/internal/provider/configurationtemplate_resource_sdk.go b/internal/provider/configurationtemplate_resource_sdk.go index 70abb45b..88ed2edc 100644 --- a/internal/provider/configurationtemplate_resource_sdk.go +++ b/internal/provider/configurationtemplate_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -9,7 +9,9 @@ import ( ) func (r *ConfigurationTemplateResourceModel) ToSharedCreateConfigurationTemplateInfo() *shared.CreateConfigurationTemplateInfo { - adminOwnerID := r.AdminOwnerID.ValueString() + var adminOwnerID string + adminOwnerID = r.AdminOwnerID.ValueString() + var breakGlassUserIds []string = []string{} for _, breakGlassUserIdsItem := range r.BreakGlassUserIds { breakGlassUserIds = append(breakGlassUserIds, breakGlassUserIdsItem.ValueString()) @@ -22,11 +24,17 @@ func (r *ConfigurationTemplateResourceModel) ToSharedCreateConfigurationTemplate for _, memberOncallScheduleIdsItem := range r.MemberOncallScheduleIds { memberOncallScheduleIds = append(memberOncallScheduleIds, memberOncallScheduleIdsItem.ValueString()) } - name := r.Name.ValueString() + var name string + name = r.Name.ValueString() + var requestConfigurations []shared.RequestConfiguration = []shared.RequestConfiguration{} for _, requestConfigurationsItem := range r.RequestConfigurations { - allowRequests := requestConfigurationsItem.AllowRequests.ValueBool() - autoApproval := requestConfigurationsItem.AutoApproval.ValueBool() + var allowRequests bool + allowRequests = requestConfigurationsItem.AllowRequests.ValueBool() + + var autoApproval bool + autoApproval = requestConfigurationsItem.AutoApproval.ValueBool() + var condition *shared.Condition if requestConfigurationsItem.Condition != nil { var groupIds []string = []string{} @@ -48,7 +56,9 @@ func (r *ConfigurationTemplateResourceModel) ToSharedCreateConfigurationTemplate } else { maxDuration = nil } - priority := requestConfigurationsItem.Priority.ValueInt64() + var priority int64 + priority = requestConfigurationsItem.Priority.ValueInt64() + recommendedDuration := new(int64) if !requestConfigurationsItem.RecommendedDuration.IsUnknown() && !requestConfigurationsItem.RecommendedDuration.IsNull() { *recommendedDuration = requestConfigurationsItem.RecommendedDuration.ValueInt64() @@ -61,8 +71,12 @@ func (r *ConfigurationTemplateResourceModel) ToSharedCreateConfigurationTemplate } else { requestTemplateID = nil } - requireMfaToRequest := requestConfigurationsItem.RequireMfaToRequest.ValueBool() - requireSupportTicket := requestConfigurationsItem.RequireSupportTicket.ValueBool() + var requireMfaToRequest bool + requireMfaToRequest = requestConfigurationsItem.RequireMfaToRequest.ValueBool() + + var requireSupportTicket bool + requireSupportTicket = requestConfigurationsItem.RequireSupportTicket.ValueBool() + var reviewerStages []shared.ReviewerStage = []shared.ReviewerStage{} for _, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages { operator := new(shared.Operator) @@ -81,7 +95,9 @@ func (r *ConfigurationTemplateResourceModel) ToSharedCreateConfigurationTemplate } else { requireAdminApproval = nil } - requireManagerApproval := reviewerStagesItem.RequireManagerApproval.ValueBool() + var requireManagerApproval bool + requireManagerApproval = reviewerStagesItem.RequireManagerApproval.ValueBool() + reviewerStages = append(reviewerStages, shared.ReviewerStage{ Operator: operator, OwnerIds: ownerIds, @@ -102,12 +118,20 @@ func (r *ConfigurationTemplateResourceModel) ToSharedCreateConfigurationTemplate ReviewerStages: reviewerStages, }) } - requireMfaToApprove := r.RequireMfaToApprove.ValueBool() - requireMfaToConnect := r.RequireMfaToConnect.ValueBool() + var requireMfaToApprove bool + requireMfaToApprove = r.RequireMfaToApprove.ValueBool() + + var requireMfaToConnect bool + requireMfaToConnect = r.RequireMfaToConnect.ValueBool() + var ticketPropagation *shared.TicketPropagationConfiguration if r.TicketPropagation != nil { - enabledOnGrant := r.TicketPropagation.EnabledOnGrant.ValueBool() - enabledOnRevocation := r.TicketPropagation.EnabledOnRevocation.ValueBool() + var enabledOnGrant bool + enabledOnGrant = r.TicketPropagation.EnabledOnGrant.ValueBool() + + var enabledOnRevocation bool + enabledOnRevocation = r.TicketPropagation.EnabledOnRevocation.ValueBool() + ticketProjectID := new(string) if !r.TicketPropagation.TicketProjectID.IsUnknown() && !r.TicketPropagation.TicketProjectID.IsNull() { *ticketProjectID = r.TicketPropagation.TicketProjectID.ValueString() @@ -205,7 +229,9 @@ func (r *ConfigurationTemplateResourceModel) ToSharedUpdateConfigurationTemplate for _, breakGlassUserIdsItem := range r.BreakGlassUserIds { breakGlassUserIds = append(breakGlassUserIds, breakGlassUserIdsItem.ValueString()) } - configurationTemplateID := r.ConfigurationTemplateID.ValueString() + var configurationTemplateID string + configurationTemplateID = r.ConfigurationTemplateID.ValueString() + var linkedAuditMessageChannelIds []string = []string{} for _, linkedAuditMessageChannelIdsItem := range r.LinkedAuditMessageChannelIds { linkedAuditMessageChannelIds = append(linkedAuditMessageChannelIds, linkedAuditMessageChannelIdsItem.ValueString()) @@ -222,8 +248,12 @@ func (r *ConfigurationTemplateResourceModel) ToSharedUpdateConfigurationTemplate } var requestConfigurations []shared.RequestConfiguration = []shared.RequestConfiguration{} for _, requestConfigurationsItem := range r.RequestConfigurations { - allowRequests := requestConfigurationsItem.AllowRequests.ValueBool() - autoApproval := requestConfigurationsItem.AutoApproval.ValueBool() + var allowRequests bool + allowRequests = requestConfigurationsItem.AllowRequests.ValueBool() + + var autoApproval bool + autoApproval = requestConfigurationsItem.AutoApproval.ValueBool() + var condition *shared.Condition if requestConfigurationsItem.Condition != nil { var groupIds []string = []string{} @@ -245,7 +275,9 @@ func (r *ConfigurationTemplateResourceModel) ToSharedUpdateConfigurationTemplate } else { maxDuration = nil } - priority := requestConfigurationsItem.Priority.ValueInt64() + var priority int64 + priority = requestConfigurationsItem.Priority.ValueInt64() + recommendedDuration := new(int64) if !requestConfigurationsItem.RecommendedDuration.IsUnknown() && !requestConfigurationsItem.RecommendedDuration.IsNull() { *recommendedDuration = requestConfigurationsItem.RecommendedDuration.ValueInt64() @@ -258,8 +290,12 @@ func (r *ConfigurationTemplateResourceModel) ToSharedUpdateConfigurationTemplate } else { requestTemplateID = nil } - requireMfaToRequest := requestConfigurationsItem.RequireMfaToRequest.ValueBool() - requireSupportTicket := requestConfigurationsItem.RequireSupportTicket.ValueBool() + var requireMfaToRequest bool + requireMfaToRequest = requestConfigurationsItem.RequireMfaToRequest.ValueBool() + + var requireSupportTicket bool + requireSupportTicket = requestConfigurationsItem.RequireSupportTicket.ValueBool() + var reviewerStages []shared.ReviewerStage = []shared.ReviewerStage{} for _, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages { operator := new(shared.Operator) @@ -278,7 +314,9 @@ func (r *ConfigurationTemplateResourceModel) ToSharedUpdateConfigurationTemplate } else { requireAdminApproval = nil } - requireManagerApproval := reviewerStagesItem.RequireManagerApproval.ValueBool() + var requireManagerApproval bool + requireManagerApproval = reviewerStagesItem.RequireManagerApproval.ValueBool() + reviewerStages = append(reviewerStages, shared.ReviewerStage{ Operator: operator, OwnerIds: ownerIds, @@ -313,8 +351,12 @@ func (r *ConfigurationTemplateResourceModel) ToSharedUpdateConfigurationTemplate } var ticketPropagation *shared.TicketPropagationConfiguration if r.TicketPropagation != nil { - enabledOnGrant := r.TicketPropagation.EnabledOnGrant.ValueBool() - enabledOnRevocation := r.TicketPropagation.EnabledOnRevocation.ValueBool() + var enabledOnGrant bool + enabledOnGrant = r.TicketPropagation.EnabledOnGrant.ValueBool() + + var enabledOnRevocation bool + enabledOnRevocation = r.TicketPropagation.EnabledOnRevocation.ValueBool() + ticketProjectID := new(string) if !r.TicketPropagation.TicketProjectID.IsUnknown() && !r.TicketPropagation.TicketProjectID.IsNull() { *ticketProjectID = r.TicketPropagation.TicketProjectID.ValueString() diff --git a/internal/provider/configurationtemplatelist_data_source.go b/internal/provider/configurationtemplatelist_data_source.go index b55ffb2f..dc7d2a18 100644 --- a/internal/provider/configurationtemplatelist_data_source.go +++ b/internal/provider/configurationtemplatelist_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/configurationtemplatelist_data_source_sdk.go b/internal/provider/configurationtemplatelist_data_source_sdk.go index 3dd29c12..48bd5d6c 100644 --- a/internal/provider/configurationtemplatelist_data_source_sdk.go +++ b/internal/provider/configurationtemplatelist_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/events_data_source.go b/internal/provider/events_data_source.go index f7627cfb..116ea96d 100644 --- a/internal/provider/events_data_source.go +++ b/internal/provider/events_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/events_data_source_sdk.go b/internal/provider/events_data_source_sdk.go index 8ea3a60e..2bd7fe81 100644 --- a/internal/provider/events_data_source_sdk.go +++ b/internal/provider/events_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/group_data_source.go b/internal/provider/group_data_source.go index 1e961ab8..befe3ff8 100644 --- a/internal/provider/group_data_source.go +++ b/internal/provider/group_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -379,7 +379,9 @@ func (r *GroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetGroupRequest{ ID: id, } @@ -408,7 +410,9 @@ func (r *GroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } data.RefreshFromSharedGroup(res.Group) - id1 := data.ID.ValueString() + var id1 string + id1 = data.ID.ValueString() + request1 := operations.GetGroupMessageChannelsRequest{ ID: id1, } @@ -437,7 +441,9 @@ func (r *GroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } data.RefreshFromOperationsGetGroupMessageChannelsResponseBody(res1.Object) - id2 := data.ID.ValueString() + var id2 string + id2 = data.ID.ValueString() + request2 := operations.GetGroupOnCallSchedulesRequest{ ID: id2, } @@ -461,7 +467,9 @@ func (r *GroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res2.StatusCode), debugResponse(res2.RawResponse)) return } - id3 := data.ID.ValueString() + var id3 string + id3 = data.ID.ValueString() + request3 := operations.GetGroupVisibilityRequest{ ID: id3, } diff --git a/internal/provider/group_data_source_sdk.go b/internal/provider/group_data_source_sdk.go index 256a39b5..4ff37731 100644 --- a/internal/provider/group_data_source_sdk.go +++ b/internal/provider/group_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/group_list_data_source.go b/internal/provider/group_list_data_source.go index f1c7ba47..22fc0698 100644 --- a/internal/provider/group_list_data_source.go +++ b/internal/provider/group_list_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/group_list_data_source_sdk.go b/internal/provider/group_list_data_source_sdk.go index 5f9a969b..2bc58ef3 100644 --- a/internal/provider/group_list_data_source_sdk.go +++ b/internal/provider/group_list_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go index 99f7c5d9..3bff52f7 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/group_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -711,7 +711,9 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest, data.RefreshFromSharedUpdateGroupInfo(&res1.UpdateGroupInfoList.Groups[0]) refreshPlan(ctx, plan, &data, resp.Diagnostics) messageChannelIDList := *data.ToSharedMessageChannelIDList() - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request2 := operations.UpdateGroupMessageChannelsRequest{ MessageChannelIDList: messageChannelIDList, ID: id, @@ -740,7 +742,9 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest, onCallScheduleIDList := shared.OnCallScheduleIDList{ OnCallScheduleIds: onCallScheduleIds, } - id1 := data.ID.ValueString() + var id1 string + id1 = data.ID.ValueString() + request3 := operations.UpdateGroupOnCallSchedulesRequest{ OnCallScheduleIDList: onCallScheduleIDList, ID: id1, @@ -763,7 +767,9 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest, } refreshPlan(ctx, plan, &data, resp.Diagnostics) visibilityInfo := *data.ToSharedVisibilityInfo() - id2 := data.ID.ValueString() + var id2 string + id2 = data.ID.ValueString() + request4 := operations.UpdateGroupVisibilityRequest{ VisibilityInfo: visibilityInfo, ID: id2, @@ -785,7 +791,9 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest, return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - id3 := data.ID.ValueString() + var id3 string + id3 = data.ID.ValueString() + request5 := operations.GetGroupRequest{ ID: id3, } @@ -811,7 +819,9 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest, } data.RefreshFromSharedGroup(res5.Group) refreshPlan(ctx, plan, &data, resp.Diagnostics) - id4 := data.ID.ValueString() + var id4 string + id4 = data.ID.ValueString() + request6 := operations.GetGroupMessageChannelsRequest{ ID: id4, } @@ -837,7 +847,9 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest, } data.RefreshFromOperationsGetGroupMessageChannelsResponseBody(res6.Object) refreshPlan(ctx, plan, &data, resp.Diagnostics) - id5 := data.ID.ValueString() + var id5 string + id5 = data.ID.ValueString() + request7 := operations.GetGroupOnCallSchedulesRequest{ ID: id5, } @@ -858,7 +870,9 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest, return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - id6 := data.ID.ValueString() + var id6 string + id6 = data.ID.ValueString() + request8 := operations.GetGroupVisibilityRequest{ ID: id6, } @@ -907,7 +921,9 @@ func (r *GroupResource) Read(ctx context.Context, req resource.ReadRequest, resp return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetGroupRequest{ ID: id, } @@ -936,7 +952,9 @@ func (r *GroupResource) Read(ctx context.Context, req resource.ReadRequest, resp return } data.RefreshFromSharedGroup(res.Group) - id1 := data.ID.ValueString() + var id1 string + id1 = data.ID.ValueString() + request1 := operations.GetGroupMessageChannelsRequest{ ID: id1, } @@ -965,7 +983,9 @@ func (r *GroupResource) Read(ctx context.Context, req resource.ReadRequest, resp return } data.RefreshFromOperationsGetGroupMessageChannelsResponseBody(res1.Object) - id2 := data.ID.ValueString() + var id2 string + id2 = data.ID.ValueString() + request2 := operations.GetGroupOnCallSchedulesRequest{ ID: id2, } @@ -989,7 +1009,9 @@ func (r *GroupResource) Read(ctx context.Context, req resource.ReadRequest, resp resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res2.StatusCode), debugResponse(res2.RawResponse)) return } - id3 := data.ID.ValueString() + var id3 string + id3 = data.ID.ValueString() + request3 := operations.GetGroupVisibilityRequest{ ID: id3, } @@ -1065,7 +1087,9 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest, data.RefreshFromSharedUpdateGroupInfo(&res.UpdateGroupInfoList.Groups[0]) refreshPlan(ctx, plan, &data, resp.Diagnostics) messageChannelIDList := *data.ToSharedMessageChannelIDList() - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request1 := operations.UpdateGroupMessageChannelsRequest{ MessageChannelIDList: messageChannelIDList, ID: id, @@ -1094,7 +1118,9 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest, onCallScheduleIDList := shared.OnCallScheduleIDList{ OnCallScheduleIds: onCallScheduleIds, } - id1 := data.ID.ValueString() + var id1 string + id1 = data.ID.ValueString() + request2 := operations.UpdateGroupOnCallSchedulesRequest{ OnCallScheduleIDList: onCallScheduleIDList, ID: id1, @@ -1117,7 +1143,9 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest, } refreshPlan(ctx, plan, &data, resp.Diagnostics) visibilityInfo := *data.ToSharedVisibilityInfo() - id2 := data.ID.ValueString() + var id2 string + id2 = data.ID.ValueString() + request3 := operations.UpdateGroupVisibilityRequest{ VisibilityInfo: visibilityInfo, ID: id2, @@ -1139,7 +1167,9 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest, return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - id3 := data.ID.ValueString() + var id3 string + id3 = data.ID.ValueString() + request4 := operations.GetGroupRequest{ ID: id3, } @@ -1165,7 +1195,9 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest, } data.RefreshFromSharedGroup(res4.Group) refreshPlan(ctx, plan, &data, resp.Diagnostics) - id4 := data.ID.ValueString() + var id4 string + id4 = data.ID.ValueString() + request5 := operations.GetGroupMessageChannelsRequest{ ID: id4, } @@ -1191,7 +1223,9 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest, } data.RefreshFromOperationsGetGroupMessageChannelsResponseBody(res5.Object) refreshPlan(ctx, plan, &data, resp.Diagnostics) - id5 := data.ID.ValueString() + var id5 string + id5 = data.ID.ValueString() + request6 := operations.GetGroupOnCallSchedulesRequest{ ID: id5, } @@ -1212,7 +1246,9 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest, return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - id6 := data.ID.ValueString() + var id6 string + id6 = data.ID.ValueString() + request7 := operations.GetGroupVisibilityRequest{ ID: id6, } @@ -1261,7 +1297,9 @@ func (r *GroupResource) Delete(ctx context.Context, req resource.DeleteRequest, return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.DeleteGroupRequest{ ID: id, } diff --git a/internal/provider/group_resource_sdk.go b/internal/provider/group_resource_sdk.go index 556a875e..eaa6ea2a 100644 --- a/internal/provider/group_resource_sdk.go +++ b/internal/provider/group_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -10,7 +10,9 @@ import ( ) func (r *GroupResourceModel) ToSharedCreateGroupInfo() *shared.CreateGroupInfo { - appID := r.AppID.ValueString() + var appID string + appID = r.AppID.ValueString() + description := new(string) if !r.Description.IsUnknown() && !r.Description.IsNull() { *description = r.Description.ValueString() @@ -18,68 +20,88 @@ func (r *GroupResourceModel) ToSharedCreateGroupInfo() *shared.CreateGroupInfo { description = nil } groupType := shared.GroupTypeEnum(r.GroupType.ValueString()) - name := r.Name.ValueString() + var name string + name = r.Name.ValueString() + var remoteInfo *shared.GroupRemoteInfo if r.RemoteInfo != nil { var activeDirectoryGroup *shared.ActiveDirectoryGroup if r.RemoteInfo.ActiveDirectoryGroup != nil { - groupID := r.RemoteInfo.ActiveDirectoryGroup.GroupID.ValueString() + var groupID string + groupID = r.RemoteInfo.ActiveDirectoryGroup.GroupID.ValueString() + activeDirectoryGroup = &shared.ActiveDirectoryGroup{ GroupID: groupID, } } var azureAdMicrosoft365Group *shared.AzureAdMicrosoft365Group if r.RemoteInfo.AzureAdMicrosoft365Group != nil { - groupId1 := r.RemoteInfo.AzureAdMicrosoft365Group.GroupID.ValueString() + var groupId1 string + groupId1 = r.RemoteInfo.AzureAdMicrosoft365Group.GroupID.ValueString() + azureAdMicrosoft365Group = &shared.AzureAdMicrosoft365Group{ GroupID: groupId1, } } var azureAdSecurityGroup *shared.AzureAdSecurityGroup if r.RemoteInfo.AzureAdSecurityGroup != nil { - groupId2 := r.RemoteInfo.AzureAdSecurityGroup.GroupID.ValueString() + var groupId2 string + groupId2 = r.RemoteInfo.AzureAdSecurityGroup.GroupID.ValueString() + azureAdSecurityGroup = &shared.AzureAdSecurityGroup{ GroupID: groupId2, } } var duoGroup *shared.DuoGroup if r.RemoteInfo.DuoGroup != nil { - groupId3 := r.RemoteInfo.DuoGroup.GroupID.ValueString() + var groupId3 string + groupId3 = r.RemoteInfo.DuoGroup.GroupID.ValueString() + duoGroup = &shared.DuoGroup{ GroupID: groupId3, } } var githubTeam *shared.GithubTeam if r.RemoteInfo.GithubTeam != nil { - teamSlug := r.RemoteInfo.GithubTeam.TeamSlug.ValueString() + var teamSlug string + teamSlug = r.RemoteInfo.GithubTeam.TeamSlug.ValueString() + githubTeam = &shared.GithubTeam{ TeamSlug: teamSlug, } } var gitlabGroup *shared.GitlabGroup if r.RemoteInfo.GitlabGroup != nil { - groupId4 := r.RemoteInfo.GitlabGroup.GroupID.ValueString() + var groupId4 string + groupId4 = r.RemoteInfo.GitlabGroup.GroupID.ValueString() + gitlabGroup = &shared.GitlabGroup{ GroupID: groupId4, } } var googleGroup *shared.GoogleGroup if r.RemoteInfo.GoogleGroup != nil { - groupId5 := r.RemoteInfo.GoogleGroup.GroupID.ValueString() + var groupId5 string + groupId5 = r.RemoteInfo.GoogleGroup.GroupID.ValueString() + googleGroup = &shared.GoogleGroup{ GroupID: groupId5, } } var ldapGroup *shared.LdapGroup if r.RemoteInfo.LdapGroup != nil { - groupId6 := r.RemoteInfo.LdapGroup.GroupID.ValueString() + var groupId6 string + groupId6 = r.RemoteInfo.LdapGroup.GroupID.ValueString() + ldapGroup = &shared.LdapGroup{ GroupID: groupId6, } } var oktaGroup *shared.OktaGroup if r.RemoteInfo.OktaGroup != nil { - groupId7 := r.RemoteInfo.OktaGroup.GroupID.ValueString() + var groupId7 string + groupId7 = r.RemoteInfo.OktaGroup.GroupID.ValueString() + oktaGroup = &shared.OktaGroup{ GroupID: groupId7, } @@ -269,7 +291,9 @@ func (r *GroupResourceModel) ToSharedUpdateGroupInfo() *shared.UpdateGroupInfo { for _, groupLeaderUserIdsItem := range r.GroupLeaderUserIds { groupLeaderUserIds = append(groupLeaderUserIds, groupLeaderUserIdsItem.ValueString()) } - id := r.ID.ValueString() + var id string + id = r.ID.ValueString() + name := new(string) if !r.Name.IsUnknown() && !r.Name.IsNull() { *name = r.Name.ValueString() @@ -278,8 +302,12 @@ func (r *GroupResourceModel) ToSharedUpdateGroupInfo() *shared.UpdateGroupInfo { } var requestConfigurations []shared.RequestConfiguration = []shared.RequestConfiguration{} for _, requestConfigurationsItem := range r.RequestConfigurations { - allowRequests := requestConfigurationsItem.AllowRequests.ValueBool() - autoApproval := requestConfigurationsItem.AutoApproval.ValueBool() + var allowRequests bool + allowRequests = requestConfigurationsItem.AllowRequests.ValueBool() + + var autoApproval bool + autoApproval = requestConfigurationsItem.AutoApproval.ValueBool() + var condition *shared.Condition if requestConfigurationsItem.Condition != nil { var groupIds []string = []string{} @@ -301,7 +329,9 @@ func (r *GroupResourceModel) ToSharedUpdateGroupInfo() *shared.UpdateGroupInfo { } else { maxDuration = nil } - priority := requestConfigurationsItem.Priority.ValueInt64() + var priority int64 + priority = requestConfigurationsItem.Priority.ValueInt64() + recommendedDuration := new(int64) if !requestConfigurationsItem.RecommendedDuration.IsUnknown() && !requestConfigurationsItem.RecommendedDuration.IsNull() { *recommendedDuration = requestConfigurationsItem.RecommendedDuration.ValueInt64() @@ -314,8 +344,12 @@ func (r *GroupResourceModel) ToSharedUpdateGroupInfo() *shared.UpdateGroupInfo { } else { requestTemplateID = nil } - requireMfaToRequest := requestConfigurationsItem.RequireMfaToRequest.ValueBool() - requireSupportTicket := requestConfigurationsItem.RequireSupportTicket.ValueBool() + var requireMfaToRequest bool + requireMfaToRequest = requestConfigurationsItem.RequireMfaToRequest.ValueBool() + + var requireSupportTicket bool + requireSupportTicket = requestConfigurationsItem.RequireSupportTicket.ValueBool() + var reviewerStages []shared.ReviewerStage = []shared.ReviewerStage{} for _, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages { operator := new(shared.Operator) @@ -334,7 +368,9 @@ func (r *GroupResourceModel) ToSharedUpdateGroupInfo() *shared.UpdateGroupInfo { } else { requireAdminApproval = nil } - requireManagerApproval := reviewerStagesItem.RequireManagerApproval.ValueBool() + var requireManagerApproval bool + requireManagerApproval = reviewerStagesItem.RequireManagerApproval.ValueBool() + reviewerStages = append(reviewerStages, shared.ReviewerStage{ Operator: operator, OwnerIds: ownerIds, diff --git a/internal/provider/group_resource_test.go b/internal/provider/group_resource_test.go index 56c2831d..dbf00efd 100644 --- a/internal/provider/group_resource_test.go +++ b/internal/provider/group_resource_test.go @@ -291,6 +291,11 @@ func TestAccGroup_RequestConfigurations(t *testing.T) { AutoApproval: false, Priority: 2, }, + { + IsRequestable: true, + AutoApproval: true, + Priority: 3, + }, } invalidSequentialPriorityConfigString := GenerateGroupResource(&config) @@ -326,8 +331,7 @@ func TestAccGroup_RequestConfigurations(t *testing.T) { ExpectError: GenerateErrorMessageRegexp("Invalid Attribute Type"), }, { - Config: sequentialPriorityConfigString, - ExpectNonEmptyPlan: true, + Config: sequentialPriorityConfigString, Check: resource.ComposeAggregateTestCheckFunc( resource.TestCheckResourceAttr(resourceName, "request_configurations.#", "2"), ), @@ -383,7 +387,7 @@ func testAccCheckGroupDestroy(s *terraform.State) error { } security := shared.Security{ - BearerAuth: &opalToken, + BearerAuth: opalToken, } opts := []sdk.SDKOption{ sdk.WithServerURL(opalBaseURL), diff --git a/internal/provider/groupresourcelist_data_source.go b/internal/provider/groupresourcelist_data_source.go index 8a8c5eca..fba0bedf 100644 --- a/internal/provider/groupresourcelist_data_source.go +++ b/internal/provider/groupresourcelist_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -125,7 +125,9 @@ func (r *GroupResourceListDataSource) Read(ctx context.Context, req datasource.R return } - groupID := data.GroupID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + request := operations.GetGroupResourcesRequest{ GroupID: groupID, } diff --git a/internal/provider/groupresourcelist_data_source_sdk.go b/internal/provider/groupresourcelist_data_source_sdk.go index 73d7273e..2373abc2 100644 --- a/internal/provider/groupresourcelist_data_source_sdk.go +++ b/internal/provider/groupresourcelist_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/groupresourcelist_resource.go b/internal/provider/groupresourcelist_resource.go index e02b9743..4278aab5 100644 --- a/internal/provider/groupresourcelist_resource.go +++ b/internal/provider/groupresourcelist_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -140,7 +140,9 @@ func (r *GroupResourceListResource) Create(ctx context.Context, req resource.Cre } updateGroupResourcesInfo := *data.ToSharedUpdateGroupResourcesInfo() - groupID := data.GroupID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + request := operations.UpdateGroupResourcesRequest{ UpdateGroupResourcesInfo: updateGroupResourcesInfo, GroupID: groupID, @@ -162,7 +164,9 @@ func (r *GroupResourceListResource) Create(ctx context.Context, req resource.Cre return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - groupId1 := data.GroupID.ValueString() + var groupId1 string + groupId1 = data.GroupID.ValueString() + request1 := operations.GetGroupResourcesRequest{ GroupID: groupId1, } @@ -211,7 +215,9 @@ func (r *GroupResourceListResource) Read(ctx context.Context, req resource.ReadR return } - groupID := data.GroupID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + request := operations.GetGroupResourcesRequest{ GroupID: groupID, } @@ -260,7 +266,9 @@ func (r *GroupResourceListResource) Update(ctx context.Context, req resource.Upd } updateGroupResourcesInfo := *data.ToSharedUpdateGroupResourcesInfo() - groupID := data.GroupID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + request := operations.UpdateGroupResourcesRequest{ UpdateGroupResourcesInfo: updateGroupResourcesInfo, GroupID: groupID, @@ -282,7 +290,9 @@ func (r *GroupResourceListResource) Update(ctx context.Context, req resource.Upd return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - groupId1 := data.GroupID.ValueString() + var groupId1 string + groupId1 = data.GroupID.ValueString() + request1 := operations.GetGroupResourcesRequest{ GroupID: groupId1, } diff --git a/internal/provider/groupresourcelist_resource_sdk.go b/internal/provider/groupresourcelist_resource_sdk.go index 6a5201d0..ba3c3194 100644 --- a/internal/provider/groupresourcelist_resource_sdk.go +++ b/internal/provider/groupresourcelist_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -17,7 +17,9 @@ func (r *GroupResourceListResourceModel) ToSharedUpdateGroupResourcesInfo() *sha } else { accessLevelRemoteID = nil } - resourceID := resourcesItem.ResourceID.ValueString() + var resourceID string + resourceID = resourcesItem.ResourceID.ValueString() + resources = append(resources, shared.ResourceWithAccessLevel{ AccessLevelRemoteID: accessLevelRemoteID, ResourceID: resourceID, diff --git a/internal/provider/groupreviewersstageslist_data_source.go b/internal/provider/groupreviewersstageslist_data_source.go index 4dcb86f3..649dea19 100644 --- a/internal/provider/groupreviewersstageslist_data_source.go +++ b/internal/provider/groupreviewersstageslist_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -114,7 +114,9 @@ func (r *GroupReviewersStagesListDataSource) Read(ctx context.Context, req datas return } - groupID := data.GroupID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + request := operations.GetGroupReviewersStagesRequest{ GroupID: groupID, } diff --git a/internal/provider/groupreviewersstageslist_data_source_sdk.go b/internal/provider/groupreviewersstageslist_data_source_sdk.go index 83d13798..9beeaab7 100644 --- a/internal/provider/groupreviewersstageslist_data_source_sdk.go +++ b/internal/provider/groupreviewersstageslist_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/grouptag_resource.go b/internal/provider/grouptag_resource.go index e919fd38..405110c2 100644 --- a/internal/provider/grouptag_resource.go +++ b/internal/provider/grouptag_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -98,8 +98,12 @@ func (r *GroupTagResource) Create(ctx context.Context, req resource.CreateReques return } - groupID := data.GroupID.ValueString() - tagID := data.TagID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + + var tagID string + tagID = data.TagID.ValueString() + request := operations.CreateGroupTagRequest{ GroupID: groupID, TagID: tagID, @@ -188,8 +192,12 @@ func (r *GroupTagResource) Delete(ctx context.Context, req resource.DeleteReques return } - groupID := data.GroupID.ValueString() - tagID := data.TagID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + + var tagID string + tagID = data.TagID.ValueString() + request := operations.DeleteGroupTagRequest{ GroupID: groupID, TagID: tagID, diff --git a/internal/provider/grouptag_resource_sdk.go b/internal/provider/grouptag_resource_sdk.go index 52547e1f..960c2cae 100644 --- a/internal/provider/grouptag_resource_sdk.go +++ b/internal/provider/grouptag_resource_sdk.go @@ -1,3 +1,3 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/grouptags_data_source.go b/internal/provider/grouptags_data_source.go index 2843c655..aae320d6 100644 --- a/internal/provider/grouptags_data_source.go +++ b/internal/provider/grouptags_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -121,7 +121,9 @@ func (r *GroupTagsDataSource) Read(ctx context.Context, req datasource.ReadReque return } - groupID := data.GroupID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + request := operations.GetGroupTagsRequest{ GroupID: groupID, } diff --git a/internal/provider/grouptags_data_source_sdk.go b/internal/provider/grouptags_data_source_sdk.go index fe1d6ace..91bbc39b 100644 --- a/internal/provider/grouptags_data_source_sdk.go +++ b/internal/provider/grouptags_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/groupuser_resource.go b/internal/provider/groupuser_resource.go index 3234756c..ffc50200 100644 --- a/internal/provider/groupuser_resource.go +++ b/internal/provider/groupuser_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -172,8 +172,12 @@ func (r *GroupUserResource) Create(ctx context.Context, req resource.CreateReque } requestBody := *data.ToOperationsCreateGroupUserRequestBody() - groupID := data.GroupID.ValueString() - userID := data.UserID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + + var userID string + userID = data.UserID.ValueString() + request := operations.CreateGroupUserRequest{ RequestBody: requestBody, GroupID: groupID, @@ -268,8 +272,12 @@ func (r *GroupUserResource) Delete(ctx context.Context, req resource.DeleteReque return } - groupID := data.GroupID.ValueString() - userID := data.UserID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + + var userID string + userID = data.UserID.ValueString() + request := operations.DeleteGroupUserRequest{ GroupID: groupID, UserID: userID, diff --git a/internal/provider/groupuser_resource_sdk.go b/internal/provider/groupuser_resource_sdk.go index 6ee1eada..7134d645 100644 --- a/internal/provider/groupuser_resource_sdk.go +++ b/internal/provider/groupuser_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/groupusers_data_source.go b/internal/provider/groupusers_data_source.go index 255ffcc8..2251ee7d 100644 --- a/internal/provider/groupusers_data_source.go +++ b/internal/provider/groupusers_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -137,7 +137,9 @@ func (r *GroupUsersDataSource) Read(ctx context.Context, req datasource.ReadRequ return } - groupID := data.GroupID.ValueString() + var groupID string + groupID = data.GroupID.ValueString() + request := operations.GetGroupUsersRequest{ GroupID: groupID, } diff --git a/internal/provider/groupusers_data_source_sdk.go b/internal/provider/groupusers_data_source_sdk.go index 70de7f80..39d37ad2 100644 --- a/internal/provider/groupusers_data_source_sdk.go +++ b/internal/provider/groupusers_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/messagechannel_data_source.go b/internal/provider/messagechannel_data_source.go index 556c4c55..efeddc29 100644 --- a/internal/provider/messagechannel_data_source.go +++ b/internal/provider/messagechannel_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -108,7 +108,9 @@ func (r *MessageChannelDataSource) Read(ctx context.Context, req datasource.Read return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetMessageChannelIDRequest{ ID: id, } diff --git a/internal/provider/messagechannel_data_source_sdk.go b/internal/provider/messagechannel_data_source_sdk.go index 2059e399..af4ab901 100644 --- a/internal/provider/messagechannel_data_source_sdk.go +++ b/internal/provider/messagechannel_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/messagechannel_resource.go b/internal/provider/messagechannel_resource.go index cf5567bf..d4b2f355 100644 --- a/internal/provider/messagechannel_resource.go +++ b/internal/provider/messagechannel_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -173,7 +173,9 @@ func (r *MessageChannelResource) Read(ctx context.Context, req resource.ReadRequ return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetMessageChannelIDRequest{ ID: id, } diff --git a/internal/provider/messagechannel_resource_sdk.go b/internal/provider/messagechannel_resource_sdk.go index 90cfb4f8..47d4a60b 100644 --- a/internal/provider/messagechannel_resource_sdk.go +++ b/internal/provider/messagechannel_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -8,7 +8,9 @@ import ( ) func (r *MessageChannelResourceModel) ToSharedCreateMessageChannelInfo() *shared.CreateMessageChannelInfo { - remoteID := r.RemoteID.ValueString() + var remoteID string + remoteID = r.RemoteID.ValueString() + thirdPartyProvider := shared.MessageChannelProviderEnum(r.ThirdPartyProvider.ValueString()) out := shared.CreateMessageChannelInfo{ RemoteID: remoteID, diff --git a/internal/provider/messagechannellist_data_source.go b/internal/provider/messagechannellist_data_source.go index 3ddaa3c1..e2576059 100644 --- a/internal/provider/messagechannellist_data_source.go +++ b/internal/provider/messagechannellist_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/messagechannellist_data_source_sdk.go b/internal/provider/messagechannellist_data_source_sdk.go index a0f3448e..6b557a01 100644 --- a/internal/provider/messagechannellist_data_source_sdk.go +++ b/internal/provider/messagechannellist_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/oncallschedule_data_source.go b/internal/provider/oncallschedule_data_source.go index 92b275c3..5bccd096 100644 --- a/internal/provider/oncallschedule_data_source.go +++ b/internal/provider/oncallschedule_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -103,7 +103,9 @@ func (r *OnCallScheduleDataSource) Read(ctx context.Context, req datasource.Read return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetOnCallScheduleIDRequest{ ID: id, } diff --git a/internal/provider/oncallschedule_data_source_sdk.go b/internal/provider/oncallschedule_data_source_sdk.go index f845498e..ed92812c 100644 --- a/internal/provider/oncallschedule_data_source_sdk.go +++ b/internal/provider/oncallschedule_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/oncallschedule_list_data_source.go b/internal/provider/oncallschedule_list_data_source.go index bcf1b6ff..130723f0 100644 --- a/internal/provider/oncallschedule_list_data_source.go +++ b/internal/provider/oncallschedule_list_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/oncallschedule_list_data_source_sdk.go b/internal/provider/oncallschedule_list_data_source_sdk.go index b599d956..0347a6fb 100644 --- a/internal/provider/oncallschedule_list_data_source_sdk.go +++ b/internal/provider/oncallschedule_list_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/oncallschedule_resource.go b/internal/provider/oncallschedule_resource.go index 6bc59f25..3e545b93 100644 --- a/internal/provider/oncallschedule_resource.go +++ b/internal/provider/oncallschedule_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -169,7 +169,9 @@ func (r *OnCallScheduleResource) Read(ctx context.Context, req resource.ReadRequ return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetOnCallScheduleIDRequest{ ID: id, } diff --git a/internal/provider/oncallschedule_resource_sdk.go b/internal/provider/oncallschedule_resource_sdk.go index 16b01db0..9f45fd6b 100644 --- a/internal/provider/oncallschedule_resource_sdk.go +++ b/internal/provider/oncallschedule_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -8,7 +8,9 @@ import ( ) func (r *OnCallScheduleResourceModel) ToSharedCreateOnCallScheduleInfo() *shared.CreateOnCallScheduleInfo { - remoteID := r.RemoteID.ValueString() + var remoteID string + remoteID = r.RemoteID.ValueString() + thirdPartyProvider := shared.OnCallScheduleProviderEnum(r.ThirdPartyProvider.ValueString()) out := shared.CreateOnCallScheduleInfo{ RemoteID: remoteID, diff --git a/internal/provider/owner_data_source.go b/internal/provider/owner_data_source.go index 6af11a28..1d94cd49 100644 --- a/internal/provider/owner_data_source.go +++ b/internal/provider/owner_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -111,7 +111,9 @@ func (r *OwnerDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetOwnerIDRequest{ ID: id, } diff --git a/internal/provider/owner_data_source_sdk.go b/internal/provider/owner_data_source_sdk.go index 38a5d441..76813cc6 100644 --- a/internal/provider/owner_data_source_sdk.go +++ b/internal/provider/owner_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/owner_resource.go b/internal/provider/owner_resource.go index 4e3981cb..51879a34 100644 --- a/internal/provider/owner_resource.go +++ b/internal/provider/owner_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -150,7 +150,9 @@ func (r *OwnerResource) Create(ctx context.Context, req resource.CreateRequest, } data.RefreshFromSharedOwner(res.Owner) refreshPlan(ctx, plan, &data, resp.Diagnostics) - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request1 := operations.GetOwnerIDRequest{ ID: id, } @@ -199,7 +201,9 @@ func (r *OwnerResource) Read(ctx context.Context, req resource.ReadRequest, resp return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetOwnerIDRequest{ ID: id, } @@ -275,7 +279,9 @@ func (r *OwnerResource) Update(ctx context.Context, req resource.UpdateRequest, data.RefreshFromSharedUpdateOwnerInfo(&res.UpdateOwnerInfoList.Owners[0]) refreshPlan(ctx, plan, &data, resp.Diagnostics) userIDList := *data.ToSharedUserIDList() - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request1 := operations.UpdateOwnerUsersRequest{ UserIDList: userIDList, ID: id, @@ -297,7 +303,9 @@ func (r *OwnerResource) Update(ctx context.Context, req resource.UpdateRequest, return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - id1 := data.ID.ValueString() + var id1 string + id1 = data.ID.ValueString() + request2 := operations.GetOwnerIDRequest{ ID: id1, } @@ -346,7 +354,9 @@ func (r *OwnerResource) Delete(ctx context.Context, req resource.DeleteRequest, return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.DeleteOwnerRequest{ ID: id, } diff --git a/internal/provider/owner_resource_sdk.go b/internal/provider/owner_resource_sdk.go index 9dc095ad..4cf31a19 100644 --- a/internal/provider/owner_resource_sdk.go +++ b/internal/provider/owner_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -20,7 +20,9 @@ func (r *OwnerResourceModel) ToSharedCreateOwnerInfo() *shared.CreateOwnerInfo { } else { description = nil } - name := r.Name.ValueString() + var name string + name = r.Name.ValueString() + reviewerMessageChannelID := new(string) if !r.ReviewerMessageChannelID.IsUnknown() && !r.ReviewerMessageChannelID.IsNull() { *reviewerMessageChannelID = r.ReviewerMessageChannelID.ValueString() @@ -72,7 +74,9 @@ func (r *OwnerResourceModel) ToSharedUpdateOwnerInfo() *shared.UpdateOwnerInfo { } else { description = nil } - id := r.ID.ValueString() + var id string + id = r.ID.ValueString() + name := new(string) if !r.Name.IsUnknown() && !r.Name.IsNull() { *name = r.Name.ValueString() diff --git a/internal/provider/ownerfromname_data_source.go b/internal/provider/ownerfromname_data_source.go index 69ded9e1..39af0192 100644 --- a/internal/provider/ownerfromname_data_source.go +++ b/internal/provider/ownerfromname_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -116,7 +116,9 @@ func (r *OwnerFromNameDataSource) Read(ctx context.Context, req datasource.ReadR return } - ownerName := data.OwnerName.ValueString() + var ownerName string + ownerName = data.OwnerName.ValueString() + request := operations.GetOwnerFromNameRequest{ OwnerName: ownerName, } diff --git a/internal/provider/ownerfromname_data_source_sdk.go b/internal/provider/ownerfromname_data_source_sdk.go index 984ee6e1..08204064 100644 --- a/internal/provider/ownerfromname_data_source_sdk.go +++ b/internal/provider/ownerfromname_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/owners_data_source.go b/internal/provider/owners_data_source.go index eced145c..37f38d55 100644 --- a/internal/provider/owners_data_source.go +++ b/internal/provider/owners_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/owners_data_source_sdk.go b/internal/provider/owners_data_source_sdk.go index cd46d2fa..2ac325ab 100644 --- a/internal/provider/owners_data_source_sdk.go +++ b/internal/provider/owners_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/provider.go b/internal/provider/provider.go index ea5b08c6..62d081fe 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -45,8 +45,8 @@ func (p *OpalProvider) Schema(ctx context.Context, req provider.SchemaRequest, r Required: false, }, "bearer_auth": schema.StringAttribute{ - Optional: true, Sensitive: true, + Required: true, }, }, } @@ -67,16 +67,13 @@ func (p *OpalProvider) Configure(ctx context.Context, req provider.ConfigureRequ ServerURL = "https://api.opal.dev/v1" } - bearerAuth := new(string) - if !data.BearerAuth.IsUnknown() && !data.BearerAuth.IsNull() { - *bearerAuth = data.BearerAuth.ValueString() + var bearerAuth string + if len(os.Getenv("OPAL_AUTH_TOKEN")) > 0 { + bearerAuth = os.Getenv("OPAL_AUTH_TOKEN") } else { - if len(os.Getenv("OPAL_AUTH_TOKEN")) > 0 { - *bearerAuth = os.Getenv("OPAL_AUTH_TOKEN") - } else { - bearerAuth = nil - } + bearerAuth = data.BearerAuth.ValueString() } + security := shared.Security{ BearerAuth: bearerAuth, } diff --git a/internal/provider/reflect/diags.go b/internal/provider/reflect/diags.go index a91bba9f..50c50c8c 100644 --- a/internal/provider/reflect/diags.go +++ b/internal/provider/reflect/diags.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect diff --git a/internal/provider/reflect/doc.go b/internal/provider/reflect/doc.go index ec91111d..e384126d 100644 --- a/internal/provider/reflect/doc.go +++ b/internal/provider/reflect/doc.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect // that has been modified to support speakeasy's terraform generator. diff --git a/internal/provider/reflect/generic_attr_value.go b/internal/provider/reflect/generic_attr_value.go index 430ce2f6..48824d54 100644 --- a/internal/provider/reflect/generic_attr_value.go +++ b/internal/provider/reflect/generic_attr_value.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect diff --git a/internal/provider/reflect/helpers.go b/internal/provider/reflect/helpers.go index 42d19f21..b17719db 100644 --- a/internal/provider/reflect/helpers.go +++ b/internal/provider/reflect/helpers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect diff --git a/internal/provider/reflect/interfaces.go b/internal/provider/reflect/interfaces.go index 364ff861..ff4416e4 100644 --- a/internal/provider/reflect/interfaces.go +++ b/internal/provider/reflect/interfaces.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -73,18 +73,38 @@ func FromUnknownable(ctx context.Context, typ attr.Type, val Unknownable, path p if val.GetUnknown(ctx) { tfVal := tftypes.NewValue(typ.TerraformType(ctx), tftypes.UnknownValue) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + res, err := typ.ValueFromTerraform(ctx, tfVal) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := res.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - res, err := typ.ValueFromTerraform(ctx, tfVal) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } + return res, nil } err := tftypes.ValidateValue(typ.TerraformType(ctx), val.GetValue(ctx)) @@ -94,18 +114,38 @@ func FromUnknownable(ctx context.Context, typ attr.Type, val Unknownable, path p tfVal := tftypes.NewValue(typ.TerraformType(ctx), val.GetValue(ctx)) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + res, err := typ.ValueFromTerraform(ctx, tfVal) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := res.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - res, err := typ.ValueFromTerraform(ctx, tfVal) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } + return res, nil } @@ -167,18 +207,38 @@ func FromNullable(ctx context.Context, typ attr.Type, val Nullable, path path.Pa if val.GetNull(ctx) { tfVal := tftypes.NewValue(typ.TerraformType(ctx), nil) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + res, err := typ.ValueFromTerraform(ctx, tfVal) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := res.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - res, err := typ.ValueFromTerraform(ctx, tfVal) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } + return res, nil } err := tftypes.ValidateValue(typ.TerraformType(ctx), val.GetValue(ctx)) @@ -188,18 +248,38 @@ func FromNullable(ctx context.Context, typ attr.Type, val Nullable, path path.Pa tfVal := tftypes.NewValue(typ.TerraformType(ctx), val.GetValue(ctx)) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + res, err := typ.ValueFromTerraform(ctx, tfVal) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := res.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - res, err := typ.ValueFromTerraform(ctx, tfVal) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } + return res, diags } @@ -259,18 +339,38 @@ func FromValueCreator(ctx context.Context, typ attr.Type, val tftypes.ValueCreat } tfVal := tftypes.NewValue(typ.TerraformType(ctx), raw) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + res, err := typ.ValueFromTerraform(ctx, tfVal) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := res.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - res, err := typ.ValueFromTerraform(ctx, tfVal) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } + return res, diags } @@ -282,18 +382,38 @@ func FromValueCreator(ctx context.Context, typ attr.Type, val tftypes.ValueCreat func NewAttributeValue(ctx context.Context, typ attr.Type, val tftypes.Value, target reflect.Value, opts Options, path path.Path) (reflect.Value, diag.Diagnostics) { var diags diag.Diagnostics - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, val, path)...) + res, err := typ.ValueFromTerraform(ctx, val) + if err != nil { + return target, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := res.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return target, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, val, path)...) - res, err := typ.ValueFromTerraform(ctx, val) - if err != nil { - return target, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return target, diags + } + } } + if reflect.TypeOf(res) != target.Type() { diags.Append(diag.WithPath(path, DiagNewAttributeValueIntoWrongType{ ValType: reflect.TypeOf(res), @@ -336,17 +456,36 @@ func FromAttributeValue(ctx context.Context, typ attr.Type, val attr.Value, path return nil, diags } - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - tfVal, err := val.ToTerraformValue(ctx) - if err != nil { - return val, append(diags, toTerraformValueErrorDiag(err, path)) - } + switch t := val.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return val, diags } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + tfVal, err := val.ToTerraformValue(ctx) + if err != nil { + return val, append(diags, toTerraformValueErrorDiag(err, path)) + } + + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + + if diags.HasError() { + return val, diags + } + } } return val, diags diff --git a/internal/provider/reflect/into.go b/internal/provider/reflect/into.go index c53d1be9..29a437fe 100644 --- a/internal/provider/reflect/into.go +++ b/internal/provider/reflect/into.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -166,6 +166,20 @@ func BuildValue(ctx context.Context, typ attr.Type, val tftypes.Value, target re return target, diags } + + // Dynamic reflection is currently only supported using an `attr.Value`, which should have happened in logic above. + if typ.TerraformType(ctx).Is(tftypes.DynamicPseudoType) { + diags.AddAttributeError( + path, + "Value Conversion Error", + "An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+ + "Reflection for dynamic types is currently not supported. Use the corresponding `types` package type or a custom type that handles dynamic values.\n\n"+ + fmt.Sprintf("Path: %s\nTarget Type: %s\nSuggested `types` Type: %s", path.String(), target.Type(), reflect.TypeOf(typ.ValueType(ctx))), + ) + + return target, diags + } + // *big.Float and *big.Int are technically pointers, but we want them // handled as numbers if target.Type() == reflect.TypeOf(big.NewFloat(0)) || target.Type() == reflect.TypeOf(big.NewInt(0)) { diff --git a/internal/provider/reflect/map.go b/internal/provider/reflect/map.go index 3310d426..91e27a6c 100644 --- a/internal/provider/reflect/map.go +++ b/internal/provider/reflect/map.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -102,14 +102,6 @@ func FromMap(ctx context.Context, typ attr.TypeWithElementType, val reflect.Valu if val.IsNil() { tfVal := tftypes.NewValue(tfType, nil) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - - if diags.HasError() { - return nil, diags - } - } - attrVal, err := typ.ValueFromTerraform(ctx, tfVal) if err != nil { @@ -121,6 +113,33 @@ func FromMap(ctx context.Context, typ attr.TypeWithElementType, val reflect.Valu return nil, diags } + switch t := attrVal.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) + + if diags.HasError() { + return nil, diags + } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + + if diags.HasError() { + return nil, diags + } + } + } + return attrVal, diags } @@ -136,23 +155,50 @@ func FromMap(ctx context.Context, typ attr.TypeWithElementType, val reflect.Valu ) return nil, diags } - val, valDiags := FromValue(ctx, elemType, val.MapIndex(key).Interface(), path.AtMapKey(key.String())) + + mapKeyPath := path.AtMapKey(key.String()) + + // If the element implements xattr.ValidateableAttribute, or xattr.TypeWithValidate, + // and the element does not validate then diagnostics will be added here and returned + // before reaching the switch statement below. + val, valDiags := FromValue(ctx, elemType, val.MapIndex(key).Interface(), mapKeyPath) + diags.Append(valDiags...) if diags.HasError() { return nil, diags } + tfVal, err := val.ToTerraformValue(ctx) if err != nil { return nil, append(diags, toTerraformValueErrorDiag(err, path)) } - if typeWithValidate, ok := elemType.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path.AtMapKey(key.String()))...) + switch t := val.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: mapKeyPath, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := elemType.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, mapKeyPath)...) + + if diags.HasError() { + return nil, diags + } + } } tfElems[key.String()] = tfVal @@ -165,14 +211,6 @@ func FromMap(ctx context.Context, typ attr.TypeWithElementType, val reflect.Valu tfVal := tftypes.NewValue(tfType, tfElems) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - - if diags.HasError() { - return nil, diags - } - } - attrVal, err := typ.ValueFromTerraform(ctx, tfVal) if err != nil { @@ -184,5 +222,32 @@ func FromMap(ctx context.Context, typ attr.TypeWithElementType, val reflect.Valu return nil, diags } + switch t := attrVal.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) + + if diags.HasError() { + return nil, diags + } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + + if diags.HasError() { + return nil, diags + } + } + } + return attrVal, diags } diff --git a/internal/provider/reflect/number.go b/internal/provider/reflect/number.go index 37eef216..53673b84 100644 --- a/internal/provider/reflect/number.go +++ b/internal/provider/reflect/number.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -23,9 +23,7 @@ import ( // *big.Int). // // Number will loudly fail when a number cannot be losslessly represented using -// the requested type, unless opts.AllowRoundingNumbers is set to true. This -// setting is mildly dangerous, because Terraform does not like when you round -// things, as a general rule of thumb. +// the requested type. // // It is meant to be called through Into, not directly. func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflect.Value, opts Options, path path.Path) (reflect.Value, diag.Diagnostics) { @@ -52,7 +50,7 @@ func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflec return reflect.ValueOf(result), diags case reflect.TypeOf(big.NewInt(0)): intResult, acc := result.Int(nil) - if acc != big.Exact && !opts.AllowRoundingNumbers { + if acc != big.Exact { return reflect.ValueOf(result), append(diags, roundingErrorDiag) } return reflect.ValueOf(intResult), diags @@ -61,64 +59,40 @@ func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflec case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: intResult, acc := result.Int64() - if acc != big.Exact && !opts.AllowRoundingNumbers { + if acc != big.Exact { return target, append(diags, roundingErrorDiag) } switch target.Kind() { case reflect.Int: if strconv.IntSize == 32 && intResult > math.MaxInt32 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MaxInt32 + return target, append(diags, roundingErrorDiag) } if strconv.IntSize == 32 && intResult < math.MinInt32 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MinInt32 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(int(intResult)), diags case reflect.Int8: if intResult > math.MaxInt8 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MaxInt8 + return target, append(diags, roundingErrorDiag) } if intResult < math.MinInt8 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MinInt8 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(int8(intResult)), diags case reflect.Int16: if intResult > math.MaxInt16 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MaxInt16 + return target, append(diags, roundingErrorDiag) } if intResult < math.MinInt16 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MinInt16 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(int16(intResult)), diags case reflect.Int32: if intResult > math.MaxInt32 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MaxInt32 + return target, append(diags, roundingErrorDiag) } if intResult < math.MinInt32 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - intResult = math.MinInt32 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(int32(intResult)), diags case reflect.Int64: @@ -127,105 +101,74 @@ func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflec case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: uintResult, acc := result.Uint64() - if acc != big.Exact && !opts.AllowRoundingNumbers { + if acc != big.Exact { return target, append(diags, roundingErrorDiag) } switch target.Kind() { case reflect.Uint: if strconv.IntSize == 32 && uintResult > math.MaxUint32 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - uintResult = math.MaxUint32 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(uint(uintResult)), diags case reflect.Uint8: if uintResult > math.MaxUint8 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - uintResult = math.MaxUint8 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(uint8(uintResult)), diags case reflect.Uint16: if uintResult > math.MaxUint16 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - uintResult = math.MaxUint16 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(uint16(uintResult)), diags case reflect.Uint32: if uintResult > math.MaxUint32 { - if !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } - uintResult = math.MaxUint32 + return target, append(diags, roundingErrorDiag) } return reflect.ValueOf(uint32(uintResult)), diags case reflect.Uint64: return reflect.ValueOf(uintResult), diags } case reflect.Float32: - floatResult, acc := result.Float32() - if acc != big.Exact && !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) - } else if acc == big.Above { - floatResult = math.MaxFloat32 - } else if acc == big.Below { - floatResult = math.SmallestNonzeroFloat32 - } else if acc != big.Exact { - err := fmt.Errorf("unsure how to round %s and %f", acc, floatResult) - diags.AddAttributeError( - path, - "Value Conversion Error", - "An unexpected error was encountered trying to convert to number. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), - ) + float64Result, _ := result.Float64() + + bf := big.NewFloat(float64Result) + + if result.Text('f', -1) != bf.Text('f', -1) { + diags.Append(roundingErrorDiag) + return target, diags } - return reflect.ValueOf(floatResult), diags - case reflect.Float64: - floatResult, acc := result.Float64() - if acc != big.Exact && !opts.AllowRoundingNumbers { - return target, append(diags, roundingErrorDiag) + + float32Result, accuracy := result.Float32() + + // Underflow + // Reference: https://pkg.go.dev/math/big#Float.Float32 + if float32Result == 0 && accuracy != big.Exact { + diags.Append(roundingErrorDiag) + + return target, diags } - if acc == big.Above { - if floatResult == math.Inf(1) || floatResult == math.MaxFloat64 { - floatResult = math.MaxFloat64 - } else if floatResult == 0.0 || floatResult == math.SmallestNonzeroFloat64 { - floatResult = -math.SmallestNonzeroFloat64 - } else { - err := fmt.Errorf("not sure how to round %s and %f", acc, floatResult) - diags.AddAttributeError( - path, - "Value Conversion Error", - "An unexpected error was encountered trying to convert to number. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), - ) - return target, diags - } - } else if acc == big.Below { - if floatResult == math.Inf(-1) || floatResult == -math.MaxFloat64 { - floatResult = -math.MaxFloat64 - } else if floatResult == 0.0 || floatResult == -math.SmallestNonzeroFloat64 { - floatResult = math.SmallestNonzeroFloat64 - } else { - err := fmt.Errorf("not sure how to round %s and %f", acc, floatResult) - diags.AddAttributeError( - path, - "Value Conversion Error", - "An unexpected error was encountered trying to convert to number. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), - ) - return target, diags - } - } else if acc != big.Exact { - err := fmt.Errorf("not sure how to round %s and %f", acc, floatResult) - diags.AddAttributeError( - path, - "Value Conversion Error", - "An unexpected error was encountered trying to convert to number. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), - ) + + // Overflow + // Reference: https://pkg.go.dev/math/big#Float.Float32 + if math.IsInf(float64(float32Result), 0) { + diags.Append(roundingErrorDiag) + + return target, diags + } + + return reflect.ValueOf(float32Result), diags + case reflect.Float64: + floatResult, _ := result.Float64() + + bf := big.NewFloat(floatResult) + + if result.Text('f', -1) != bf.Text('f', -1) { + diags.Append(roundingErrorDiag) + return target, diags } + return reflect.ValueOf(floatResult), diags } err = fmt.Errorf("cannot convert number to %s", target.Type()) @@ -248,17 +191,36 @@ func FromInt(ctx context.Context, typ attr.Type, val int64, path path.Path) (att } tfNum := tftypes.NewValue(tftypes.Number, val) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) + num, err := typ.ValueFromTerraform(ctx, tfNum) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := num.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) - num, err := typ.ValueFromTerraform(ctx, tfNum) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return num, diags @@ -275,17 +237,36 @@ func FromUint(ctx context.Context, typ attr.Type, val uint64, path path.Path) (a } tfNum := tftypes.NewValue(tftypes.Number, val) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) + num, err := typ.ValueFromTerraform(ctx, tfNum) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := num.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) - num, err := typ.ValueFromTerraform(ctx, tfNum) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return num, diags @@ -302,17 +283,36 @@ func FromFloat(ctx context.Context, typ attr.Type, val float64, path path.Path) } tfNum := tftypes.NewValue(tftypes.Number, val) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) + num, err := typ.ValueFromTerraform(ctx, tfNum) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := num.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) - num, err := typ.ValueFromTerraform(ctx, tfNum) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return num, diags @@ -329,17 +329,36 @@ func FromBigFloat(ctx context.Context, typ attr.Type, val *big.Float, path path. } tfNum := tftypes.NewValue(tftypes.Number, val) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) + num, err := typ.ValueFromTerraform(ctx, tfNum) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := num.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) - num, err := typ.ValueFromTerraform(ctx, tfNum) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return num, diags @@ -357,17 +376,36 @@ func FromBigInt(ctx context.Context, typ attr.Type, val *big.Int, path path.Path } tfNum := tftypes.NewValue(tftypes.Number, fl) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) + num, err := typ.ValueFromTerraform(ctx, tfNum) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := num.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfNum, path)...) - num, err := typ.ValueFromTerraform(ctx, tfNum) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return num, diags diff --git a/internal/provider/reflect/options.go b/internal/provider/reflect/options.go index d735aff2..063353f7 100644 --- a/internal/provider/reflect/options.go +++ b/internal/provider/reflect/options.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -20,10 +20,6 @@ type Options struct { // they must be explicitly handled. UnhandledUnknownAsEmpty bool - // AllowRoundingNumbers silently rounds numbers that don't fit - // perfectly in the types they're being stored in, rather than - // returning errors. Numbers will always be rounded towards 0. - AllowRoundingNumbers bool // SourceType informs the reflection system what the source is // such that it can make decisions based on the tfPlanOnly annotation // The default is SourceTypeState diff --git a/internal/provider/reflect/outof.go b/internal/provider/reflect/outof.go index 78527810..215406a5 100644 --- a/internal/provider/reflect/outof.go +++ b/internal/provider/reflect/outof.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect diff --git a/internal/provider/reflect/pointer.go b/internal/provider/reflect/pointer.go index e02c9eb2..215653e7 100644 --- a/internal/provider/reflect/pointer.go +++ b/internal/provider/reflect/pointer.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -97,14 +97,6 @@ func FromPointer(ctx context.Context, typ attr.Type, value reflect.Value, path p if value.IsNil() { tfVal := tftypes.NewValue(typ.TerraformType(ctx), nil) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - - if diags.HasError() { - return nil, diags - } - } - attrVal, err := typ.ValueFromTerraform(ctx, tfVal) if err != nil { @@ -116,6 +108,33 @@ func FromPointer(ctx context.Context, typ attr.Type, value reflect.Value, path p return nil, diags } + switch t := attrVal.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) + + if diags.HasError() { + return nil, diags + } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + + if diags.HasError() { + return nil, diags + } + } + } + return attrVal, diags } diff --git a/internal/provider/reflect/primitive.go b/internal/provider/reflect/primitive.go index 3113c39c..adf648e8 100644 --- a/internal/provider/reflect/primitive.go +++ b/internal/provider/reflect/primitive.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -67,17 +67,36 @@ func FromString(ctx context.Context, typ attr.Type, val string, path path.Path) } tfStr := tftypes.NewValue(tftypes.String, val) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfStr, path)...) + str, err := typ.ValueFromTerraform(ctx, tfStr) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := str.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfStr, path)...) - str, err := typ.ValueFromTerraform(ctx, tfStr) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return str, diags @@ -94,17 +113,36 @@ func FromBool(ctx context.Context, typ attr.Type, val bool, path path.Path) (att } tfBool := tftypes.NewValue(tftypes.Bool, val) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfBool, path)...) + b, err := typ.ValueFromTerraform(ctx, tfBool) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := b.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfBool, path)...) - b, err := typ.ValueFromTerraform(ctx, tfBool) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return b, diags diff --git a/internal/provider/reflect/slice.go b/internal/provider/reflect/slice.go index b91f7291..79ad6b80 100644 --- a/internal/provider/reflect/slice.go +++ b/internal/provider/reflect/slice.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -28,16 +28,6 @@ func reflectSlice(ctx context.Context, typ attr.Type, val tftypes.Value, target })) return target, diags } - // TODO: check that the val is a list or set or tuple - elemTyper, ok := typ.(attr.TypeWithElementType) - if !ok { - diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ - Val: val, - TargetType: target.Type(), - Err: fmt.Errorf("cannot reflect %s using type information provided by %T, %T must be an attr.TypeWithElementType", val.Type(), typ, typ), - })) - return target, diags - } // we need our value to become a list of values so we can iterate over // them and handle them individually @@ -52,50 +42,130 @@ func reflectSlice(ctx context.Context, typ attr.Type, val tftypes.Value, target return target, diags } - // we need to know the type the slice is wrapping - elemType := target.Type().Elem() - elemAttrType := elemTyper.ElementType() + switch t := typ.(type) { + // List or Set + case attr.TypeWithElementType: + // we need to know the type the slice is wrapping + elemType := target.Type().Elem() + elemAttrType := t.ElementType() + + // we want an empty version of the slice + slice := reflect.MakeSlice(target.Type(), 0, len(values)) + + // go over each of the values passed in, create a Go value of the right + // type for them, and add it to our new slice + for pos, value := range values { + // create a new Go value of the type that can go in the slice + targetValue := reflect.Zero(elemType) + + // update our path so we can have nice errors + valPath := path.AtListIndex(pos) + + if typ.TerraformType(ctx).Is(tftypes.Set{}) { + attrVal, err := elemAttrType.ValueFromTerraform(ctx, value) + + if err != nil { + diags.AddAttributeError( + path, + "Value Conversion Error", + "An unexpected error was encountered trying to convert to slice value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), + ) + return target, diags + } + + valPath = path.AtSetValue(attrVal) + } - // we want an empty version of the slice - slice := reflect.MakeSlice(target.Type(), 0, len(values)) + // reflect the value into our new target + val, valDiags := BuildValue(ctx, elemAttrType, value, targetValue, opts, valPath) + diags.Append(valDiags...) - // go over each of the values passed in, create a Go value of the right - // type for them, and add it to our new slice - for pos, value := range values { - // create a new Go value of the type that can go in the slice - targetValue := reflect.Zero(elemType) + if diags.HasError() { + return target, diags + } - // update our path so we can have nice errors - valPath := path.AtListIndex(pos) + // add the new target to our slice + slice = reflect.Append(slice, val) + } - if typ.TerraformType(ctx).Is(tftypes.Set{}) { - attrVal, err := elemAttrType.ValueFromTerraform(ctx, value) + return slice, diags - if err != nil { - diags.AddAttributeError( - path, - "Value Conversion Error", - "An unexpected error was encountered trying to convert to slice value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), - ) - return target, diags + // Tuple reflection into slices is currently limited to use-cases where all tuple element types are the same. + // + // Overall, Tuple support is limited in the framework, but the main path that executes tuple reflection is the provider-defined function variadic + // parameter. All tuple elements in this variadic parameter will have the same element type. For use-cases where the variadic parameter is a dynamic type, + // all elements will have the same type of `DynamicType` and value of `DynamicValue`, with an underlying value that may be different. + case attr.TypeWithElementTypes: + // we need to know the type the slice is wrapping + elemType := target.Type().Elem() + + // we want an empty version of the slice + slice := reflect.MakeSlice(target.Type(), 0, len(values)) + + if len(t.ElementTypes()) <= 0 { + // If the tuple values are empty as well, we can just pass back an empty slice of the type we received. + if len(values) == 0 { + return slice, diags } - valPath = path.AtSetValue(attrVal) + diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ + Val: val, + TargetType: target.Type(), + Err: fmt.Errorf("cannot reflect %s using type information provided by %T, tuple type contained no element types but received values", val.Type(), t), + })) + return target, diags } - // reflect the value into our new target - val, valDiags := BuildValue(ctx, elemAttrType, value, targetValue, opts, valPath) - diags.Append(valDiags...) + // Ensure that all tuple element types are the same by comparing each element type to the first + multipleTypes := false + allElemTypes := t.ElementTypes() + elemAttrType := allElemTypes[0] + for _, elemType := range allElemTypes[1:] { + if !elemAttrType.Equal(elemType) { + multipleTypes = true + break + } + } - if diags.HasError() { + if multipleTypes { + diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ + Val: val, + TargetType: target.Type(), + Err: fmt.Errorf("cannot reflect %s using type information provided by %T, reflection support for tuples is limited to multiple elements of the same element type. Expected all element types to be %T", val.Type(), t, elemAttrType), + })) return target, diags } - // add the new target to our slice - slice = reflect.Append(slice, val) - } + // go over each of the values passed in, create a Go value of the right + // type for them, and add it to our new slice + for pos, value := range values { + // create a new Go value of the type that can go in the slice + targetValue := reflect.Zero(elemType) + + // update our path so we can have nice errors + valPath := path.AtTupleIndex(pos) - return slice, diags + // reflect the value into our new target + val, valDiags := BuildValue(ctx, elemAttrType, value, targetValue, opts, valPath) + diags.Append(valDiags...) + + if diags.HasError() { + return target, diags + } + + // add the new target to our slice + slice = reflect.Append(slice, val) + } + + return slice, diags + default: + diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ + Val: val, + TargetType: target.Type(), + Err: fmt.Errorf("cannot reflect %s using type information provided by %T, %T must be an attr.TypeWithElementType or attr.TypeWithElementTypes", val.Type(), typ, typ), + })) + return target, diags + } } // FromSlice returns an attr.Value as produced by `typ` using the data in @@ -115,14 +185,6 @@ func FromSlice(ctx context.Context, typ attr.Type, val reflect.Value, path path. if val.IsNil() { tfVal := tftypes.NewValue(tfType, nil) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - - if diags.HasError() { - return nil, diags - } - } - attrVal, err := typ.ValueFromTerraform(ctx, tfVal) if err != nil { @@ -134,54 +196,195 @@ func FromSlice(ctx context.Context, typ attr.Type, val reflect.Value, path path. return nil, diags } - return attrVal, diags - } + switch t := attrVal.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} - t, ok := typ.(attr.TypeWithElementType) - if !ok { - err := fmt.Errorf("cannot use type %T as schema type %T; %T must be an attr.TypeWithElementType to hold %T", val, typ, typ, val) - diags.AddAttributeError( - path, - "Value Conversion Error", - "An unexpected error was encountered trying to convert from slice value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), - ) - return nil, diags + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) + + if diags.HasError() { + return nil, diags + } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + + if diags.HasError() { + return nil, diags + } + } + } + + return attrVal, diags } - elemType := t.ElementType() tfElems := make([]tftypes.Value, 0, val.Len()) - for i := 0; i < val.Len(); i++ { - // The underlying reflect.Slice is fetched by Index(). For set types, - // the path is value-based instead of index-based. Since there is only - // the index until the value is retrieved, this will pass the - // technically incorrect index-based path at first for framework - // debugging purposes, then correct the path afterwards. - valPath := path.AtListIndex(i) + switch t := typ.(type) { + // List or Set + case attr.TypeWithElementType: + elemType := t.ElementType() + for i := 0; i < val.Len(); i++ { + // The underlying reflect.Slice is fetched by Index(). For set types, + // the path is value-based instead of index-based. Since there is only + // the index until the value is retrieved, this will pass the + // technically incorrect index-based path at first for framework + // debugging purposes, then correct the path afterwards. + valPath := path.AtListIndex(i) + + // If the element implements xattr.ValidateableAttribute, or xattr.TypeWithValidate, + // and the element does not validate then diagnostics will be added here and returned + // before reaching the switch statement below. + val, valDiags := FromValue(ctx, elemType, val.Index(i).Interface(), valPath) + diags.Append(valDiags...) + + if diags.HasError() { + return nil, diags + } - val, valDiags := FromValue(ctx, elemType, val.Index(i).Interface(), valPath) - diags.Append(valDiags...) + tfVal, err := val.ToTerraformValue(ctx) + if err != nil { + return nil, append(diags, toTerraformValueErrorDiag(err, path)) + } - if diags.HasError() { + if tfType.Is(tftypes.Set{}) { + valPath = path.AtSetValue(val) + } + + switch t := val.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: valPath, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) + + if diags.HasError() { + return nil, diags + } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := elemType.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, valPath)...) + + if diags.HasError() { + return nil, diags + } + } + } + + tfElems = append(tfElems, tfVal) + } + + // Tuple reflection from slices is currently limited to use-cases where all tuple element types are the same. + // + // Overall, Tuple support is limited in the framework, but the main path that executes tuple reflection is the provider-defined function variadic + // parameter. All tuple elements in this variadic parameter will have the same element type. For use-cases where the variadic parameter is a dynamic type, + // all elements will have the same type of `DynamicType` and value of `DynamicValue`, with an underlying value that may be different. + case attr.TypeWithElementTypes: + if len(t.ElementTypes()) <= 0 { + // If the tuple values are empty as well, we can just pass back an empty slice of the type we received. + if val.Len() == 0 { + break + } + + err := fmt.Errorf("cannot use type %s as schema type %T; tuple type contained no element types but received values", val.Type(), t) + diags.AddAttributeError( + path, + "Value Conversion Error", + "An unexpected error was encountered trying to convert from slice value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), + ) return nil, diags } - tfVal, err := val.ToTerraformValue(ctx) - if err != nil { - return nil, append(diags, toTerraformValueErrorDiag(err, path)) + // Ensure that all tuple element types are the same by comparing each element type to the first + multipleTypes := false + allElemTypes := t.ElementTypes() + elemAttrType := allElemTypes[0] + for _, elemType := range allElemTypes[1:] { + if !elemAttrType.Equal(elemType) { + multipleTypes = true + break + } } - if tfType.Is(tftypes.Set{}) { - valPath = path.AtSetValue(val) + if multipleTypes { + err := fmt.Errorf("cannot use type %s as schema type %T; reflection support for tuples is limited to multiple elements of the same element type. Expected all element types to be %T", val.Type(), t, elemAttrType) + diags.AddAttributeError( + path, + "Value Conversion Error", + "An unexpected error was encountered trying to convert from slice value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), + ) + return nil, diags } - if typeWithValidate, ok := elemType.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, valPath)...) + for i := 0; i < val.Len(); i++ { + valPath := path.AtTupleIndex(i) + + // If the element implements xattr.ValidateableAttribute, or xattr.TypeWithValidate, + // and the element does not validate then diagnostics will be added here and returned + // before reaching the switch statement below. + val, valDiags := FromValue(ctx, elemAttrType, val.Index(i).Interface(), valPath) + diags.Append(valDiags...) + if diags.HasError() { return nil, diags } - } - tfElems = append(tfElems, tfVal) + tfVal, err := val.ToTerraformValue(ctx) + if err != nil { + return nil, append(diags, toTerraformValueErrorDiag(err, path)) + } + + switch t := val.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: valPath, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) + + if diags.HasError() { + return nil, diags + } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := elemAttrType.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, valPath)...) + + if diags.HasError() { + return nil, diags + } + } + } + + tfElems = append(tfElems, tfVal) + } + default: + err := fmt.Errorf("cannot use type %s as schema type %T; %T must be an attr.TypeWithElementType or attr.TypeWithElementTypes", val.Type(), t, t) + diags.AddAttributeError( + path, + "Value Conversion Error", + "An unexpected error was encountered trying to convert from slice value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), + ) + return nil, diags } err := tftypes.ValidateValue(tfType, tfElems) @@ -191,14 +394,6 @@ func FromSlice(ctx context.Context, typ attr.Type, val reflect.Value, path path. tfVal := tftypes.NewValue(tfType, tfElems) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - - if diags.HasError() { - return nil, diags - } - } - attrVal, err := typ.ValueFromTerraform(ctx, tfVal) if err != nil { @@ -210,5 +405,32 @@ func FromSlice(ctx context.Context, typ attr.Type, val reflect.Value, path path. return nil, diags } + switch t := attrVal.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) + + if diags.HasError() { + return nil, diags + } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + + if diags.HasError() { + return nil, diags + } + } + } + return attrVal, diags } diff --git a/internal/provider/reflect/struct.go b/internal/provider/reflect/struct.go index c730135e..68ea9948 100644 --- a/internal/provider/reflect/struct.go +++ b/internal/provider/reflect/struct.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package reflect @@ -229,6 +229,9 @@ func FromStruct(ctx context.Context, typ attr.TypeWithAttributeTypes, val reflec path := path.AtName(name) fieldValue := val.Field(fieldNo) + // If the attr implements xattr.ValidateableAttribute, or xattr.TypeWithValidate, + // and the attr does not validate then diagnostics will be added here and returned + // before reaching the switch statement below. attrVal, attrValDiags := FromValue(ctx, attrTypes[name], fieldValue.Interface(), path) diags.Append(attrValDiags...) @@ -241,33 +244,80 @@ func FromStruct(ctx context.Context, typ attr.TypeWithAttributeTypes, val reflec return nil, append(diags, toTerraformValueErrorDiag(err, path)) } - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfObjVal, path)...) + switch t := attrVal.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := attrTypes[name].(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfObjVal, path)...) + + if diags.HasError() { + return nil, diags + } + } + } + + tfObjTyp := tfObjVal.Type() + + // If the original attribute type is tftypes.DynamicPseudoType, the value could end up being + // a concrete type (like tftypes.String, tftypes.List, etc.). In this scenario, the type used + // to build the final tftypes.Object must stay as tftypes.DynamicPseudoType + if attrTypes[name].TerraformType(ctx).Is(tftypes.DynamicPseudoType) { + tfObjTyp = tftypes.DynamicPseudoType } objValues[name] = tfObjVal - objTypes[name] = tfObjVal.Type() + objTypes[name] = tfObjTyp } tfVal := tftypes.NewValue(tftypes.Object{ AttributeTypes: objTypes, }, objValues) - if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { - diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) + ret, err := typ.ValueFromTerraform(ctx, tfVal) + if err != nil { + return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + } + + switch t := ret.(type) { + case xattr.ValidateableAttribute: + resp := xattr.ValidateAttributeResponse{} + + t.ValidateAttribute(ctx, + xattr.ValidateAttributeRequest{ + Path: path, + }, + &resp, + ) + + diags.Append(resp.Diagnostics...) if diags.HasError() { return nil, diags } - } + default: + //lint:ignore SA1019 xattr.TypeWithValidate is deprecated, but we still need to support it. + if typeWithValidate, ok := typ.(xattr.TypeWithValidate); ok { + diags.Append(typeWithValidate.Validate(ctx, tfVal, path)...) - ret, err := typ.ValueFromTerraform(ctx, tfVal) - if err != nil { - return nil, append(diags, valueFromTerraformErrorDiag(err, path)) + if diags.HasError() { + return nil, diags + } + } } return ret, diags diff --git a/internal/provider/requests_data_source.go b/internal/provider/requests_data_source.go index dc99ca91..9bd38d00 100644 --- a/internal/provider/requests_data_source.go +++ b/internal/provider/requests_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/requests_data_source_sdk.go b/internal/provider/requests_data_source_sdk.go index bb6d7e80..a7f8a311 100644 --- a/internal/provider/requests_data_source_sdk.go +++ b/internal/provider/requests_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resource_data_source.go b/internal/provider/resource_data_source.go index 7f713161..7ded50e7 100644 --- a/internal/provider/resource_data_source.go +++ b/internal/provider/resource_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -546,7 +546,9 @@ func (r *ResourceDataSource) Read(ctx context.Context, req datasource.ReadReques return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetResourceIDRequest{ ID: id, } diff --git a/internal/provider/resource_data_source_sdk.go b/internal/provider/resource_data_source_sdk.go index 0941b046..452eca10 100644 --- a/internal/provider/resource_data_source_sdk.go +++ b/internal/provider/resource_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resource_resource.go b/internal/provider/resource_resource.go index 736a2610..5d8604b3 100644 --- a/internal/provider/resource_resource.go +++ b/internal/provider/resource_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -1191,7 +1191,9 @@ func (r *ResourceResource) Create(ctx context.Context, req resource.CreateReques data.RefreshFromSharedUpdateResourceInfo(&res1.UpdateResourceInfoList.Resources[0]) refreshPlan(ctx, plan, &data, resp.Diagnostics) visibilityInfo := *data.ToSharedVisibilityInfo() - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request2 := operations.UpdateResourceVisibilityRequest{ VisibilityInfo: visibilityInfo, ID: id, @@ -1213,7 +1215,9 @@ func (r *ResourceResource) Create(ctx context.Context, req resource.CreateReques return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - id1 := data.ID.ValueString() + var id1 string + id1 = data.ID.ValueString() + request3 := operations.GetResourceIDRequest{ ID: id1, } @@ -1262,7 +1266,9 @@ func (r *ResourceResource) Read(ctx context.Context, req resource.ReadRequest, r return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetResourceIDRequest{ ID: id, } @@ -1338,7 +1344,9 @@ func (r *ResourceResource) Update(ctx context.Context, req resource.UpdateReques data.RefreshFromSharedUpdateResourceInfo(&res.UpdateResourceInfoList.Resources[0]) refreshPlan(ctx, plan, &data, resp.Diagnostics) visibilityInfo := *data.ToSharedVisibilityInfo() - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request1 := operations.UpdateResourceVisibilityRequest{ VisibilityInfo: visibilityInfo, ID: id, @@ -1360,7 +1368,9 @@ func (r *ResourceResource) Update(ctx context.Context, req resource.UpdateReques return } refreshPlan(ctx, plan, &data, resp.Diagnostics) - id1 := data.ID.ValueString() + var id1 string + id1 = data.ID.ValueString() + request2 := operations.GetResourceIDRequest{ ID: id1, } @@ -1409,7 +1419,9 @@ func (r *ResourceResource) Delete(ctx context.Context, req resource.DeleteReques return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.DeleteResourceRequest{ ID: id, } diff --git a/internal/provider/resource_resource_sdk.go b/internal/provider/resource_resource_sdk.go index df77061c..28b83a80 100644 --- a/internal/provider/resource_resource_sdk.go +++ b/internal/provider/resource_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -9,19 +9,25 @@ import ( ) func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResourceInfo { - appID := r.AppID.ValueString() + var appID string + appID = r.AppID.ValueString() + description := new(string) if !r.Description.IsUnknown() && !r.Description.IsNull() { *description = r.Description.ValueString() } else { description = nil } - name := r.Name.ValueString() + var name string + name = r.Name.ValueString() + var remoteInfo *shared.ResourceRemoteInfo if r.RemoteInfo != nil { var awsAccount *shared.AwsAccount if r.RemoteInfo.AwsAccount != nil { - accountID := r.RemoteInfo.AwsAccount.AccountID.ValueString() + var accountID string + accountID = r.RemoteInfo.AwsAccount.AccountID.ValueString() + awsAccount = &shared.AwsAccount{ AccountID: accountID, } @@ -34,8 +40,12 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } else { accountId1 = nil } - instanceID := r.RemoteInfo.AwsEc2Instance.InstanceID.ValueString() - region := r.RemoteInfo.AwsEc2Instance.Region.ValueString() + var instanceID string + instanceID = r.RemoteInfo.AwsEc2Instance.InstanceID.ValueString() + + var region string + region = r.RemoteInfo.AwsEc2Instance.Region.ValueString() + awsEc2Instance = &shared.AwsEc2Instance{ AccountID: accountId1, InstanceID: instanceID, @@ -50,7 +60,9 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } else { accountId2 = nil } - arn := r.RemoteInfo.AwsEksCluster.Arn.ValueString() + var arn string + arn = r.RemoteInfo.AwsEksCluster.Arn.ValueString() + awsEksCluster = &shared.AwsEksCluster{ AccountID: accountId2, Arn: arn, @@ -64,7 +76,9 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } else { accountId3 = nil } - arn1 := r.RemoteInfo.AwsIamRole.Arn.ValueString() + var arn1 string + arn1 = r.RemoteInfo.AwsIamRole.Arn.ValueString() + awsIamRole = &shared.AwsIamRole{ AccountID: accountId3, Arn: arn1, @@ -72,8 +86,12 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } var awsPermissionSet *shared.AwsPermissionSet if r.RemoteInfo.AwsPermissionSet != nil { - accountId4 := r.RemoteInfo.AwsPermissionSet.AccountID.ValueString() - arn2 := r.RemoteInfo.AwsPermissionSet.Arn.ValueString() + var accountId4 string + accountId4 = r.RemoteInfo.AwsPermissionSet.AccountID.ValueString() + + var arn2 string + arn2 = r.RemoteInfo.AwsPermissionSet.Arn.ValueString() + awsPermissionSet = &shared.AwsPermissionSet{ AccountID: accountId4, Arn: arn2, @@ -87,9 +105,15 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } else { accountId5 = nil } - instanceId1 := r.RemoteInfo.AwsRdsInstance.InstanceID.ValueString() - region1 := r.RemoteInfo.AwsRdsInstance.Region.ValueString() - resourceID := r.RemoteInfo.AwsRdsInstance.ResourceID.ValueString() + var instanceId1 string + instanceId1 = r.RemoteInfo.AwsRdsInstance.InstanceID.ValueString() + + var region1 string + region1 = r.RemoteInfo.AwsRdsInstance.Region.ValueString() + + var resourceID string + resourceID = r.RemoteInfo.AwsRdsInstance.ResourceID.ValueString() + awsRdsInstance = &shared.AwsRdsInstance{ AccountID: accountId5, InstanceID: instanceId1, @@ -99,8 +123,12 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } var gcpBigQueryDataset *shared.GcpBigQueryDataset if r.RemoteInfo.GcpBigQueryDataset != nil { - datasetID := r.RemoteInfo.GcpBigQueryDataset.DatasetID.ValueString() - projectID := r.RemoteInfo.GcpBigQueryDataset.ProjectID.ValueString() + var datasetID string + datasetID = r.RemoteInfo.GcpBigQueryDataset.DatasetID.ValueString() + + var projectID string + projectID = r.RemoteInfo.GcpBigQueryDataset.ProjectID.ValueString() + gcpBigQueryDataset = &shared.GcpBigQueryDataset{ DatasetID: datasetID, ProjectID: projectID, @@ -108,9 +136,15 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } var gcpBigQueryTable *shared.GcpBigQueryTable if r.RemoteInfo.GcpBigQueryTable != nil { - datasetId1 := r.RemoteInfo.GcpBigQueryTable.DatasetID.ValueString() - projectId1 := r.RemoteInfo.GcpBigQueryTable.ProjectID.ValueString() - tableID := r.RemoteInfo.GcpBigQueryTable.TableID.ValueString() + var datasetId1 string + datasetId1 = r.RemoteInfo.GcpBigQueryTable.DatasetID.ValueString() + + var projectId1 string + projectId1 = r.RemoteInfo.GcpBigQueryTable.ProjectID.ValueString() + + var tableID string + tableID = r.RemoteInfo.GcpBigQueryTable.TableID.ValueString() + gcpBigQueryTable = &shared.GcpBigQueryTable{ DatasetID: datasetId1, ProjectID: projectId1, @@ -119,16 +153,24 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } var gcpBucket *shared.GcpBucket if r.RemoteInfo.GcpBucket != nil { - bucketID := r.RemoteInfo.GcpBucket.BucketID.ValueString() + var bucketID string + bucketID = r.RemoteInfo.GcpBucket.BucketID.ValueString() + gcpBucket = &shared.GcpBucket{ BucketID: bucketID, } } var gcpComputeInstance *shared.GcpComputeInstance if r.RemoteInfo.GcpComputeInstance != nil { - instanceId2 := r.RemoteInfo.GcpComputeInstance.InstanceID.ValueString() - projectId2 := r.RemoteInfo.GcpComputeInstance.ProjectID.ValueString() - zone := r.RemoteInfo.GcpComputeInstance.Zone.ValueString() + var instanceId2 string + instanceId2 = r.RemoteInfo.GcpComputeInstance.InstanceID.ValueString() + + var projectId2 string + projectId2 = r.RemoteInfo.GcpComputeInstance.ProjectID.ValueString() + + var zone string + zone = r.RemoteInfo.GcpComputeInstance.Zone.ValueString() + gcpComputeInstance = &shared.GcpComputeInstance{ InstanceID: instanceId2, ProjectID: projectId2, @@ -137,36 +179,48 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } var gcpFolder *shared.GcpFolder if r.RemoteInfo.GcpFolder != nil { - folderID := r.RemoteInfo.GcpFolder.FolderID.ValueString() + var folderID string + folderID = r.RemoteInfo.GcpFolder.FolderID.ValueString() + gcpFolder = &shared.GcpFolder{ FolderID: folderID, } } var gcpGkeCluster *shared.GcpGkeCluster if r.RemoteInfo.GcpGkeCluster != nil { - clusterName := r.RemoteInfo.GcpGkeCluster.ClusterName.ValueString() + var clusterName string + clusterName = r.RemoteInfo.GcpGkeCluster.ClusterName.ValueString() + gcpGkeCluster = &shared.GcpGkeCluster{ ClusterName: clusterName, } } var gcpOrganization *shared.GcpOrganization if r.RemoteInfo.GcpOrganization != nil { - organizationID := r.RemoteInfo.GcpOrganization.OrganizationID.ValueString() + var organizationID string + organizationID = r.RemoteInfo.GcpOrganization.OrganizationID.ValueString() + gcpOrganization = &shared.GcpOrganization{ OrganizationID: organizationID, } } var gcpProject *shared.GcpProject if r.RemoteInfo.GcpProject != nil { - projectId3 := r.RemoteInfo.GcpProject.ProjectID.ValueString() + var projectId3 string + projectId3 = r.RemoteInfo.GcpProject.ProjectID.ValueString() + gcpProject = &shared.GcpProject{ ProjectID: projectId3, } } var gcpSQLInstance *shared.GcpSQLInstance if r.RemoteInfo.GcpSQLInstance != nil { - instanceId3 := r.RemoteInfo.GcpSQLInstance.InstanceID.ValueString() - projectId4 := r.RemoteInfo.GcpSQLInstance.ProjectID.ValueString() + var instanceId3 string + instanceId3 = r.RemoteInfo.GcpSQLInstance.InstanceID.ValueString() + + var projectId4 string + projectId4 = r.RemoteInfo.GcpSQLInstance.ProjectID.ValueString() + gcpSQLInstance = &shared.GcpSQLInstance{ InstanceID: instanceId3, ProjectID: projectId4, @@ -174,57 +228,75 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } var githubRepo *shared.GithubRepo if r.RemoteInfo.GithubRepo != nil { - repoName := r.RemoteInfo.GithubRepo.RepoName.ValueString() + var repoName string + repoName = r.RemoteInfo.GithubRepo.RepoName.ValueString() + githubRepo = &shared.GithubRepo{ RepoName: repoName, } } var gitlabProject *shared.GitlabProject if r.RemoteInfo.GitlabProject != nil { - projectId5 := r.RemoteInfo.GitlabProject.ProjectID.ValueString() + var projectId5 string + projectId5 = r.RemoteInfo.GitlabProject.ProjectID.ValueString() + gitlabProject = &shared.GitlabProject{ ProjectID: projectId5, } } var oktaApp *shared.OktaApp if r.RemoteInfo.OktaApp != nil { - appId1 := r.RemoteInfo.OktaApp.AppID.ValueString() + var appId1 string + appId1 = r.RemoteInfo.OktaApp.AppID.ValueString() + oktaApp = &shared.OktaApp{ AppID: appId1, } } var oktaCustomRole *shared.OktaCustomRole if r.RemoteInfo.OktaCustomRole != nil { - roleID := r.RemoteInfo.OktaCustomRole.RoleID.ValueString() + var roleID string + roleID = r.RemoteInfo.OktaCustomRole.RoleID.ValueString() + oktaCustomRole = &shared.OktaCustomRole{ RoleID: roleID, } } var oktaStandardRole *shared.OktaStandardRole if r.RemoteInfo.OktaStandardRole != nil { - roleType := r.RemoteInfo.OktaStandardRole.RoleType.ValueString() + var roleType string + roleType = r.RemoteInfo.OktaStandardRole.RoleType.ValueString() + oktaStandardRole = &shared.OktaStandardRole{ RoleType: roleType, } } var pagerdutyRole *shared.PagerdutyRole if r.RemoteInfo.PagerdutyRole != nil { - roleName := r.RemoteInfo.PagerdutyRole.RoleName.ValueString() + var roleName string + roleName = r.RemoteInfo.PagerdutyRole.RoleName.ValueString() + pagerdutyRole = &shared.PagerdutyRole{ RoleName: roleName, } } var salesforcePermissionSet *shared.SalesforcePermissionSet if r.RemoteInfo.SalesforcePermissionSet != nil { - permissionSetID := r.RemoteInfo.SalesforcePermissionSet.PermissionSetID.ValueString() + var permissionSetID string + permissionSetID = r.RemoteInfo.SalesforcePermissionSet.PermissionSetID.ValueString() + salesforcePermissionSet = &shared.SalesforcePermissionSet{ PermissionSetID: permissionSetID, } } var salesforceProfile *shared.SalesforceProfile if r.RemoteInfo.SalesforceProfile != nil { - profileID := r.RemoteInfo.SalesforceProfile.ProfileID.ValueString() - userLicenseID := r.RemoteInfo.SalesforceProfile.UserLicenseID.ValueString() + var profileID string + profileID = r.RemoteInfo.SalesforceProfile.ProfileID.ValueString() + + var userLicenseID string + userLicenseID = r.RemoteInfo.SalesforceProfile.UserLicenseID.ValueString() + salesforceProfile = &shared.SalesforceProfile{ ProfileID: profileID, UserLicenseID: userLicenseID, @@ -232,14 +304,18 @@ func (r *ResourceResourceModel) ToSharedCreateResourceInfo() *shared.CreateResou } var salesforceRole *shared.SalesforceRole if r.RemoteInfo.SalesforceRole != nil { - roleId1 := r.RemoteInfo.SalesforceRole.RoleID.ValueString() + var roleId1 string + roleId1 = r.RemoteInfo.SalesforceRole.RoleID.ValueString() + salesforceRole = &shared.SalesforceRole{ RoleID: roleId1, } } var teleportRole *shared.TeleportRole if r.RemoteInfo.TeleportRole != nil { - roleName1 := r.RemoteInfo.TeleportRole.RoleName.ValueString() + var roleName1 string + roleName1 = r.RemoteInfo.TeleportRole.RoleName.ValueString() + teleportRole = &shared.TeleportRole{ RoleName: roleName1, } @@ -562,7 +638,9 @@ func (r *ResourceResourceModel) ToSharedUpdateResourceInfo() *shared.UpdateResou } else { description = nil } - id := r.ID.ValueString() + var id string + id = r.ID.ValueString() + name := new(string) if !r.Name.IsUnknown() && !r.Name.IsNull() { *name = r.Name.ValueString() @@ -571,8 +649,12 @@ func (r *ResourceResourceModel) ToSharedUpdateResourceInfo() *shared.UpdateResou } var requestConfigurations []shared.RequestConfiguration = []shared.RequestConfiguration{} for _, requestConfigurationsItem := range r.RequestConfigurations { - allowRequests := requestConfigurationsItem.AllowRequests.ValueBool() - autoApproval := requestConfigurationsItem.AutoApproval.ValueBool() + var allowRequests bool + allowRequests = requestConfigurationsItem.AllowRequests.ValueBool() + + var autoApproval bool + autoApproval = requestConfigurationsItem.AutoApproval.ValueBool() + var condition *shared.Condition if requestConfigurationsItem.Condition != nil { var groupIds []string = []string{} @@ -594,7 +676,9 @@ func (r *ResourceResourceModel) ToSharedUpdateResourceInfo() *shared.UpdateResou } else { maxDuration = nil } - priority := requestConfigurationsItem.Priority.ValueInt64() + var priority int64 + priority = requestConfigurationsItem.Priority.ValueInt64() + recommendedDuration := new(int64) if !requestConfigurationsItem.RecommendedDuration.IsUnknown() && !requestConfigurationsItem.RecommendedDuration.IsNull() { *recommendedDuration = requestConfigurationsItem.RecommendedDuration.ValueInt64() @@ -607,8 +691,12 @@ func (r *ResourceResourceModel) ToSharedUpdateResourceInfo() *shared.UpdateResou } else { requestTemplateID = nil } - requireMfaToRequest := requestConfigurationsItem.RequireMfaToRequest.ValueBool() - requireSupportTicket := requestConfigurationsItem.RequireSupportTicket.ValueBool() + var requireMfaToRequest bool + requireMfaToRequest = requestConfigurationsItem.RequireMfaToRequest.ValueBool() + + var requireSupportTicket bool + requireSupportTicket = requestConfigurationsItem.RequireSupportTicket.ValueBool() + var reviewerStages []shared.ReviewerStage = []shared.ReviewerStage{} for _, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages { operator := new(shared.Operator) @@ -627,7 +715,9 @@ func (r *ResourceResourceModel) ToSharedUpdateResourceInfo() *shared.UpdateResou } else { requireAdminApproval = nil } - requireManagerApproval := reviewerStagesItem.RequireManagerApproval.ValueBool() + var requireManagerApproval bool + requireManagerApproval = reviewerStagesItem.RequireManagerApproval.ValueBool() + reviewerStages = append(reviewerStages, shared.ReviewerStage{ Operator: operator, OwnerIds: ownerIds, @@ -662,8 +752,12 @@ func (r *ResourceResourceModel) ToSharedUpdateResourceInfo() *shared.UpdateResou } var ticketPropagation *shared.TicketPropagationConfiguration if r.TicketPropagation != nil { - enabledOnGrant := r.TicketPropagation.EnabledOnGrant.ValueBool() - enabledOnRevocation := r.TicketPropagation.EnabledOnRevocation.ValueBool() + var enabledOnGrant bool + enabledOnGrant = r.TicketPropagation.EnabledOnGrant.ValueBool() + + var enabledOnRevocation bool + enabledOnRevocation = r.TicketPropagation.EnabledOnRevocation.ValueBool() + ticketProjectID := new(string) if !r.TicketPropagation.TicketProjectID.IsUnknown() && !r.TicketPropagation.TicketProjectID.IsNull() { *ticketProjectID = r.TicketPropagation.TicketProjectID.ValueString() diff --git a/internal/provider/resourcemessagechannellist_data_source.go b/internal/provider/resourcemessagechannellist_data_source.go index b85f9035..edcbee50 100644 --- a/internal/provider/resourcemessagechannellist_data_source.go +++ b/internal/provider/resourcemessagechannellist_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -117,7 +117,9 @@ func (r *ResourceMessageChannelListDataSource) Read(ctx context.Context, req dat return } - resourceID := data.ResourceID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + request := operations.GetResourceMessageChannelsRequest{ ResourceID: resourceID, } diff --git a/internal/provider/resourcemessagechannellist_data_source_sdk.go b/internal/provider/resourcemessagechannellist_data_source_sdk.go index 2e0da121..3db66de2 100644 --- a/internal/provider/resourcemessagechannellist_data_source_sdk.go +++ b/internal/provider/resourcemessagechannellist_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resourcereviewerslist_data_source.go b/internal/provider/resourcereviewerslist_data_source.go index 4f71e448..68655f6f 100644 --- a/internal/provider/resourcereviewerslist_data_source.go +++ b/internal/provider/resourcereviewerslist_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -94,7 +94,9 @@ func (r *ResourceReviewersListDataSource) Read(ctx context.Context, req datasour return } - resourceID := data.ResourceID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + request := operations.GetResourceReviewersRequest{ ResourceID: resourceID, } diff --git a/internal/provider/resourcereviewerslist_data_source_sdk.go b/internal/provider/resourcereviewerslist_data_source_sdk.go index fe9e6037..d5118234 100644 --- a/internal/provider/resourcereviewerslist_data_source_sdk.go +++ b/internal/provider/resourcereviewerslist_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resources_list_data_source.go b/internal/provider/resources_list_data_source.go index e4995842..bcb10ea0 100644 --- a/internal/provider/resources_list_data_source.go +++ b/internal/provider/resources_list_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resources_list_data_source_sdk.go b/internal/provider/resources_list_data_source_sdk.go index af4ad8d6..cd96f878 100644 --- a/internal/provider/resources_list_data_source_sdk.go +++ b/internal/provider/resources_list_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resourcesaccessstatus_data_source.go b/internal/provider/resourcesaccessstatus_data_source.go index 478aa843..1da89808 100644 --- a/internal/provider/resourcesaccessstatus_data_source.go +++ b/internal/provider/resourcesaccessstatus_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -158,8 +158,12 @@ func (r *ResourcesAccessStatusDataSource) Read(ctx context.Context, req datasour } else { pageSize = nil } - resourceID := data.ResourceID.ValueString() - userID := data.UserID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + + var userID string + userID = data.UserID.ValueString() + request := operations.GetResourceUserAccessStatusRequest{ AccessLevelRemoteID: accessLevelRemoteID, Cursor: cursor, diff --git a/internal/provider/resourcesaccessstatus_data_source_sdk.go b/internal/provider/resourcesaccessstatus_data_source_sdk.go index 0c8da3c7..8ef67a85 100644 --- a/internal/provider/resourcesaccessstatus_data_source_sdk.go +++ b/internal/provider/resourcesaccessstatus_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resourcesusers_list_data_source.go b/internal/provider/resourcesusers_list_data_source.go index 30ed6ff9..7d182651 100644 --- a/internal/provider/resourcesusers_list_data_source.go +++ b/internal/provider/resourcesusers_list_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -156,7 +156,9 @@ func (r *ResourcesUsersListDataSource) Read(ctx context.Context, req datasource. } else { limit = nil } - resourceID := data.ResourceID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + request := operations.GetResourceUsersRequest{ Limit: limit, ResourceID: resourceID, diff --git a/internal/provider/resourcesusers_list_data_source_sdk.go b/internal/provider/resourcesusers_list_data_source_sdk.go index 03526972..cd7786d4 100644 --- a/internal/provider/resourcesusers_list_data_source_sdk.go +++ b/internal/provider/resourcesusers_list_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resourcetag_resource.go b/internal/provider/resourcetag_resource.go index 92e90bdf..136343bf 100644 --- a/internal/provider/resourcetag_resource.go +++ b/internal/provider/resourcetag_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -98,8 +98,12 @@ func (r *ResourceTagResource) Create(ctx context.Context, req resource.CreateReq return } - resourceID := data.ResourceID.ValueString() - tagID := data.TagID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + + var tagID string + tagID = data.TagID.ValueString() + request := operations.CreateResourceTagRequest{ ResourceID: resourceID, TagID: tagID, @@ -188,8 +192,12 @@ func (r *ResourceTagResource) Delete(ctx context.Context, req resource.DeleteReq return } - resourceID := data.ResourceID.ValueString() - tagID := data.TagID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + + var tagID string + tagID = data.TagID.ValueString() + request := operations.DeleteResourceTagRequest{ ResourceID: resourceID, TagID: tagID, diff --git a/internal/provider/resourcetag_resource_sdk.go b/internal/provider/resourcetag_resource_sdk.go index 52547e1f..960c2cae 100644 --- a/internal/provider/resourcetag_resource_sdk.go +++ b/internal/provider/resourcetag_resource_sdk.go @@ -1,3 +1,3 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resourcetags_data_source.go b/internal/provider/resourcetags_data_source.go index e71f09b9..7b5fa7ff 100644 --- a/internal/provider/resourcetags_data_source.go +++ b/internal/provider/resourcetags_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -121,7 +121,9 @@ func (r *ResourceTagsDataSource) Read(ctx context.Context, req datasource.ReadRe return } - resourceID := data.ResourceID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + request := operations.GetResourceTagsRequest{ ResourceID: resourceID, } diff --git a/internal/provider/resourcetags_data_source_sdk.go b/internal/provider/resourcetags_data_source_sdk.go index 0ffc7644..d36081d1 100644 --- a/internal/provider/resourcetags_data_source_sdk.go +++ b/internal/provider/resourcetags_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/resourcevisibility_data_source.go b/internal/provider/resourcevisibility_data_source.go index 90a2706b..3abefe2e 100644 --- a/internal/provider/resourcevisibility_data_source.go +++ b/internal/provider/resourcevisibility_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -98,7 +98,9 @@ func (r *ResourceVisibilityDataSource) Read(ctx context.Context, req datasource. return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetResourceVisibilityRequest{ ID: id, } diff --git a/internal/provider/resourcevisibility_data_source_sdk.go b/internal/provider/resourcevisibility_data_source_sdk.go index f8588cab..60c04cb0 100644 --- a/internal/provider/resourcevisibility_data_source_sdk.go +++ b/internal/provider/resourcevisibility_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/sessions_data_source.go b/internal/provider/sessions_data_source.go index 9cb877a1..9136ae2d 100644 --- a/internal/provider/sessions_data_source.go +++ b/internal/provider/sessions_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -148,7 +148,9 @@ func (r *SessionsDataSource) Read(ctx context.Context, req datasource.ReadReques return } - resourceID := data.ResourceID.ValueString() + var resourceID string + resourceID = data.ResourceID.ValueString() + userID := new(string) if !data.UserID.IsUnknown() && !data.UserID.IsNull() { *userID = data.UserID.ValueString() diff --git a/internal/provider/sessions_data_source_sdk.go b/internal/provider/sessions_data_source_sdk.go index 84213a45..60859335 100644 --- a/internal/provider/sessions_data_source_sdk.go +++ b/internal/provider/sessions_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/tag_data_source.go b/internal/provider/tag_data_source.go index 9ed73ae3..3d17007d 100644 --- a/internal/provider/tag_data_source.go +++ b/internal/provider/tag_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -113,7 +113,9 @@ func (r *TagDataSource) Read(ctx context.Context, req datasource.ReadRequest, re return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetTagByIDRequest{ ID: id, } diff --git a/internal/provider/tag_data_source_sdk.go b/internal/provider/tag_data_source_sdk.go index 3369aaf1..59cd8e13 100644 --- a/internal/provider/tag_data_source_sdk.go +++ b/internal/provider/tag_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/tag_resource.go b/internal/provider/tag_resource.go index 0c93e333..40f71de9 100644 --- a/internal/provider/tag_resource.go +++ b/internal/provider/tag_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -180,7 +180,9 @@ func (r *TagResource) Read(ctx context.Context, req resource.ReadRequest, resp * return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.GetTagByIDRequest{ ID: id, } @@ -252,7 +254,9 @@ func (r *TagResource) Delete(ctx context.Context, req resource.DeleteRequest, re return } - id := data.ID.ValueString() + var id string + id = data.ID.ValueString() + request := operations.DeleteTagByIDRequest{ ID: id, } diff --git a/internal/provider/tag_resource_sdk.go b/internal/provider/tag_resource_sdk.go index 1302935b..0e1d665a 100644 --- a/internal/provider/tag_resource_sdk.go +++ b/internal/provider/tag_resource_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -9,7 +9,9 @@ import ( ) func (r *TagResourceModel) ToSharedCreateTagInfo() *shared.CreateTagInfo { - key := r.Key.ValueString() + var key string + key = r.Key.ValueString() + value := new(string) if !r.Value.IsUnknown() && !r.Value.IsNull() { *value = r.Value.ValueString() diff --git a/internal/provider/tags_list_data_source.go b/internal/provider/tags_list_data_source.go index 8143e6d8..777fa32d 100644 --- a/internal/provider/tags_list_data_source.go +++ b/internal/provider/tags_list_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/tags_list_data_source_sdk.go b/internal/provider/tags_list_data_source_sdk.go index c49bff68..f91bd689 100644 --- a/internal/provider/tags_list_data_source_sdk.go +++ b/internal/provider/tags_list_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/taguser_resource.go b/internal/provider/taguser_resource.go index 0c380384..4c0dab9e 100644 --- a/internal/provider/taguser_resource.go +++ b/internal/provider/taguser_resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -98,8 +98,12 @@ func (r *TagUserResource) Create(ctx context.Context, req resource.CreateRequest return } - tagID := data.TagID.ValueString() - userID := data.UserID.ValueString() + var tagID string + tagID = data.TagID.ValueString() + + var userID string + userID = data.UserID.ValueString() + request := operations.CreateUserTagRequest{ TagID: tagID, UserID: userID, @@ -188,8 +192,12 @@ func (r *TagUserResource) Delete(ctx context.Context, req resource.DeleteRequest return } - tagID := data.TagID.ValueString() - userID := data.UserID.ValueString() + var tagID string + tagID = data.TagID.ValueString() + + var userID string + userID = data.UserID.ValueString() + request := operations.DeleteUserTagRequest{ TagID: tagID, UserID: userID, diff --git a/internal/provider/taguser_resource_sdk.go b/internal/provider/taguser_resource_sdk.go index 52547e1f..960c2cae 100644 --- a/internal/provider/taguser_resource_sdk.go +++ b/internal/provider/taguser_resource_sdk.go @@ -1,3 +1,3 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/test_utils.go b/internal/provider/test_utils.go index dcebe355..af445580 100644 --- a/internal/provider/test_utils.go +++ b/internal/provider/test_utils.go @@ -56,6 +56,10 @@ func GenerateErrorMessageRegexp(message string) *regexp.Regexp { } func GenerateReviewerStages(reviewerStages []ReviewerStageConfig) string { + if len(reviewerStages) == 0 { + return "" + } + reviewerStagesStr := "reviewer_stages = [" for _, reviewerStage := range reviewerStages { reviewerStagesStr += fmt.Sprintf( @@ -94,9 +98,9 @@ func GenerateRequestConfigurations(requestConfigurations []RequestConfigurationC `{ allow_requests = %t auto_approval = %t - max_duration = "%d" + max_duration = %d priority = %d - recommended_duration = "%d" + recommended_duration = %d require_mfa_to_request = %t require_support_ticket = %t %s diff --git a/internal/provider/types/active_directory_group.go b/internal/provider/types/active_directory_group.go index 8773aeb7..0a131d97 100644 --- a/internal/provider/types/active_directory_group.go +++ b/internal/provider/types/active_directory_group.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/app.go b/internal/provider/types/app.go index 8c94dacc..c3dbc5f1 100644 --- a/internal/provider/types/app.go +++ b/internal/provider/types/app.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/aws_account.go b/internal/provider/types/aws_account.go index f3083bac..82510c43 100644 --- a/internal/provider/types/aws_account.go +++ b/internal/provider/types/aws_account.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/aws_ec2_instance.go b/internal/provider/types/aws_ec2_instance.go index de85a9ab..30d6e375 100644 --- a/internal/provider/types/aws_ec2_instance.go +++ b/internal/provider/types/aws_ec2_instance.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/aws_eks_cluster.go b/internal/provider/types/aws_eks_cluster.go index 32de4462..736202b6 100644 --- a/internal/provider/types/aws_eks_cluster.go +++ b/internal/provider/types/aws_eks_cluster.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/aws_permission_set.go b/internal/provider/types/aws_permission_set.go index dfaa3500..23239385 100644 --- a/internal/provider/types/aws_permission_set.go +++ b/internal/provider/types/aws_permission_set.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/aws_rds_instance.go b/internal/provider/types/aws_rds_instance.go index 036a33c3..9f072357 100644 --- a/internal/provider/types/aws_rds_instance.go +++ b/internal/provider/types/aws_rds_instance.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/condition.go b/internal/provider/types/condition.go index e037b169..20d1ac01 100644 --- a/internal/provider/types/condition.go +++ b/internal/provider/types/condition.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/configuration_template.go b/internal/provider/types/configuration_template.go index ffcb6c0f..97f2f6d6 100644 --- a/internal/provider/types/configuration_template.go +++ b/internal/provider/types/configuration_template.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/event.go b/internal/provider/types/event.go index 7382f6ea..91739f7e 100644 --- a/internal/provider/types/event.go +++ b/internal/provider/types/event.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/field_value.go b/internal/provider/types/field_value.go index ba89e79b..e190374f 100644 --- a/internal/provider/types/field_value.go +++ b/internal/provider/types/field_value.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_big_query_dataset.go b/internal/provider/types/gcp_big_query_dataset.go index a337a1d7..6f006e3f 100644 --- a/internal/provider/types/gcp_big_query_dataset.go +++ b/internal/provider/types/gcp_big_query_dataset.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_big_query_table.go b/internal/provider/types/gcp_big_query_table.go index 55123d27..d680c933 100644 --- a/internal/provider/types/gcp_big_query_table.go +++ b/internal/provider/types/gcp_big_query_table.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_bucket.go b/internal/provider/types/gcp_bucket.go index adbfe72d..6dfad7db 100644 --- a/internal/provider/types/gcp_bucket.go +++ b/internal/provider/types/gcp_bucket.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_compute_instance.go b/internal/provider/types/gcp_compute_instance.go index aa6f66e8..fe2b7128 100644 --- a/internal/provider/types/gcp_compute_instance.go +++ b/internal/provider/types/gcp_compute_instance.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_folder.go b/internal/provider/types/gcp_folder.go index 833ea542..f940ac3d 100644 --- a/internal/provider/types/gcp_folder.go +++ b/internal/provider/types/gcp_folder.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_gke_cluster.go b/internal/provider/types/gcp_gke_cluster.go index 9220c520..ad6c33d3 100644 --- a/internal/provider/types/gcp_gke_cluster.go +++ b/internal/provider/types/gcp_gke_cluster.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_organization.go b/internal/provider/types/gcp_organization.go index b58f4870..4d86fb3e 100644 --- a/internal/provider/types/gcp_organization.go +++ b/internal/provider/types/gcp_organization.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_project.go b/internal/provider/types/gcp_project.go index ff56f007..2dd7c004 100644 --- a/internal/provider/types/gcp_project.go +++ b/internal/provider/types/gcp_project.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/gcp_sql_instance.go b/internal/provider/types/gcp_sql_instance.go index 22c5c064..056d2e14 100644 --- a/internal/provider/types/gcp_sql_instance.go +++ b/internal/provider/types/gcp_sql_instance.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/get_group_message_channels_response_body.go b/internal/provider/types/get_group_message_channels_response_body.go index 7af9744f..1b19b458 100644 --- a/internal/provider/types/get_group_message_channels_response_body.go +++ b/internal/provider/types/get_group_message_channels_response_body.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/get_group_on_call_schedules_response_body.go b/internal/provider/types/get_group_on_call_schedules_response_body.go index 5b48e382..ddf404e7 100644 --- a/internal/provider/types/get_group_on_call_schedules_response_body.go +++ b/internal/provider/types/get_group_on_call_schedules_response_body.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/github_repo.go b/internal/provider/types/github_repo.go index 5bc21860..e716e10a 100644 --- a/internal/provider/types/github_repo.go +++ b/internal/provider/types/github_repo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/github_team.go b/internal/provider/types/github_team.go index cef375c5..63b90252 100644 --- a/internal/provider/types/github_team.go +++ b/internal/provider/types/github_team.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/group.go b/internal/provider/types/group.go index 1dbb1dbd..35ca3b60 100644 --- a/internal/provider/types/group.go +++ b/internal/provider/types/group.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/group_remote_info.go b/internal/provider/types/group_remote_info.go index 7f1e59f8..a44b6e36 100644 --- a/internal/provider/types/group_remote_info.go +++ b/internal/provider/types/group_remote_info.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/group_resource1.go b/internal/provider/types/group_resource1.go index 44bfb152..17af0194 100644 --- a/internal/provider/types/group_resource1.go +++ b/internal/provider/types/group_resource1.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/group_user.go b/internal/provider/types/group_user.go index 56a0b3ec..d454a85e 100644 --- a/internal/provider/types/group_user.go +++ b/internal/provider/types/group_user.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/message_channel.go b/internal/provider/types/message_channel.go index 04ac3af9..56280763 100644 --- a/internal/provider/types/message_channel.go +++ b/internal/provider/types/message_channel.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/okta_app.go b/internal/provider/types/okta_app.go index ff189cc5..e682566d 100644 --- a/internal/provider/types/okta_app.go +++ b/internal/provider/types/okta_app.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/okta_custom_role.go b/internal/provider/types/okta_custom_role.go index 32c0e074..987c86c2 100644 --- a/internal/provider/types/okta_custom_role.go +++ b/internal/provider/types/okta_custom_role.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/okta_standard_role.go b/internal/provider/types/okta_standard_role.go index 285672e9..52fc9c23 100644 --- a/internal/provider/types/okta_standard_role.go +++ b/internal/provider/types/okta_standard_role.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/owner.go b/internal/provider/types/owner.go index 1f1e1a4b..7495c3b5 100644 --- a/internal/provider/types/owner.go +++ b/internal/provider/types/owner.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/pagerduty_role.go b/internal/provider/types/pagerduty_role.go index d54ddb9a..af2e64ce 100644 --- a/internal/provider/types/pagerduty_role.go +++ b/internal/provider/types/pagerduty_role.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/request.go b/internal/provider/types/request.go index dad158ff..42203d44 100644 --- a/internal/provider/types/request.go +++ b/internal/provider/types/request.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/request_configuration.go b/internal/provider/types/request_configuration.go index 4f59110e..e7522727 100644 --- a/internal/provider/types/request_configuration.go +++ b/internal/provider/types/request_configuration.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/request_custom_field_response.go b/internal/provider/types/request_custom_field_response.go index 943e27b4..3f69e346 100644 --- a/internal/provider/types/request_custom_field_response.go +++ b/internal/provider/types/request_custom_field_response.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/requested_item.go b/internal/provider/types/requested_item.go index 1ef27a4c..9b0ceffd 100644 --- a/internal/provider/types/requested_item.go +++ b/internal/provider/types/requested_item.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/resource.go b/internal/provider/types/resource.go index 0d4a9e6f..244fdbea 100644 --- a/internal/provider/types/resource.go +++ b/internal/provider/types/resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/resource_access_level.go b/internal/provider/types/resource_access_level.go index 01326c18..cfcbaf7e 100644 --- a/internal/provider/types/resource_access_level.go +++ b/internal/provider/types/resource_access_level.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/resource_access_user.go b/internal/provider/types/resource_access_user.go index c0bf77af..f8b226c2 100644 --- a/internal/provider/types/resource_access_user.go +++ b/internal/provider/types/resource_access_user.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/resource_remote_info.go b/internal/provider/types/resource_remote_info.go index 45f5c1b0..e41e4559 100644 --- a/internal/provider/types/resource_remote_info.go +++ b/internal/provider/types/resource_remote_info.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/resource_with_access_level.go b/internal/provider/types/resource_with_access_level.go index dd9d70bc..8725a760 100644 --- a/internal/provider/types/resource_with_access_level.go +++ b/internal/provider/types/resource_with_access_level.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/reviewer_stage.go b/internal/provider/types/reviewer_stage.go index 58187ce5..af534a66 100644 --- a/internal/provider/types/reviewer_stage.go +++ b/internal/provider/types/reviewer_stage.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/salesforce_permission_set.go b/internal/provider/types/salesforce_permission_set.go index 2a97fc19..cfc6d13e 100644 --- a/internal/provider/types/salesforce_permission_set.go +++ b/internal/provider/types/salesforce_permission_set.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/salesforce_profile.go b/internal/provider/types/salesforce_profile.go index 6133730c..a7f8531b 100644 --- a/internal/provider/types/salesforce_profile.go +++ b/internal/provider/types/salesforce_profile.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/session.go b/internal/provider/types/session.go index 331b96a7..967326ab 100644 --- a/internal/provider/types/session.go +++ b/internal/provider/types/session.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/sub_event.go b/internal/provider/types/sub_event.go index d2f70830..b1f58a49 100644 --- a/internal/provider/types/sub_event.go +++ b/internal/provider/types/sub_event.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/tag.go b/internal/provider/types/tag.go index 57632741..bf191917 100644 --- a/internal/provider/types/tag.go +++ b/internal/provider/types/tag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/tag_filter.go b/internal/provider/types/tag_filter.go index 08c328c4..dc18ee83 100644 --- a/internal/provider/types/tag_filter.go +++ b/internal/provider/types/tag_filter.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/ticket_propagation_configuration.go b/internal/provider/types/ticket_propagation_configuration.go index 3c915994..ca1b81ff 100644 --- a/internal/provider/types/ticket_propagation_configuration.go +++ b/internal/provider/types/ticket_propagation_configuration.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/uar.go b/internal/provider/types/uar.go index 62093fd2..e5c0102c 100644 --- a/internal/provider/types/uar.go +++ b/internal/provider/types/uar.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/uar_scope.go b/internal/provider/types/uar_scope.go index 45024a95..9037ecfc 100644 --- a/internal/provider/types/uar_scope.go +++ b/internal/provider/types/uar_scope.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/user.go b/internal/provider/types/user.go index 0c656746..f7e8def7 100644 --- a/internal/provider/types/user.go +++ b/internal/provider/types/user.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/types/visibility_info.go b/internal/provider/types/visibility_info.go index 89574da3..6cd56ba2 100644 --- a/internal/provider/types/visibility_info.go +++ b/internal/provider/types/visibility_info.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/provider/uar_data_source.go b/internal/provider/uar_data_source.go index bba8769c..05749135 100644 --- a/internal/provider/uar_data_source.go +++ b/internal/provider/uar_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -188,7 +188,9 @@ func (r *UarDataSource) Read(ctx context.Context, req datasource.ReadRequest, re return } - uarID := data.UarID.ValueString() + var uarID string + uarID = data.UarID.ValueString() + request := operations.GetUARIDRequest{ UarID: uarID, } diff --git a/internal/provider/uar_data_source_sdk.go b/internal/provider/uar_data_source_sdk.go index 6bf9c511..65ed795a 100644 --- a/internal/provider/uar_data_source_sdk.go +++ b/internal/provider/uar_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/uars_list_data_source.go b/internal/provider/uars_list_data_source.go index bedde984..3b1d3422 100644 --- a/internal/provider/uars_list_data_source.go +++ b/internal/provider/uars_list_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/uars_list_data_source_sdk.go b/internal/provider/uars_list_data_source_sdk.go index 048c644a..5c457c98 100644 --- a/internal/provider/uars_list_data_source_sdk.go +++ b/internal/provider/uars_list_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/user_data_source.go b/internal/provider/user_data_source.go index d7268772..ad2b2a12 100644 --- a/internal/provider/user_data_source.go +++ b/internal/provider/user_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/user_data_source_sdk.go b/internal/provider/user_data_source_sdk.go index 85ce1e22..979affd8 100644 --- a/internal/provider/user_data_source_sdk.go +++ b/internal/provider/user_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/users_data_source.go b/internal/provider/users_data_source.go index 4594739c..96b38eab 100644 --- a/internal/provider/users_data_source.go +++ b/internal/provider/users_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/users_data_source_sdk.go b/internal/provider/users_data_source_sdk.go index d53f89e4..434e8029 100644 --- a/internal/provider/users_data_source_sdk.go +++ b/internal/provider/users_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/usertags_data_source.go b/internal/provider/usertags_data_source.go index 53e55610..2d017cc5 100644 --- a/internal/provider/usertags_data_source.go +++ b/internal/provider/usertags_data_source.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider @@ -121,7 +121,9 @@ func (r *UserTagsDataSource) Read(ctx context.Context, req datasource.ReadReques return } - userID := data.UserID.ValueString() + var userID string + userID = data.UserID.ValueString() + request := operations.GetUserTagsRequest{ UserID: userID, } diff --git a/internal/provider/usertags_data_source_sdk.go b/internal/provider/usertags_data_source_sdk.go index 0d19b183..ca5f598b 100644 --- a/internal/provider/usertags_data_source_sdk.go +++ b/internal/provider/usertags_data_source_sdk.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/provider/utils.go b/internal/provider/utils.go index 398ae78c..a77185e8 100644 --- a/internal/provider/utils.go +++ b/internal/provider/utils.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package provider diff --git a/internal/sdk/apps.go b/internal/sdk/apps.go index e9e9594a..01dc61fa 100644 --- a/internal/sdk/apps.go +++ b/internal/sdk/apps.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/configurationtemplates.go b/internal/sdk/configurationtemplates.go index c7d8ed80..4ed035ad 100644 --- a/internal/sdk/configurationtemplates.go +++ b/internal/sdk/configurationtemplates.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/events.go b/internal/sdk/events.go index 5e48864b..ad937b7c 100644 --- a/internal/sdk/events.go +++ b/internal/sdk/events.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/groupbindings.go b/internal/sdk/groupbindings.go index 05684f79..83629c8b 100644 --- a/internal/sdk/groupbindings.go +++ b/internal/sdk/groupbindings.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/groups.go b/internal/sdk/groups.go index 6984d853..368fa9cc 100644 --- a/internal/sdk/groups.go +++ b/internal/sdk/groups.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/internal/hooks/hooks.go b/internal/sdk/internal/hooks/hooks.go index ee971826..8ea491ae 100644 --- a/internal/sdk/internal/hooks/hooks.go +++ b/internal/sdk/internal/hooks/hooks.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package hooks diff --git a/internal/sdk/internal/hooks/registration.go b/internal/sdk/internal/hooks/registration.go index e68bf4c8..fa131be8 100644 --- a/internal/sdk/internal/hooks/registration.go +++ b/internal/sdk/internal/hooks/registration.go @@ -1,15 +1,18 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - package hooks /* * This file is only ever generated once on the first generation and then is free to be modified. - * Any hooks you wish to add should be registered in the InitHooks function. Feel free to define them - * in this file or in separate files in the hooks package. + * Any hooks you wish to add should be registered in the initHooks function. Feel free to define + * your hooks in this file or in separate files in the hooks package. + * + * Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance. */ func initHooks(h *Hooks) { - // Add hooks by calling h.register{SDKInit/BeforeRequest/AfterSuccess/AfterError}Hook - // with an instance of a hook that implements that specific Hook interface - // Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance + // exampleHook := &ExampleHook{} + + // h.registerSDKInitHook(exampleHook) + // h.registerBeforeRequestHook(exampleHook) + // h.registerAfterErrorHook(exampleHook) + // h.registerAfterSuccessHook(exampleHook) } diff --git a/internal/sdk/internal/utils/contenttype.go b/internal/sdk/internal/utils/contenttype.go index 763f2d6d..f6487e01 100644 --- a/internal/sdk/internal/utils/contenttype.go +++ b/internal/sdk/internal/utils/contenttype.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/form.go b/internal/sdk/internal/utils/form.go index fa63cb5e..ae81d78b 100644 --- a/internal/sdk/internal/utils/form.go +++ b/internal/sdk/internal/utils/form.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/headers.go b/internal/sdk/internal/utils/headers.go index 107d210c..a07608bd 100644 --- a/internal/sdk/internal/utils/headers.go +++ b/internal/sdk/internal/utils/headers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/json.go b/internal/sdk/internal/utils/json.go index b911237f..8ac68ecc 100644 --- a/internal/sdk/internal/utils/json.go +++ b/internal/sdk/internal/utils/json.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/pathparams.go b/internal/sdk/internal/utils/pathparams.go index 9e7a8787..1170de1c 100644 --- a/internal/sdk/internal/utils/pathparams.go +++ b/internal/sdk/internal/utils/pathparams.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/queryparams.go b/internal/sdk/internal/utils/queryparams.go index 4159a0d9..57753599 100644 --- a/internal/sdk/internal/utils/queryparams.go +++ b/internal/sdk/internal/utils/queryparams.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/requestbody.go b/internal/sdk/internal/utils/requestbody.go index cfb2ba61..0fd33cf6 100644 --- a/internal/sdk/internal/utils/requestbody.go +++ b/internal/sdk/internal/utils/requestbody.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/retries.go b/internal/sdk/internal/utils/retries.go index c0e13be8..21fcceae 100644 --- a/internal/sdk/internal/utils/retries.go +++ b/internal/sdk/internal/utils/retries.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/security.go b/internal/sdk/internal/utils/security.go index f7abb69b..d2558cd7 100644 --- a/internal/sdk/internal/utils/security.go +++ b/internal/sdk/internal/utils/security.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/internal/utils/utils.go b/internal/sdk/internal/utils/utils.go index eab36827..adb2f705 100644 --- a/internal/sdk/internal/utils/utils.go +++ b/internal/sdk/internal/utils/utils.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package utils diff --git a/internal/sdk/messagechannels.go b/internal/sdk/messagechannels.go index 6afd8d0d..df78de08 100644 --- a/internal/sdk/messagechannels.go +++ b/internal/sdk/messagechannels.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/models/errors/sdkerror.go b/internal/sdk/models/errors/sdkerror.go index c5a89b6a..c633d568 100644 --- a/internal/sdk/models/errors/sdkerror.go +++ b/internal/sdk/models/errors/sdkerror.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package errors diff --git a/internal/sdk/models/operations/createconfigurationtemplate.go b/internal/sdk/models/operations/createconfigurationtemplate.go index d41b9d3d..14652de4 100644 --- a/internal/sdk/models/operations/createconfigurationtemplate.go +++ b/internal/sdk/models/operations/createconfigurationtemplate.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/creategroup.go b/internal/sdk/models/operations/creategroup.go index c10bf3d6..b42f5bd8 100644 --- a/internal/sdk/models/operations/creategroup.go +++ b/internal/sdk/models/operations/creategroup.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/creategroupbinding.go b/internal/sdk/models/operations/creategroupbinding.go index fe5f18eb..f487a909 100644 --- a/internal/sdk/models/operations/creategroupbinding.go +++ b/internal/sdk/models/operations/creategroupbinding.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/creategroupresources.go b/internal/sdk/models/operations/creategroupresources.go index 75bd2161..768d5db7 100644 --- a/internal/sdk/models/operations/creategroupresources.go +++ b/internal/sdk/models/operations/creategroupresources.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/creategrouptag.go b/internal/sdk/models/operations/creategrouptag.go index d73ea50f..6d30cf38 100644 --- a/internal/sdk/models/operations/creategrouptag.go +++ b/internal/sdk/models/operations/creategrouptag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/creategroupuser.go b/internal/sdk/models/operations/creategroupuser.go index 09fba44f..b033be09 100644 --- a/internal/sdk/models/operations/creategroupuser.go +++ b/internal/sdk/models/operations/creategroupuser.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createmessagechannel.go b/internal/sdk/models/operations/createmessagechannel.go index c2351fdb..d88a4186 100644 --- a/internal/sdk/models/operations/createmessagechannel.go +++ b/internal/sdk/models/operations/createmessagechannel.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createoncallschedule.go b/internal/sdk/models/operations/createoncallschedule.go index f0cc54db..26299871 100644 --- a/internal/sdk/models/operations/createoncallschedule.go +++ b/internal/sdk/models/operations/createoncallschedule.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createowner.go b/internal/sdk/models/operations/createowner.go index a32ac073..0a5e121b 100644 --- a/internal/sdk/models/operations/createowner.go +++ b/internal/sdk/models/operations/createowner.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createrequest.go b/internal/sdk/models/operations/createrequest.go index 3e002ae5..8987782a 100644 --- a/internal/sdk/models/operations/createrequest.go +++ b/internal/sdk/models/operations/createrequest.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createresource.go b/internal/sdk/models/operations/createresource.go index c3067688..13da3749 100644 --- a/internal/sdk/models/operations/createresource.go +++ b/internal/sdk/models/operations/createresource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createresourcetag.go b/internal/sdk/models/operations/createresourcetag.go index b6bae8d0..4c4d199b 100644 --- a/internal/sdk/models/operations/createresourcetag.go +++ b/internal/sdk/models/operations/createresourcetag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createtag.go b/internal/sdk/models/operations/createtag.go index f7975724..36c09bff 100644 --- a/internal/sdk/models/operations/createtag.go +++ b/internal/sdk/models/operations/createtag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createuar.go b/internal/sdk/models/operations/createuar.go index 75742f32..db6e7477 100644 --- a/internal/sdk/models/operations/createuar.go +++ b/internal/sdk/models/operations/createuar.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/createusertag.go b/internal/sdk/models/operations/createusertag.go index 489f3254..86f86988 100644 --- a/internal/sdk/models/operations/createusertag.go +++ b/internal/sdk/models/operations/createusertag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deleteconfigurationtemplate.go b/internal/sdk/models/operations/deleteconfigurationtemplate.go index 00dcb935..1e504906 100644 --- a/internal/sdk/models/operations/deleteconfigurationtemplate.go +++ b/internal/sdk/models/operations/deleteconfigurationtemplate.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deletegroup.go b/internal/sdk/models/operations/deletegroup.go index d8c830f4..bbc14129 100644 --- a/internal/sdk/models/operations/deletegroup.go +++ b/internal/sdk/models/operations/deletegroup.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deletegroupbinding.go b/internal/sdk/models/operations/deletegroupbinding.go index 0d702bb9..2d4d9e4b 100644 --- a/internal/sdk/models/operations/deletegroupbinding.go +++ b/internal/sdk/models/operations/deletegroupbinding.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deletegrouptag.go b/internal/sdk/models/operations/deletegrouptag.go index c27dc671..436a1ea3 100644 --- a/internal/sdk/models/operations/deletegrouptag.go +++ b/internal/sdk/models/operations/deletegrouptag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deletegroupuser.go b/internal/sdk/models/operations/deletegroupuser.go index 244813ea..324ab36a 100644 --- a/internal/sdk/models/operations/deletegroupuser.go +++ b/internal/sdk/models/operations/deletegroupuser.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deleteowner.go b/internal/sdk/models/operations/deleteowner.go index 7daef7f5..43627f3d 100644 --- a/internal/sdk/models/operations/deleteowner.go +++ b/internal/sdk/models/operations/deleteowner.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deleteresource.go b/internal/sdk/models/operations/deleteresource.go index c28c7a61..27dc3a96 100644 --- a/internal/sdk/models/operations/deleteresource.go +++ b/internal/sdk/models/operations/deleteresource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deleteresourcetag.go b/internal/sdk/models/operations/deleteresourcetag.go index 8e808d9b..be921eff 100644 --- a/internal/sdk/models/operations/deleteresourcetag.go +++ b/internal/sdk/models/operations/deleteresourcetag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deletetagbyid.go b/internal/sdk/models/operations/deletetagbyid.go index 4a7f6536..52e0b17d 100644 --- a/internal/sdk/models/operations/deletetagbyid.go +++ b/internal/sdk/models/operations/deletetagbyid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/deleteusertag.go b/internal/sdk/models/operations/deleteusertag.go index 8874d6e4..0319625b 100644 --- a/internal/sdk/models/operations/deleteusertag.go +++ b/internal/sdk/models/operations/deleteusertag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getappid.go b/internal/sdk/models/operations/getappid.go index cf06bfd4..91591984 100644 --- a/internal/sdk/models/operations/getappid.go +++ b/internal/sdk/models/operations/getappid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getapps.go b/internal/sdk/models/operations/getapps.go index f9b39eee..be3ce000 100644 --- a/internal/sdk/models/operations/getapps.go +++ b/internal/sdk/models/operations/getapps.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getconfigurationtemplates.go b/internal/sdk/models/operations/getconfigurationtemplates.go index d8d96e77..fd4c41fe 100644 --- a/internal/sdk/models/operations/getconfigurationtemplates.go +++ b/internal/sdk/models/operations/getconfigurationtemplates.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getevents.go b/internal/sdk/models/operations/getevents.go index a6d67703..3f1fec8c 100644 --- a/internal/sdk/models/operations/getevents.go +++ b/internal/sdk/models/operations/getevents.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroup.go b/internal/sdk/models/operations/getgroup.go index 3165b29b..cf26f255 100644 --- a/internal/sdk/models/operations/getgroup.go +++ b/internal/sdk/models/operations/getgroup.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroupbinding.go b/internal/sdk/models/operations/getgroupbinding.go index bd6d1f28..2aaa2115 100644 --- a/internal/sdk/models/operations/getgroupbinding.go +++ b/internal/sdk/models/operations/getgroupbinding.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroupbindings.go b/internal/sdk/models/operations/getgroupbindings.go index c7d3863a..1c1b7cbe 100644 --- a/internal/sdk/models/operations/getgroupbindings.go +++ b/internal/sdk/models/operations/getgroupbindings.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroupmessagechannels.go b/internal/sdk/models/operations/getgroupmessagechannels.go index 3250301a..c296a545 100644 --- a/internal/sdk/models/operations/getgroupmessagechannels.go +++ b/internal/sdk/models/operations/getgroupmessagechannels.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgrouponcallschedules.go b/internal/sdk/models/operations/getgrouponcallschedules.go index 04c4a2c8..ec13e35e 100644 --- a/internal/sdk/models/operations/getgrouponcallschedules.go +++ b/internal/sdk/models/operations/getgrouponcallschedules.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroupresources.go b/internal/sdk/models/operations/getgroupresources.go index 4731bd00..1e51186b 100644 --- a/internal/sdk/models/operations/getgroupresources.go +++ b/internal/sdk/models/operations/getgroupresources.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroupreviewersstages.go b/internal/sdk/models/operations/getgroupreviewersstages.go index 34ea0c1d..4b1d7cb6 100644 --- a/internal/sdk/models/operations/getgroupreviewersstages.go +++ b/internal/sdk/models/operations/getgroupreviewersstages.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroups.go b/internal/sdk/models/operations/getgroups.go index 5c71d1da..8586fdb6 100644 --- a/internal/sdk/models/operations/getgroups.go +++ b/internal/sdk/models/operations/getgroups.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgrouptags.go b/internal/sdk/models/operations/getgrouptags.go index 3cf7f681..40237aba 100644 --- a/internal/sdk/models/operations/getgrouptags.go +++ b/internal/sdk/models/operations/getgrouptags.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroupusers.go b/internal/sdk/models/operations/getgroupusers.go index 1a9be489..91587d57 100644 --- a/internal/sdk/models/operations/getgroupusers.go +++ b/internal/sdk/models/operations/getgroupusers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getgroupvisibility.go b/internal/sdk/models/operations/getgroupvisibility.go index a8f7fa77..57943e5f 100644 --- a/internal/sdk/models/operations/getgroupvisibility.go +++ b/internal/sdk/models/operations/getgroupvisibility.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getmessagechannelid.go b/internal/sdk/models/operations/getmessagechannelid.go index 4d9150f7..6009bb05 100644 --- a/internal/sdk/models/operations/getmessagechannelid.go +++ b/internal/sdk/models/operations/getmessagechannelid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getmessagechannels.go b/internal/sdk/models/operations/getmessagechannels.go index bb03a352..ed0d2281 100644 --- a/internal/sdk/models/operations/getmessagechannels.go +++ b/internal/sdk/models/operations/getmessagechannels.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getoncallschedule.go b/internal/sdk/models/operations/getoncallschedule.go index ebf5d0e2..5a251617 100644 --- a/internal/sdk/models/operations/getoncallschedule.go +++ b/internal/sdk/models/operations/getoncallschedule.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getoncallscheduleid.go b/internal/sdk/models/operations/getoncallscheduleid.go index dd8b5246..77a6f3ea 100644 --- a/internal/sdk/models/operations/getoncallscheduleid.go +++ b/internal/sdk/models/operations/getoncallscheduleid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getownerfromname.go b/internal/sdk/models/operations/getownerfromname.go index f9418ee1..391aa796 100644 --- a/internal/sdk/models/operations/getownerfromname.go +++ b/internal/sdk/models/operations/getownerfromname.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getownerid.go b/internal/sdk/models/operations/getownerid.go index e801873f..b0b19a40 100644 --- a/internal/sdk/models/operations/getownerid.go +++ b/internal/sdk/models/operations/getownerid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getowners.go b/internal/sdk/models/operations/getowners.go index da117300..38c02b38 100644 --- a/internal/sdk/models/operations/getowners.go +++ b/internal/sdk/models/operations/getowners.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getrequests.go b/internal/sdk/models/operations/getrequests.go index 41718811..80dcd871 100644 --- a/internal/sdk/models/operations/getrequests.go +++ b/internal/sdk/models/operations/getrequests.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresourceid.go b/internal/sdk/models/operations/getresourceid.go index b07ed54e..38763ab6 100644 --- a/internal/sdk/models/operations/getresourceid.go +++ b/internal/sdk/models/operations/getresourceid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresourcemessagechannels.go b/internal/sdk/models/operations/getresourcemessagechannels.go index 850f196e..38350bcb 100644 --- a/internal/sdk/models/operations/getresourcemessagechannels.go +++ b/internal/sdk/models/operations/getresourcemessagechannels.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresourcereviewers.go b/internal/sdk/models/operations/getresourcereviewers.go index b0457197..fa6f7e5e 100644 --- a/internal/sdk/models/operations/getresourcereviewers.go +++ b/internal/sdk/models/operations/getresourcereviewers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresources.go b/internal/sdk/models/operations/getresources.go index 0c66efd9..e5d2428e 100644 --- a/internal/sdk/models/operations/getresources.go +++ b/internal/sdk/models/operations/getresources.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresourcetags.go b/internal/sdk/models/operations/getresourcetags.go index bffeeb29..3ac3d75b 100644 --- a/internal/sdk/models/operations/getresourcetags.go +++ b/internal/sdk/models/operations/getresourcetags.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresourceuseraccessstatus.go b/internal/sdk/models/operations/getresourceuseraccessstatus.go index 30bd04fc..98df543c 100644 --- a/internal/sdk/models/operations/getresourceuseraccessstatus.go +++ b/internal/sdk/models/operations/getresourceuseraccessstatus.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresourceusers.go b/internal/sdk/models/operations/getresourceusers.go index 760b0fc6..ef70c629 100644 --- a/internal/sdk/models/operations/getresourceusers.go +++ b/internal/sdk/models/operations/getresourceusers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getresourcevisibility.go b/internal/sdk/models/operations/getresourcevisibility.go index 7444ad20..28383213 100644 --- a/internal/sdk/models/operations/getresourcevisibility.go +++ b/internal/sdk/models/operations/getresourcevisibility.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getsessions.go b/internal/sdk/models/operations/getsessions.go index 49daa004..c791ec64 100644 --- a/internal/sdk/models/operations/getsessions.go +++ b/internal/sdk/models/operations/getsessions.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/gettagbyid.go b/internal/sdk/models/operations/gettagbyid.go index 8388c9f1..638c19f7 100644 --- a/internal/sdk/models/operations/gettagbyid.go +++ b/internal/sdk/models/operations/gettagbyid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/gettags.go b/internal/sdk/models/operations/gettags.go index 64ea096c..f25a7367 100644 --- a/internal/sdk/models/operations/gettags.go +++ b/internal/sdk/models/operations/gettags.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getuarid.go b/internal/sdk/models/operations/getuarid.go index 4ad202eb..9bca5c7a 100644 --- a/internal/sdk/models/operations/getuarid.go +++ b/internal/sdk/models/operations/getuarid.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getuars.go b/internal/sdk/models/operations/getuars.go index d6a98ccf..d89fb65a 100644 --- a/internal/sdk/models/operations/getuars.go +++ b/internal/sdk/models/operations/getuars.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getuser.go b/internal/sdk/models/operations/getuser.go index 74177a90..ae898009 100644 --- a/internal/sdk/models/operations/getuser.go +++ b/internal/sdk/models/operations/getuser.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getusers.go b/internal/sdk/models/operations/getusers.go index 921de15f..97aa71fd 100644 --- a/internal/sdk/models/operations/getusers.go +++ b/internal/sdk/models/operations/getusers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/getusertags.go b/internal/sdk/models/operations/getusertags.go index eec83833..1a6b61ea 100644 --- a/internal/sdk/models/operations/getusertags.go +++ b/internal/sdk/models/operations/getusertags.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/options.go b/internal/sdk/models/operations/options.go index fa4015d2..8d31b510 100644 --- a/internal/sdk/models/operations/options.go +++ b/internal/sdk/models/operations/options.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updateconfigurationtemplate.go b/internal/sdk/models/operations/updateconfigurationtemplate.go index 543a3382..035d4147 100644 --- a/internal/sdk/models/operations/updateconfigurationtemplate.go +++ b/internal/sdk/models/operations/updateconfigurationtemplate.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updategroupbindings.go b/internal/sdk/models/operations/updategroupbindings.go index 90260544..d021db97 100644 --- a/internal/sdk/models/operations/updategroupbindings.go +++ b/internal/sdk/models/operations/updategroupbindings.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updategroupmessagechannels.go b/internal/sdk/models/operations/updategroupmessagechannels.go index bf11a476..f4d3d192 100644 --- a/internal/sdk/models/operations/updategroupmessagechannels.go +++ b/internal/sdk/models/operations/updategroupmessagechannels.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updategrouponcallschedules.go b/internal/sdk/models/operations/updategrouponcallschedules.go index ab7cdc0c..979a76e6 100644 --- a/internal/sdk/models/operations/updategrouponcallschedules.go +++ b/internal/sdk/models/operations/updategrouponcallschedules.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updategroupresources.go b/internal/sdk/models/operations/updategroupresources.go index c059b19e..db989626 100644 --- a/internal/sdk/models/operations/updategroupresources.go +++ b/internal/sdk/models/operations/updategroupresources.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updategroupreviewersstages.go b/internal/sdk/models/operations/updategroupreviewersstages.go index fc98333c..810aa1e3 100644 --- a/internal/sdk/models/operations/updategroupreviewersstages.go +++ b/internal/sdk/models/operations/updategroupreviewersstages.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updategroups.go b/internal/sdk/models/operations/updategroups.go index 768fbd46..d8ed6e09 100644 --- a/internal/sdk/models/operations/updategroups.go +++ b/internal/sdk/models/operations/updategroups.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updategroupvisibility.go b/internal/sdk/models/operations/updategroupvisibility.go index ff44dbeb..a005a4e4 100644 --- a/internal/sdk/models/operations/updategroupvisibility.go +++ b/internal/sdk/models/operations/updategroupvisibility.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updateowners.go b/internal/sdk/models/operations/updateowners.go index 299b63fc..bdb87683 100644 --- a/internal/sdk/models/operations/updateowners.go +++ b/internal/sdk/models/operations/updateowners.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updateownerusers.go b/internal/sdk/models/operations/updateownerusers.go index 2d15018e..fb5b23f7 100644 --- a/internal/sdk/models/operations/updateownerusers.go +++ b/internal/sdk/models/operations/updateownerusers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updateresourcemessagechannels.go b/internal/sdk/models/operations/updateresourcemessagechannels.go index ceea950a..8c3ea9a0 100644 --- a/internal/sdk/models/operations/updateresourcemessagechannels.go +++ b/internal/sdk/models/operations/updateresourcemessagechannels.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updateresourcereviewers.go b/internal/sdk/models/operations/updateresourcereviewers.go index 990b70c1..ae0e59ce 100644 --- a/internal/sdk/models/operations/updateresourcereviewers.go +++ b/internal/sdk/models/operations/updateresourcereviewers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updateresources.go b/internal/sdk/models/operations/updateresources.go index 38d6a658..1b44530b 100644 --- a/internal/sdk/models/operations/updateresources.go +++ b/internal/sdk/models/operations/updateresources.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/operations/updateresourcevisibility.go b/internal/sdk/models/operations/updateresourcevisibility.go index 94593420..23a1f4d8 100644 --- a/internal/sdk/models/operations/updateresourcevisibility.go +++ b/internal/sdk/models/operations/updateresourcevisibility.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations diff --git a/internal/sdk/models/shared/app.go b/internal/sdk/models/shared/app.go index 6017ec58..3a3731e0 100644 --- a/internal/sdk/models/shared/app.go +++ b/internal/sdk/models/shared/app.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/appslist.go b/internal/sdk/models/shared/appslist.go index e9db4728..d98c1a7a 100644 --- a/internal/sdk/models/shared/appslist.go +++ b/internal/sdk/models/shared/appslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/apptypeenum.go b/internal/sdk/models/shared/apptypeenum.go index b9c4bd33..45f77e83 100644 --- a/internal/sdk/models/shared/apptypeenum.go +++ b/internal/sdk/models/shared/apptypeenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/condition.go b/internal/sdk/models/shared/condition.go index 5c0b9045..d75b5a7f 100644 --- a/internal/sdk/models/shared/condition.go +++ b/internal/sdk/models/shared/condition.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/configurationtemplate.go b/internal/sdk/models/shared/configurationtemplate.go index 4853fa34..1da9049d 100644 --- a/internal/sdk/models/shared/configurationtemplate.go +++ b/internal/sdk/models/shared/configurationtemplate.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createconfigurationtemplateinfo.go b/internal/sdk/models/shared/createconfigurationtemplateinfo.go index 40083284..6e982560 100644 --- a/internal/sdk/models/shared/createconfigurationtemplateinfo.go +++ b/internal/sdk/models/shared/createconfigurationtemplateinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/creategroupbindinginfo.go b/internal/sdk/models/shared/creategroupbindinginfo.go index c842b060..0c3f6479 100644 --- a/internal/sdk/models/shared/creategroupbindinginfo.go +++ b/internal/sdk/models/shared/creategroupbindinginfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/creategroupinfo.go b/internal/sdk/models/shared/creategroupinfo.go index 3eab0214..9b5b06be 100644 --- a/internal/sdk/models/shared/creategroupinfo.go +++ b/internal/sdk/models/shared/creategroupinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createmessagechannelinfo.go b/internal/sdk/models/shared/createmessagechannelinfo.go index 36cb5f7a..9d24de3e 100644 --- a/internal/sdk/models/shared/createmessagechannelinfo.go +++ b/internal/sdk/models/shared/createmessagechannelinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createoncallscheduleinfo.go b/internal/sdk/models/shared/createoncallscheduleinfo.go index 55f575a3..3943555e 100644 --- a/internal/sdk/models/shared/createoncallscheduleinfo.go +++ b/internal/sdk/models/shared/createoncallscheduleinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createownerinfo.go b/internal/sdk/models/shared/createownerinfo.go index 8d912bf1..a639f86f 100644 --- a/internal/sdk/models/shared/createownerinfo.go +++ b/internal/sdk/models/shared/createownerinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createrequestinfo.go b/internal/sdk/models/shared/createrequestinfo.go index d369f41a..2c3e7f83 100644 --- a/internal/sdk/models/shared/createrequestinfo.go +++ b/internal/sdk/models/shared/createrequestinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createresourceinfo.go b/internal/sdk/models/shared/createresourceinfo.go index a2f82dfa..47cff386 100644 --- a/internal/sdk/models/shared/createresourceinfo.go +++ b/internal/sdk/models/shared/createresourceinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createtaginfo.go b/internal/sdk/models/shared/createtaginfo.go index c7cd998d..aed1467e 100644 --- a/internal/sdk/models/shared/createtaginfo.go +++ b/internal/sdk/models/shared/createtaginfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/createuarinfo.go b/internal/sdk/models/shared/createuarinfo.go index 483bec5c..c5dff4ec 100644 --- a/internal/sdk/models/shared/createuarinfo.go +++ b/internal/sdk/models/shared/createuarinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/event.go b/internal/sdk/models/shared/event.go index e78c24cc..be5e76c9 100644 --- a/internal/sdk/models/shared/event.go +++ b/internal/sdk/models/shared/event.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/group.go b/internal/sdk/models/shared/group.go index 68693be0..c6170b6a 100644 --- a/internal/sdk/models/shared/group.go +++ b/internal/sdk/models/shared/group.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupaccesslevel.go b/internal/sdk/models/shared/groupaccesslevel.go index b866a270..651e8d29 100644 --- a/internal/sdk/models/shared/groupaccesslevel.go +++ b/internal/sdk/models/shared/groupaccesslevel.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupbinding.go b/internal/sdk/models/shared/groupbinding.go index fac0e94d..51c61d78 100644 --- a/internal/sdk/models/shared/groupbinding.go +++ b/internal/sdk/models/shared/groupbinding.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupbindinggroup.go b/internal/sdk/models/shared/groupbindinggroup.go index 071288e0..7c9d7d21 100644 --- a/internal/sdk/models/shared/groupbindinggroup.go +++ b/internal/sdk/models/shared/groupbindinggroup.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupremoteinfo.go b/internal/sdk/models/shared/groupremoteinfo.go index a1b66eb9..86a46743 100644 --- a/internal/sdk/models/shared/groupremoteinfo.go +++ b/internal/sdk/models/shared/groupremoteinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupresource.go b/internal/sdk/models/shared/groupresource.go index 61807b37..03c3d291 100644 --- a/internal/sdk/models/shared/groupresource.go +++ b/internal/sdk/models/shared/groupresource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupresourcelist.go b/internal/sdk/models/shared/groupresourcelist.go index c78ba01e..049a2e42 100644 --- a/internal/sdk/models/shared/groupresourcelist.go +++ b/internal/sdk/models/shared/groupresourcelist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/grouptypeenum.go b/internal/sdk/models/shared/grouptypeenum.go index a90fc143..01d5373a 100644 --- a/internal/sdk/models/shared/grouptypeenum.go +++ b/internal/sdk/models/shared/grouptypeenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupuser.go b/internal/sdk/models/shared/groupuser.go index 766ef7b1..edbce945 100644 --- a/internal/sdk/models/shared/groupuser.go +++ b/internal/sdk/models/shared/groupuser.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/groupuserlist.go b/internal/sdk/models/shared/groupuserlist.go index 3d731bb2..9fde578b 100644 --- a/internal/sdk/models/shared/groupuserlist.go +++ b/internal/sdk/models/shared/groupuserlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/messagechannel.go b/internal/sdk/models/shared/messagechannel.go index c352c8b9..b563f113 100644 --- a/internal/sdk/models/shared/messagechannel.go +++ b/internal/sdk/models/shared/messagechannel.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/messagechannelidlist.go b/internal/sdk/models/shared/messagechannelidlist.go index cd0e2e59..c96c8da6 100644 --- a/internal/sdk/models/shared/messagechannelidlist.go +++ b/internal/sdk/models/shared/messagechannelidlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/messagechannellist.go b/internal/sdk/models/shared/messagechannellist.go index 4ffc97dd..f3f69be8 100644 --- a/internal/sdk/models/shared/messagechannellist.go +++ b/internal/sdk/models/shared/messagechannellist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/messagechannelproviderenum.go b/internal/sdk/models/shared/messagechannelproviderenum.go index 43b89ec6..bbe902d4 100644 --- a/internal/sdk/models/shared/messagechannelproviderenum.go +++ b/internal/sdk/models/shared/messagechannelproviderenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/oncallschedule.go b/internal/sdk/models/shared/oncallschedule.go index 3639f26a..2bc1fbdb 100644 --- a/internal/sdk/models/shared/oncallschedule.go +++ b/internal/sdk/models/shared/oncallschedule.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/oncallscheduleidlist.go b/internal/sdk/models/shared/oncallscheduleidlist.go index b78429e2..f1f359df 100644 --- a/internal/sdk/models/shared/oncallscheduleidlist.go +++ b/internal/sdk/models/shared/oncallscheduleidlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/oncallschedulelist.go b/internal/sdk/models/shared/oncallschedulelist.go index 9c139fb4..4339e240 100644 --- a/internal/sdk/models/shared/oncallschedulelist.go +++ b/internal/sdk/models/shared/oncallschedulelist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/oncallscheduleproviderenum.go b/internal/sdk/models/shared/oncallscheduleproviderenum.go index 8bd0fcc5..f493ce1e 100644 --- a/internal/sdk/models/shared/oncallscheduleproviderenum.go +++ b/internal/sdk/models/shared/oncallscheduleproviderenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/owner.go b/internal/sdk/models/shared/owner.go index d521d9fc..8c41169f 100644 --- a/internal/sdk/models/shared/owner.go +++ b/internal/sdk/models/shared/owner.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginatedconfigurationtemplatelist.go b/internal/sdk/models/shared/paginatedconfigurationtemplatelist.go index 52e4ef15..070bf7bc 100644 --- a/internal/sdk/models/shared/paginatedconfigurationtemplatelist.go +++ b/internal/sdk/models/shared/paginatedconfigurationtemplatelist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginatedeventlist.go b/internal/sdk/models/shared/paginatedeventlist.go index 51cc9724..a0945da3 100644 --- a/internal/sdk/models/shared/paginatedeventlist.go +++ b/internal/sdk/models/shared/paginatedeventlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginatedgroupbindingslist.go b/internal/sdk/models/shared/paginatedgroupbindingslist.go index 0c55cb39..4a9b864d 100644 --- a/internal/sdk/models/shared/paginatedgroupbindingslist.go +++ b/internal/sdk/models/shared/paginatedgroupbindingslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginatedgroupslist.go b/internal/sdk/models/shared/paginatedgroupslist.go index 0f189cc1..0fdc5712 100644 --- a/internal/sdk/models/shared/paginatedgroupslist.go +++ b/internal/sdk/models/shared/paginatedgroupslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginatedownerslist.go b/internal/sdk/models/shared/paginatedownerslist.go index 8585e3b8..81fb72b5 100644 --- a/internal/sdk/models/shared/paginatedownerslist.go +++ b/internal/sdk/models/shared/paginatedownerslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginatedresourceslist.go b/internal/sdk/models/shared/paginatedresourceslist.go index 8670da9a..14704a06 100644 --- a/internal/sdk/models/shared/paginatedresourceslist.go +++ b/internal/sdk/models/shared/paginatedresourceslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginatedtagslist.go b/internal/sdk/models/shared/paginatedtagslist.go index 699385f0..e84a0c9f 100644 --- a/internal/sdk/models/shared/paginatedtagslist.go +++ b/internal/sdk/models/shared/paginatedtagslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginateduarslist.go b/internal/sdk/models/shared/paginateduarslist.go index 6657f759..ca3a3709 100644 --- a/internal/sdk/models/shared/paginateduarslist.go +++ b/internal/sdk/models/shared/paginateduarslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/paginateduserslist.go b/internal/sdk/models/shared/paginateduserslist.go index b36c2e07..b709cce4 100644 --- a/internal/sdk/models/shared/paginateduserslist.go +++ b/internal/sdk/models/shared/paginateduserslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/request.go b/internal/sdk/models/shared/request.go index b7a1171a..fd9f734c 100644 --- a/internal/sdk/models/shared/request.go +++ b/internal/sdk/models/shared/request.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/requestconfiguration.go b/internal/sdk/models/shared/requestconfiguration.go index b3cf6a65..2f66a1b9 100644 --- a/internal/sdk/models/shared/requestconfiguration.go +++ b/internal/sdk/models/shared/requestconfiguration.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/requestcustomfieldresponse.go b/internal/sdk/models/shared/requestcustomfieldresponse.go index d089b760..ba3301e7 100644 --- a/internal/sdk/models/shared/requestcustomfieldresponse.go +++ b/internal/sdk/models/shared/requestcustomfieldresponse.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/requesteditem.go b/internal/sdk/models/shared/requesteditem.go index ea2c1a56..2d15318d 100644 --- a/internal/sdk/models/shared/requesteditem.go +++ b/internal/sdk/models/shared/requesteditem.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/requestlist.go b/internal/sdk/models/shared/requestlist.go index b519f5eb..c3d0b4a9 100644 --- a/internal/sdk/models/shared/requestlist.go +++ b/internal/sdk/models/shared/requestlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/requeststatusenum.go b/internal/sdk/models/shared/requeststatusenum.go index 268dd4e3..305cda59 100644 --- a/internal/sdk/models/shared/requeststatusenum.go +++ b/internal/sdk/models/shared/requeststatusenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/requesttemplatecustomfieldtypeenum.go b/internal/sdk/models/shared/requesttemplatecustomfieldtypeenum.go index 31a7fbdc..92474882 100644 --- a/internal/sdk/models/shared/requesttemplatecustomfieldtypeenum.go +++ b/internal/sdk/models/shared/requesttemplatecustomfieldtypeenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resource.go b/internal/sdk/models/shared/resource.go index a29aa716..aebd195b 100644 --- a/internal/sdk/models/shared/resource.go +++ b/internal/sdk/models/shared/resource.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourceaccesslevel.go b/internal/sdk/models/shared/resourceaccesslevel.go index b4997e40..dae2c3d7 100644 --- a/internal/sdk/models/shared/resourceaccesslevel.go +++ b/internal/sdk/models/shared/resourceaccesslevel.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourceaccessuser.go b/internal/sdk/models/shared/resourceaccessuser.go index aa106db8..189ae181 100644 --- a/internal/sdk/models/shared/resourceaccessuser.go +++ b/internal/sdk/models/shared/resourceaccessuser.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourceaccessuserlist.go b/internal/sdk/models/shared/resourceaccessuserlist.go index 0a970b38..5c914785 100644 --- a/internal/sdk/models/shared/resourceaccessuserlist.go +++ b/internal/sdk/models/shared/resourceaccessuserlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourceremoteinfo.go b/internal/sdk/models/shared/resourceremoteinfo.go index 4fa7744a..f72cb691 100644 --- a/internal/sdk/models/shared/resourceremoteinfo.go +++ b/internal/sdk/models/shared/resourceremoteinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourcetypeenum.go b/internal/sdk/models/shared/resourcetypeenum.go index 9538f554..63015fa4 100644 --- a/internal/sdk/models/shared/resourcetypeenum.go +++ b/internal/sdk/models/shared/resourcetypeenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourceuseraccessstatus.go b/internal/sdk/models/shared/resourceuseraccessstatus.go index 890bb707..bf90cbc0 100644 --- a/internal/sdk/models/shared/resourceuseraccessstatus.go +++ b/internal/sdk/models/shared/resourceuseraccessstatus.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourceuseraccessstatusenum.go b/internal/sdk/models/shared/resourceuseraccessstatusenum.go index db9b3804..351d0532 100644 --- a/internal/sdk/models/shared/resourceuseraccessstatusenum.go +++ b/internal/sdk/models/shared/resourceuseraccessstatusenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/resourcewithaccesslevel.go b/internal/sdk/models/shared/resourcewithaccesslevel.go index 757e1217..a8e95586 100644 --- a/internal/sdk/models/shared/resourcewithaccesslevel.go +++ b/internal/sdk/models/shared/resourcewithaccesslevel.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/revieweridlist.go b/internal/sdk/models/shared/revieweridlist.go index 32fb6199..245b6856 100644 --- a/internal/sdk/models/shared/revieweridlist.go +++ b/internal/sdk/models/shared/revieweridlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/reviewerstage.go b/internal/sdk/models/shared/reviewerstage.go index faf4337f..f4e7cdf7 100644 --- a/internal/sdk/models/shared/reviewerstage.go +++ b/internal/sdk/models/shared/reviewerstage.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/reviewerstagelist.go b/internal/sdk/models/shared/reviewerstagelist.go index d07f7b81..27f24adf 100644 --- a/internal/sdk/models/shared/reviewerstagelist.go +++ b/internal/sdk/models/shared/reviewerstagelist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/security.go b/internal/sdk/models/shared/security.go index 141bcccb..53da6366 100644 --- a/internal/sdk/models/shared/security.go +++ b/internal/sdk/models/shared/security.go @@ -1,14 +1,14 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared type Security struct { - BearerAuth *string `security:"scheme,type=http,subtype=bearer,name=Authorization"` + BearerAuth string `security:"scheme,type=http,subtype=bearer,name=Authorization"` } -func (o *Security) GetBearerAuth() *string { +func (o *Security) GetBearerAuth() string { if o == nil { - return nil + return "" } return o.BearerAuth } diff --git a/internal/sdk/models/shared/session.go b/internal/sdk/models/shared/session.go index 840a9262..4965d6e0 100644 --- a/internal/sdk/models/shared/session.go +++ b/internal/sdk/models/shared/session.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/sessionslist.go b/internal/sdk/models/shared/sessionslist.go index 6c1a22fa..00f2382c 100644 --- a/internal/sdk/models/shared/sessionslist.go +++ b/internal/sdk/models/shared/sessionslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/subevent.go b/internal/sdk/models/shared/subevent.go index f8c9d4b7..7aa27aab 100644 --- a/internal/sdk/models/shared/subevent.go +++ b/internal/sdk/models/shared/subevent.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/tag.go b/internal/sdk/models/shared/tag.go index 8e218c7e..031bbb86 100644 --- a/internal/sdk/models/shared/tag.go +++ b/internal/sdk/models/shared/tag.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/tagfilter.go b/internal/sdk/models/shared/tagfilter.go index d134e239..a20d1159 100644 --- a/internal/sdk/models/shared/tagfilter.go +++ b/internal/sdk/models/shared/tagfilter.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/tagslist.go b/internal/sdk/models/shared/tagslist.go index 59f8ed3c..7cbf035f 100644 --- a/internal/sdk/models/shared/tagslist.go +++ b/internal/sdk/models/shared/tagslist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/ticketingproviderenum.go b/internal/sdk/models/shared/ticketingproviderenum.go index 8b59fddb..53950d7b 100644 --- a/internal/sdk/models/shared/ticketingproviderenum.go +++ b/internal/sdk/models/shared/ticketingproviderenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/ticketpropagationconfiguration.go b/internal/sdk/models/shared/ticketpropagationconfiguration.go index 516805af..ee1e2793 100644 --- a/internal/sdk/models/shared/ticketpropagationconfiguration.go +++ b/internal/sdk/models/shared/ticketpropagationconfiguration.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/uar.go b/internal/sdk/models/shared/uar.go index 9c2d88e3..307dfdfe 100644 --- a/internal/sdk/models/shared/uar.go +++ b/internal/sdk/models/shared/uar.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/uarreviewerassignmentpolicyenum.go b/internal/sdk/models/shared/uarreviewerassignmentpolicyenum.go index 5df73195..636be2c7 100644 --- a/internal/sdk/models/shared/uarreviewerassignmentpolicyenum.go +++ b/internal/sdk/models/shared/uarreviewerassignmentpolicyenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/uarscope.go b/internal/sdk/models/shared/uarscope.go index 13a6e4c1..d8b650a6 100644 --- a/internal/sdk/models/shared/uarscope.go +++ b/internal/sdk/models/shared/uarscope.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updateconfigurationtemplateinfo.go b/internal/sdk/models/shared/updateconfigurationtemplateinfo.go index 4697a84c..9b76bb00 100644 --- a/internal/sdk/models/shared/updateconfigurationtemplateinfo.go +++ b/internal/sdk/models/shared/updateconfigurationtemplateinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updategroupbindinginfo.go b/internal/sdk/models/shared/updategroupbindinginfo.go index 8d430323..33af2041 100644 --- a/internal/sdk/models/shared/updategroupbindinginfo.go +++ b/internal/sdk/models/shared/updategroupbindinginfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updategroupbindinginfolist.go b/internal/sdk/models/shared/updategroupbindinginfolist.go index 4a2f9736..ec106dae 100644 --- a/internal/sdk/models/shared/updategroupbindinginfolist.go +++ b/internal/sdk/models/shared/updategroupbindinginfolist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updategroupinfo.go b/internal/sdk/models/shared/updategroupinfo.go index 503d269b..b79412a7 100644 --- a/internal/sdk/models/shared/updategroupinfo.go +++ b/internal/sdk/models/shared/updategroupinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updategroupinfolist.go b/internal/sdk/models/shared/updategroupinfolist.go index 2eb7dff9..4d5776a7 100644 --- a/internal/sdk/models/shared/updategroupinfolist.go +++ b/internal/sdk/models/shared/updategroupinfolist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updategroupresourcesinfo.go b/internal/sdk/models/shared/updategroupresourcesinfo.go index 571092d8..305b1a78 100644 --- a/internal/sdk/models/shared/updategroupresourcesinfo.go +++ b/internal/sdk/models/shared/updategroupresourcesinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updateownerinfo.go b/internal/sdk/models/shared/updateownerinfo.go index d389821a..dd66e958 100644 --- a/internal/sdk/models/shared/updateownerinfo.go +++ b/internal/sdk/models/shared/updateownerinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updateownerinfolist.go b/internal/sdk/models/shared/updateownerinfolist.go index 95da58c0..6cc9a5ec 100644 --- a/internal/sdk/models/shared/updateownerinfolist.go +++ b/internal/sdk/models/shared/updateownerinfolist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updateresourceinfo.go b/internal/sdk/models/shared/updateresourceinfo.go index d3e2d01f..5ffe4dc4 100644 --- a/internal/sdk/models/shared/updateresourceinfo.go +++ b/internal/sdk/models/shared/updateresourceinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/updateresourceinfolist.go b/internal/sdk/models/shared/updateresourceinfolist.go index f60182d5..92073e47 100644 --- a/internal/sdk/models/shared/updateresourceinfolist.go +++ b/internal/sdk/models/shared/updateresourceinfolist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/user.go b/internal/sdk/models/shared/user.go index 6d51e092..68348375 100644 --- a/internal/sdk/models/shared/user.go +++ b/internal/sdk/models/shared/user.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/userhridpstatusenum.go b/internal/sdk/models/shared/userhridpstatusenum.go index ac7bef7a..da305c5e 100644 --- a/internal/sdk/models/shared/userhridpstatusenum.go +++ b/internal/sdk/models/shared/userhridpstatusenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/useridlist.go b/internal/sdk/models/shared/useridlist.go index a8c4060d..114b69d0 100644 --- a/internal/sdk/models/shared/useridlist.go +++ b/internal/sdk/models/shared/useridlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/userlist.go b/internal/sdk/models/shared/userlist.go index 02d2d129..b52cf782 100644 --- a/internal/sdk/models/shared/userlist.go +++ b/internal/sdk/models/shared/userlist.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/visibilityinfo.go b/internal/sdk/models/shared/visibilityinfo.go index e2483a20..d6002a87 100644 --- a/internal/sdk/models/shared/visibilityinfo.go +++ b/internal/sdk/models/shared/visibilityinfo.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/models/shared/visibilitytypeenum.go b/internal/sdk/models/shared/visibilitytypeenum.go index 0156e611..ecb700bc 100644 --- a/internal/sdk/models/shared/visibilitytypeenum.go +++ b/internal/sdk/models/shared/visibilitytypeenum.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package shared diff --git a/internal/sdk/oncallschedules.go b/internal/sdk/oncallschedules.go index 0f0c6bf8..8a178d03 100644 --- a/internal/sdk/oncallschedules.go +++ b/internal/sdk/oncallschedules.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/opalapi.go b/internal/sdk/opalapi.go index 8da4bc49..a8e99765 100644 --- a/internal/sdk/opalapi.go +++ b/internal/sdk/opalapi.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk @@ -181,8 +181,8 @@ func New(opts ...SDKOption) *OpalAPI { Language: "go", OpenAPIDocVersion: "1.0", SDKVersion: "0.0.1", - GenVersion: "2.378.3", - UserAgent: "speakeasy-sdk/go 0.0.1 2.378.3 1.0 github.com/opalsecurity/terraform-provider-opal/internal/sdk", + GenVersion: "2.384.4", + UserAgent: "speakeasy-sdk/go 0.0.1 2.384.4 1.0 github.com/opalsecurity/terraform-provider-opal/internal/sdk", Hooks: hooks.New(), }, } diff --git a/internal/sdk/owners.go b/internal/sdk/owners.go index c502e4ad..cf11c576 100644 --- a/internal/sdk/owners.go +++ b/internal/sdk/owners.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/requests.go b/internal/sdk/requests.go index 0a1860e0..fb8586a4 100644 --- a/internal/sdk/requests.go +++ b/internal/sdk/requests.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/resources.go b/internal/sdk/resources.go index 60d3106a..0b69ef1b 100644 --- a/internal/sdk/resources.go +++ b/internal/sdk/resources.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/retry/config.go b/internal/sdk/retry/config.go index dbbd57ef..c051b0a4 100644 --- a/internal/sdk/retry/config.go +++ b/internal/sdk/retry/config.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package retry diff --git a/internal/sdk/sessions.go b/internal/sdk/sessions.go index 6c96e75e..c3eb2fee 100644 --- a/internal/sdk/sessions.go +++ b/internal/sdk/sessions.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/tags.go b/internal/sdk/tags.go index 4740c673..041595e7 100644 --- a/internal/sdk/tags.go +++ b/internal/sdk/tags.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/types/bigint.go b/internal/sdk/types/bigint.go index afd0cd2b..9c6a086d 100644 --- a/internal/sdk/types/bigint.go +++ b/internal/sdk/types/bigint.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/sdk/types/date.go b/internal/sdk/types/date.go index c4648fa9..5b2782f2 100644 --- a/internal/sdk/types/date.go +++ b/internal/sdk/types/date.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/sdk/types/datetime.go b/internal/sdk/types/datetime.go index 0529b255..3eff332d 100644 --- a/internal/sdk/types/datetime.go +++ b/internal/sdk/types/datetime.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/sdk/types/decimal.go b/internal/sdk/types/decimal.go index a42284b9..d8429bc6 100644 --- a/internal/sdk/types/decimal.go +++ b/internal/sdk/types/decimal.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/sdk/types/pointers.go b/internal/sdk/types/pointers.go index 4f15e99d..950d6a35 100644 --- a/internal/sdk/types/pointers.go +++ b/internal/sdk/types/pointers.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package types diff --git a/internal/sdk/uars.go b/internal/sdk/uars.go index 7a2a2021..da8a6af7 100644 --- a/internal/sdk/uars.go +++ b/internal/sdk/uars.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/sdk/users.go b/internal/sdk/users.go index 3280376d..adce4259 100644 --- a/internal/sdk/users.go +++ b/internal/sdk/users.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdk diff --git a/internal/validators/DateValidator.go b/internal/validators/DateValidator.go index a4945395..5c45f4fe 100644 --- a/internal/validators/DateValidator.go +++ b/internal/validators/DateValidator.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package validators diff --git a/internal/validators/ExactlyOneChild.go b/internal/validators/ExactlyOneChild.go index 5741558c..1765a3a0 100644 --- a/internal/validators/ExactlyOneChild.go +++ b/internal/validators/ExactlyOneChild.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package validators diff --git a/internal/validators/JSONParseValidator.go b/internal/validators/JSONParseValidator.go index 3a341e19..b8bb96b5 100644 --- a/internal/validators/JSONParseValidator.go +++ b/internal/validators/JSONParseValidator.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package validators diff --git a/internal/validators/RFC3339Validator.go b/internal/validators/RFC3339Validator.go index ad3d7150..f5e61466 100644 --- a/internal/validators/RFC3339Validator.go +++ b/internal/validators/RFC3339Validator.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package validators diff --git a/internal/validators/boolvalidators/not_null.go b/internal/validators/boolvalidators/not_null.go index 45e2e975..6eca17e0 100644 --- a/internal/validators/boolvalidators/not_null.go +++ b/internal/validators/boolvalidators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package boolvalidators diff --git a/internal/validators/float64validators/not_null.go b/internal/validators/float64validators/not_null.go index 75099c29..8f786d27 100644 --- a/internal/validators/float64validators/not_null.go +++ b/internal/validators/float64validators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package float64validators diff --git a/internal/validators/int64validators/not_null.go b/internal/validators/int64validators/not_null.go index 32192d81..707ff957 100644 --- a/internal/validators/int64validators/not_null.go +++ b/internal/validators/int64validators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package int64validators diff --git a/internal/validators/listvalidators/not_null.go b/internal/validators/listvalidators/not_null.go index c7bfa6eb..9b88e520 100644 --- a/internal/validators/listvalidators/not_null.go +++ b/internal/validators/listvalidators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package listvalidators diff --git a/internal/validators/mapvalidators/not_null.go b/internal/validators/mapvalidators/not_null.go index 7d221725..dc6959e9 100644 --- a/internal/validators/mapvalidators/not_null.go +++ b/internal/validators/mapvalidators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package mapvalidators diff --git a/internal/validators/numbervalidators/not_null.go b/internal/validators/numbervalidators/not_null.go index b0851705..57d4da0a 100644 --- a/internal/validators/numbervalidators/not_null.go +++ b/internal/validators/numbervalidators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package numbervalidators diff --git a/internal/validators/objectvalidators/not_null.go b/internal/validators/objectvalidators/not_null.go index c45ca8de..bf018949 100644 --- a/internal/validators/objectvalidators/not_null.go +++ b/internal/validators/objectvalidators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package objectvalidators diff --git a/internal/validators/setvalidators/not_null.go b/internal/validators/setvalidators/not_null.go index 23d6c161..f859d648 100644 --- a/internal/validators/setvalidators/not_null.go +++ b/internal/validators/setvalidators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package setvalidators diff --git a/internal/validators/setvalidators/request_configurations.go b/internal/validators/setvalidators/request_configurations.go new file mode 100644 index 00000000..7ce9164c --- /dev/null +++ b/internal/validators/setvalidators/request_configurations.go @@ -0,0 +1,84 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package setvalidators + +import ( + "context" + "sort" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/opalsecurity/terraform-provider-opal/internal/provider/types" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" +) + +var _ validator.Set = SetRequestConfigurationsValidator{} + +type SetRequestConfigurationsValidator struct{} + +// Description describes the validation in plain text formatting. +func (v SetRequestConfigurationsValidator) Description(_ context.Context) string { + return "validate request configurations to be well formed" +} + +// MarkdownDescription describes the validation in Markdown formatting. +func (v SetRequestConfigurationsValidator) MarkdownDescription(ctx context.Context) string { + return v.Description(ctx) +} + +// Validate performs the validation. +func (v SetRequestConfigurationsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse) { + requestConfigurations := []types.RequestConfiguration{} + + req.ConfigValue.ElementsAs(ctx, &requestConfigurations, true) + + + sort.Slice(requestConfigurations, func(i, j int) bool { + return requestConfigurations[i].Priority.ValueInt64() < requestConfigurations[j].Priority.ValueInt64() + }) + + for idx, requestConfiguration := range requestConfigurations { + if requestConfiguration.Priority.ValueInt64() != int64(idx) { + resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic( + req.Path, + "request configurations must have sequential priority values starting from 0", + req.Path.String()+": "+v.Description(ctx), + )) + } + + if requestConfiguration.Priority.ValueInt64() != 0 && requestConfiguration.Condition == nil { + resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic( + req.Path, + "request configurations must have a condition when priority is not 0", + req.Path.String()+": "+v.Description(ctx), + )) + } else if requestConfiguration.Priority.ValueInt64() == 0 && requestConfiguration.Condition != nil { + resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic( + req.Path, + "default request configurations must not have a condition", + req.Path.String()+": "+v.Description(ctx), + )) + } + + hasReviewerStages, isAutoApprove, isNotRequestable := len(requestConfiguration.ReviewerStages) > 0, requestConfiguration.AutoApproval.ValueBool(), !requestConfiguration.AllowRequests.ValueBool() + if !(hasReviewerStages || isAutoApprove || isNotRequestable) { + resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic( + req.Path, + "invalid request configuration. Please specify a reviewer_stage, set auto_approve to true, or set is_requestable to false", + req.Path.String()+": "+v.Description(ctx), + )) + } + + if hasReviewerStages && isAutoApprove { + resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic( + req.Path, + "request configuration cannot have reviewer_stages when auto_approve is set to true", + req.Path.String()+": "+v.Description(ctx), + )) + } + } + +} + +func RequestConfigurations() validator.Set { + return SetRequestConfigurationsValidator{} +} diff --git a/internal/validators/stringvalidators/not_null.go b/internal/validators/stringvalidators/not_null.go index f15f8ae7..1e40ac1b 100644 --- a/internal/validators/stringvalidators/not_null.go +++ b/internal/validators/stringvalidators/not_null.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package stringvalidators diff --git a/main.go b/main.go index 959b7606..3350b63d 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package main diff --git a/tools/tools.go b/tools/tools.go index 4f42a8cc..36b25801 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,4 +1,4 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. //go:build tools