From acbef061e8b3879db8ff934089e17a26fdbaa43c Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Mon, 16 Oct 2023 22:03:59 +0200 Subject: [PATCH] Add more validation --- docs/data-sources/group.md | 54 +- docs/data-sources/serviceaccount.md | 6 +- docs/resources/group.md | 4 +- docs/resources/grouponsystem.md | 4 +- docs/resources/serviceaccount.md | 2 +- .../provider-install-verification/main.tf | 6 +- internal/provider/full-data-struct-ds.go | 102 ++-- internal/provider/full-data-struct-rs.go | 102 ++-- internal/provider/full-object-attrs-ds.go | 102 ++-- internal/provider/full-object-attrs-rs.go | 102 ++-- internal/provider/full-schema-ds.go | 244 ++++----- internal/provider/full-schema-rs.go | 497 ++++++++++-------- .../provider/full-tf-to-data-struct-ds.go | 102 ++-- .../provider/full-tf-to-data-struct-rs.go | 102 ++-- internal/provider/full-tf-to-tkh-ds.go | 304 +++++------ internal/provider/full-tf-to-tkh-rs.go | 304 +++++------ internal/provider/full-tkh-to-tf-ds.go | 300 +++++------ internal/provider/full-tkh-to-tf-rs.go | 300 +++++------ 18 files changed, 1362 insertions(+), 1275 deletions(-) diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index abe1b41..2f96d59 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -3575,12 +3575,12 @@ Read-Only: - `name_in_system` (String) - `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) -- `provisioning_group_on_system_primer_type` (String) - `short_name_in_system` (String) - `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system)) +- `type` (String) -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: @@ -3591,18 +3591,18 @@ Read-Only: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.links` Read-Only: @@ -3612,8 +3612,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.permissions` Read-Only: @@ -3625,7 +3625,7 @@ Read-Only: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: @@ -3636,20 +3636,20 @@ Read-Only: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--permissions)) - `provisioning_provisioned_system_primer_type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.links` Read-Only: @@ -3659,18 +3659,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit.uuid` Read-Only: @@ -3680,8 +3680,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit.uuid` Read-Only: @@ -3692,8 +3692,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.permissions` Read-Only: @@ -4826,9 +4826,9 @@ Read-Only: - `name_in_system` (String) - `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) -- `provisioning_group_on_system_primer_type` (String) - `short_name_in_system` (String) - `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system)) +- `type` (String) ### Nested Schema for `additional_objects.systems.items.permissions.links` diff --git a/docs/data-sources/serviceaccount.md b/docs/data-sources/serviceaccount.md index 4d662d0..8d4f8b2 100644 --- a/docs/data-sources/serviceaccount.md +++ b/docs/data-sources/serviceaccount.md @@ -77,11 +77,11 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) - `name_in_system` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) -- `provisioning_group_on_system_primer_type` (String) - `short_name_in_system` (String) +- `type` (String) -### Nested Schema for `additional_objects.groups.items.short_name_in_system` +### Nested Schema for `additional_objects.groups.items.type` Read-Only: @@ -92,7 +92,7 @@ Read-Only: -### Nested Schema for `additional_objects.groups.items.short_name_in_system` +### Nested Schema for `additional_objects.groups.items.type` Read-Only: diff --git a/docs/resources/group.md b/docs/resources/group.md index abe61ef..9e3179b 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -1399,7 +1399,7 @@ Required: - `name_in_system` (String) - `owner_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: @@ -1896,7 +1896,7 @@ Required: - `name_in_system` (String) - `owner_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index 81104cf..5513c00 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -20,7 +20,7 @@ description: |- - `name_in_system` (String) - `owner_uuid` (String) - `provisioned_system_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) ### Optional @@ -74,7 +74,7 @@ Required: - `name_in_system` (String) - `owner_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md index a89953a..efeed0e 100644 --- a/docs/resources/serviceaccount.md +++ b/docs/resources/serviceaccount.md @@ -82,7 +82,7 @@ Optional: Required: - `name_in_system` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index a158767..e25f27f 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -53,7 +53,7 @@ provider "keyhubpreview" { #} resource "keyhubpreview_group" "terra" { - name = "Terraform x" + name = "Terraform" additional_objects = { accounts = { items = [{ @@ -64,6 +64,10 @@ resource "keyhubpreview_group" "terra" { } } +resource "keyhubpreview_grouponsystem" "terragos" { + +} + #output "resource_group" { # value = resource.keyhubpreview_group.terra #} diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index e0dc6a9..87522ff 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -108,7 +108,7 @@ type auditAuditRecordDataDS struct { Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + AuditAuditRecordType types.String `tfsdk:"type"` DateTime types.String `tfsdk:"date_time"` OnAccount types.String `tfsdk:"on_account"` OnCertificate types.String `tfsdk:"on_certificate"` @@ -383,7 +383,7 @@ type certificateCertificateDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -410,7 +410,7 @@ type certificateCertificatePrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -455,7 +455,7 @@ var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApp type clientClientApplicationDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -467,8 +467,8 @@ type clientClientApplicationDataDS struct { Owner types.Object `tfsdk:"owner"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` OAuth2Client types.Object `tfsdk:"o_auth2_client"` - LDAPClient types.Object `tfsdk:"ldap_client"` Saml2Client types.Object `tfsdk:"saml2_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` } var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) @@ -484,7 +484,7 @@ var clientClientApplicationPrimerAttrTypesDSRecurse = objectAttrsTypeDSClientCli type clientClientApplicationPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -633,7 +633,7 @@ type directoryAccountDirectoryDataDS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` @@ -646,8 +646,8 @@ type directoryAccountDirectoryDataDS struct { UsernameCustomizable types.Bool `tfsdk:"username_customizable"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -665,7 +665,7 @@ type directoryAccountDirectoryPrimerDataDS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` } @@ -685,7 +685,7 @@ var directoryAccountDirectorySummaryAttrTypesDSRecurse = objectAttrsTypeDSDirect type directoryAccountDirectorySummaryDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"type"` DomainRestriction types.String `tfsdk:"domain_restriction"` FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` Name types.String `tfsdk:"name"` @@ -1340,7 +1340,7 @@ var markItemMarkerAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker(true) type markItemMarkerDataDS struct { Level types.String `tfsdk:"level"` - MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + MarkItemMarkerType types.String `tfsdk:"type"` Parameters types.Object `tfsdk:"parameters"` } @@ -1518,7 +1518,7 @@ type nestedProvisioningGroupOnSystemDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1567,7 +1567,7 @@ type nestedServiceaccountServiceAccountGroupDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1865,7 +1865,7 @@ type provisioningGroupOnSystemDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1888,7 +1888,7 @@ type provisioningGroupOnSystemPrimerDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` } @@ -2063,7 +2063,7 @@ type provisioningProvisionedSystemDataDS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` @@ -2077,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2103,7 +2103,7 @@ type provisioningProvisionedSystemPrimerDataDS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` } @@ -2353,43 +2353,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` JoinGroupRequest types.Object `tfsdk:"join_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) @@ -2577,7 +2577,7 @@ type serviceaccountServiceAccountGroupDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -2825,7 +2825,7 @@ var vaultVaultRecordShareAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordS type vaultVaultRecordShareDataDS struct { Name types.String `tfsdk:"name"` - VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` + VaultVaultRecordShareType types.String `tfsdk:"type"` } var vaultVaultRecordShareSummaryAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShareSummary(false) @@ -2975,7 +2975,7 @@ type webhookWebhookPushDataDS struct { Timestamp types.String `tfsdk:"timestamp"` VaultRecord types.Object `tfsdk:"vault_record"` Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` + WebhookWebhookPushType types.String `tfsdk:"type"` } var webhookWebhook_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhook_additionalObjects(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index cbb9f07..3a8c603 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -106,7 +106,7 @@ type auditAuditRecordDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + AuditAuditRecordType types.String `tfsdk:"type"` DateTime types.String `tfsdk:"date_time"` OnAccount types.String `tfsdk:"on_account"` OnCertificate types.String `tfsdk:"on_certificate"` @@ -354,7 +354,7 @@ type certificateCertificateDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -380,7 +380,7 @@ type certificateCertificatePrimerDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -424,7 +424,7 @@ var clientClientApplicationAttrTypesRSRecurse = objectAttrsTypeRSClientClientApp type clientClientApplicationDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -435,8 +435,8 @@ type clientClientApplicationDataRS struct { OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` OAuth2Client types.Object `tfsdk:"o_auth2_client"` - LDAPClient types.Object `tfsdk:"ldap_client"` Saml2Client types.Object `tfsdk:"saml2_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` } var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) @@ -452,7 +452,7 @@ var clientClientApplicationPrimerAttrTypesRSRecurse = objectAttrsTypeRSClientCli type clientClientApplicationPrimerDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -599,7 +599,7 @@ type directoryAccountDirectoryDataRS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -611,8 +611,8 @@ type directoryAccountDirectoryDataRS struct { UsernameCustomizable types.Bool `tfsdk:"username_customizable"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -630,7 +630,7 @@ type directoryAccountDirectoryPrimerDataRS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` } @@ -650,7 +650,7 @@ var directoryAccountDirectorySummaryAttrTypesRSRecurse = objectAttrsTypeRSDirect type directoryAccountDirectorySummaryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"type"` DomainRestriction types.String `tfsdk:"domain_restriction"` FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` Name types.String `tfsdk:"name"` @@ -1285,7 +1285,7 @@ var markItemMarkerAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker(true) type markItemMarkerDataRS struct { Level types.String `tfsdk:"level"` - MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + MarkItemMarkerType types.String `tfsdk:"type"` Parameters types.Object `tfsdk:"parameters"` } @@ -1412,7 +1412,7 @@ type nestedProvisioningGroupOnSystemDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` OwnerUUID types.String `tfsdk:"owner_uuid"` @@ -1452,7 +1452,7 @@ type nestedServiceaccountServiceAccountGroupDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` } @@ -1737,7 +1737,7 @@ type provisioningGroupOnSystemDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` OwnerUUID types.String `tfsdk:"owner_uuid"` @@ -1759,7 +1759,7 @@ type provisioningGroupOnSystemPrimerDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` } @@ -1926,7 +1926,7 @@ type provisioningProvisionedSystemDataRS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1939,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -1965,7 +1965,7 @@ type provisioningProvisionedSystemPrimerDataRS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` } @@ -2213,43 +2213,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` JoinGroupRequest types.Object `tfsdk:"join_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) @@ -2440,7 +2440,7 @@ type serviceaccountServiceAccountGroupDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` } @@ -2686,7 +2686,7 @@ var vaultVaultRecordShareAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordS type vaultVaultRecordShareDataRS struct { Name types.String `tfsdk:"name"` - VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` + VaultVaultRecordShareType types.String `tfsdk:"type"` } var vaultVaultRecordShareSummaryAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShareSummary(false) @@ -2835,7 +2835,7 @@ type webhookWebhookPushDataRS struct { Timestamp types.String `tfsdk:"timestamp"` VaultRecord types.Object `tfsdk:"vault_record"` Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` + WebhookWebhookPushType types.String `tfsdk:"type"` } var webhookWebhook_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhook_additionalObjects(false) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 82f9cf1..17f5dd8 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -102,7 +102,7 @@ func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["date_time"] = types.StringType objectAttrs["on_account"] = types.StringType objectAttrs["on_certificate"] = types.StringType @@ -361,7 +361,7 @@ func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -385,7 +385,7 @@ func objectAttrsTypeDSCertificateCertificatePrimer(recurse bool) map[string]attr objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -432,7 +432,7 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -443,8 +443,8 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client(false)} + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} return objectAttrs } @@ -458,7 +458,7 @@ func objectAttrsTypeDSClientClientApplicationPrimer(recurse bool) map[string]att objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -603,7 +603,7 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} @@ -615,8 +615,8 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["username_customizable"] = types.BoolType objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -632,7 +632,7 @@ func objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs @@ -650,7 +650,7 @@ func objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse bool) map[string] objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["domain_restriction"] = types.StringType objectAttrs["fully_resolved_issuer"] = types.StringType objectAttrs["name"] = types.StringType @@ -1268,7 +1268,7 @@ func objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Typ func objectAttrsTypeDSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType - objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker_parameters(recurse)} return objectAttrs } @@ -1453,7 +1453,7 @@ func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -1505,7 +1505,7 @@ func objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(recurse bool) map[ objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} return objectAttrs @@ -1781,7 +1781,7 @@ func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -1801,7 +1801,7 @@ func objectAttrsTypeDSProvisioningGroupOnSystemPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -1964,7 +1964,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type @@ -1977,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } @@ -2001,7 +2001,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse bool) map[stri objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } @@ -2224,43 +2224,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} return objectAttrs } @@ -2429,7 +2429,7 @@ func objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse bool) map[string objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} return objectAttrs @@ -2653,7 +2653,7 @@ func objectAttrsTypeDSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type func objectAttrsTypeDSVaultVaultRecordShare(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["name"] = types.StringType - objectAttrs["vault_vault_record_share_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } @@ -2795,7 +2795,7 @@ func objectAttrsTypeDSWebhookWebhookPush(recurse bool) map[string]attr.Type { objectAttrs["timestamp"] = types.StringType objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook_webhook_push_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index cb4bb27..f9f0511 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -100,7 +100,7 @@ func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["date_time"] = types.StringType objectAttrs["on_account"] = types.StringType objectAttrs["on_certificate"] = types.StringType @@ -330,7 +330,7 @@ func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -353,7 +353,7 @@ func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -399,7 +399,7 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -409,8 +409,8 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client(false)} + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} return objectAttrs } @@ -424,7 +424,7 @@ func objectAttrsTypeRSClientClientApplicationPrimer(recurse bool) map[string]att objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -567,7 +567,7 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["base_organizational_unit_uuid"] = types.StringType @@ -578,8 +578,8 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["username_customizable"] = types.BoolType objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -595,7 +595,7 @@ func objectAttrsTypeRSDirectoryAccountDirectoryPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs @@ -613,7 +613,7 @@ func objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse bool) map[string] objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["domain_restriction"] = types.StringType objectAttrs["fully_resolved_issuer"] = types.StringType objectAttrs["name"] = types.StringType @@ -1211,7 +1211,7 @@ func objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Typ func objectAttrsTypeRSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType - objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker_parameters(recurse)} return objectAttrs } @@ -1343,7 +1343,7 @@ func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["system_uuid"] = types.StringType @@ -1386,7 +1386,7 @@ func objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(recurse bool) map[ objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -1649,7 +1649,7 @@ func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["system_uuid"] = types.StringType @@ -1668,7 +1668,7 @@ func objectAttrsTypeRSProvisioningGroupOnSystemPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -1823,7 +1823,7 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType @@ -1835,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } @@ -1859,7 +1859,7 @@ func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[stri objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } @@ -2080,43 +2080,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} return objectAttrs } @@ -2288,7 +2288,7 @@ func objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse bool) map[string objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -2510,7 +2510,7 @@ func objectAttrsTypeRSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type func objectAttrsTypeRSVaultVaultRecordShare(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["name"] = types.StringType - objectAttrs["vault_vault_record_share_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } @@ -2651,7 +2651,7 @@ func objectAttrsTypeRSWebhookWebhookPush(recurse bool) map[string]attr.Type { objectAttrs["timestamp"] = types.StringType objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook_webhook_push_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 9bef507..4ed23b1 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -135,7 +135,7 @@ func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dssch Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -228,7 +228,7 @@ func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Att )), }, } - schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["date_time"] = dsschema.StringAttribute{ @@ -817,7 +817,7 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche schemaAttrs["alias"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["certificate_data"] = dsschema.ListAttribute{ @@ -888,7 +888,7 @@ func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string] schemaAttrs["alias"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["certificate_data"] = dsschema.ListAttribute{ @@ -939,7 +939,7 @@ func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[st Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1023,7 +1023,7 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch }, Computed: true, } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["client_id"] = dsschema.StringAttribute{ @@ -1070,14 +1070,14 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), Computed: true, } - schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), - Computed: true, - } schemaAttrs["saml2_client"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientSaml2Client(false), Computed: true, } + schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1104,7 +1104,7 @@ func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string }, Computed: true, } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["client_id"] = dsschema.StringAttribute{ @@ -1375,7 +1375,7 @@ func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[s Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1465,7 +1465,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1515,14 +1515,14 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), Computed: true, } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), - Computed: true, - } schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), Computed: true, } + schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1555,7 +1555,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[stri schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1597,7 +1597,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[str }, Computed: true, } - schemaAttrs["directory_account_directory_summary_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ @@ -2819,7 +2819,7 @@ func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschem Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3114,7 +3114,7 @@ func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attri schemaAttrs["level"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ @@ -3149,7 +3149,7 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3282,7 +3282,7 @@ func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[s Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3331,7 +3331,7 @@ func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dssch Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3401,7 +3401,7 @@ func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dssch Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3483,7 +3483,7 @@ func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschem Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3557,7 +3557,7 @@ func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bo Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3605,7 +3605,7 @@ func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bo Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3663,7 +3663,7 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3684,7 +3684,7 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -3721,7 +3721,7 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3778,7 +3778,7 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse boo Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3828,7 +3828,7 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3849,7 +3849,7 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -3878,7 +3878,7 @@ func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string] Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4443,7 +4443,7 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -4498,7 +4498,7 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[stri schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -4826,7 +4826,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), Computed: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ @@ -4878,6 +4878,10 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Computed: true, + } schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Computed: true, @@ -4886,30 +4890,26 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } - schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Computed: true, } schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Computed: true, - } schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Computed: true, - } schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), Computed: true, } + schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -4946,7 +4946,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[ Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), Computed: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ @@ -5325,152 +5325,152 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), Computed: true, } - schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } - schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } - schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), Computed: true, } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Computed: true, } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } - schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), Computed: true, } schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Computed: true, } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Computed: true, } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Computed: true, } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), Computed: true, } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Computed: true, } return schemaAttrs @@ -5744,7 +5744,7 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[st schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -6209,7 +6209,7 @@ func dataSourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]dsschem schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["vault_vault_record_share_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs @@ -6570,7 +6570,7 @@ func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.A Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), Computed: true, } - schemaAttrs["webhook_webhook_push_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 0728b4c..841a251 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -7,6 +7,7 @@ import ( "regexp" "github.com/hashicorp/terraform-plugin-framework-validators/int64validator" + "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" @@ -153,7 +154,7 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -252,7 +253,7 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -539,7 +540,7 @@ func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.At schemaAttrs["default_organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_name"] = rsschema.StringAttribute{ @@ -698,7 +699,7 @@ func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.At schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["activation_code"] = rsschema.StringAttribute{ @@ -783,6 +784,13 @@ func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribu schemaAttrs["operations"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "CREATE", "READ", "UPDATE", "DELETE", + ), + ), + }, } schemaAttrs["type_escaped"] = rsschema.StringAttribute{ Optional: true, @@ -837,7 +845,7 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema stringvalidator.UTF8LengthBetween(0, 128), }, } - schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -904,7 +912,7 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs stringvalidator.UTF8LengthBetween(0, 128), }, } - schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -954,7 +962,7 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1053,7 +1061,7 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1087,27 +1095,27 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["o_auth2_client"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2Client(false), Optional: true, } - schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), - Optional: true, - } schemaAttrs["saml2_client"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientSaml2Client(false), Optional: true, } + schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1136,7 +1144,7 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1204,7 +1212,7 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ @@ -1302,13 +1310,13 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["value"] = rsschema.StringAttribute{ @@ -1356,13 +1364,13 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["value"] = rsschema.StringAttribute{ @@ -1441,7 +1449,7 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1549,7 +1557,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1566,7 +1574,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["default_directory"] = rsschema.BoolAttribute{ @@ -1577,7 +1585,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ @@ -1606,14 +1614,14 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), Optional: true, } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), - Optional: true, - } schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), Optional: true, } + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1651,7 +1659,7 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1703,7 +1711,7 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -1762,7 +1770,7 @@ func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rssc schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -1784,7 +1792,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["dialect"] = rsschema.StringAttribute{ @@ -1803,7 +1811,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["host"] = rsschema.StringAttribute{ @@ -1854,7 +1862,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -1938,7 +1946,7 @@ func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attr schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["end_date"] = rsschema.StringAttribute{ @@ -2059,25 +2067,25 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ @@ -2088,7 +2096,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["description"] = rsschema.StringAttribute{ @@ -2112,14 +2120,14 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Computed: true, Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["private_group"] = rsschema.BoolAttribute{ @@ -2170,7 +2178,7 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ @@ -2396,6 +2404,13 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. ElementType: types.StringType, Optional: true, Computed: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER", + ), + ), + }, } return schemaAttrs } @@ -2540,6 +2555,13 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche schemaAttrs["required_months"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER", + ), + ), + }, } schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ Computed: true, @@ -2605,7 +2627,7 @@ func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string] schemaAttrs["classificaton_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -2812,6 +2834,11 @@ func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -3050,7 +3077,7 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3146,7 +3173,7 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ @@ -3205,13 +3232,13 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ @@ -3230,7 +3257,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ @@ -3332,6 +3359,11 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche schemaAttrs["customer_domains"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.UTF8LengthBetween(0, 100), + ), + }, } schemaAttrs["details"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -3343,6 +3375,13 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche schemaAttrs["features"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "CLUSTER_HA", "CLUSTER_HA_ENTERPRISE", "WORKFLOWS", "NESTED_GROUPS", "ENTERPRISE_ORGANISATION", "COMPLIANCE_PLUS", "OFFLINE_MODE", "SERVICE_ACCOUNTS", + ), + ), + }, } schemaAttrs["issue_time"] = rsschema.StringAttribute{ Optional: true, @@ -3388,7 +3427,7 @@ func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribu ), }, } - schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -3421,13 +3460,13 @@ func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rssch schemaAttrs["account_directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["activation_code"] = rsschema.StringAttribute{ @@ -3481,7 +3520,7 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3501,13 +3540,13 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["value"] = rsschema.StringAttribute{ @@ -3531,13 +3570,13 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["end_date"] = rsschema.StringAttribute{ @@ -3577,13 +3616,13 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ @@ -3631,7 +3670,7 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3702,13 +3741,13 @@ func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -3724,19 +3763,19 @@ func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -3752,7 +3791,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3778,7 +3817,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -3792,13 +3831,13 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -3814,13 +3853,13 @@ func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[s schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ @@ -3840,7 +3879,7 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3886,7 +3925,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3912,7 +3951,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -3936,7 +3975,7 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -4120,6 +4159,11 @@ func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse schemaAttrs["systems"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -4128,6 +4172,11 @@ func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse schemaAttrs["groups"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -4157,7 +4206,7 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[ schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -4221,7 +4270,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ @@ -4240,13 +4289,13 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[ schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -4312,6 +4361,11 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recu schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -4354,7 +4408,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["failover_host"] = rsschema.StringAttribute{ @@ -4363,7 +4417,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_dn"] = rsschema.StringAttribute{ @@ -4411,7 +4465,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["user_dn"] = rsschema.StringAttribute{ @@ -4513,7 +4567,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -4527,13 +4581,13 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -4573,7 +4627,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -4591,6 +4645,13 @@ func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string] schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + ), + }, } return schemaAttrs } @@ -4752,7 +4813,7 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ @@ -4784,7 +4845,7 @@ func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["tenant"] = rsschema.StringAttribute{ @@ -4806,7 +4867,7 @@ func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bo schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["tenant"] = rsschema.StringAttribute{ @@ -4870,7 +4931,7 @@ func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[s schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_dn"] = rsschema.StringAttribute{ @@ -4917,10 +4978,10 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -4934,7 +4995,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["external_uuid"] = rsschema.StringAttribute{ @@ -4943,7 +5004,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ @@ -4969,7 +5030,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["username_prefix"] = rsschema.StringAttribute{ @@ -4978,6 +5039,10 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r stringvalidator.UTF8LengthBetween(0, 255), }, } + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Optional: true, + } schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Optional: true, @@ -4986,30 +5051,26 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } - schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Optional: true, } schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Optional: true, - } schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Optional: true, - } schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), Optional: true, } + schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -5052,10 +5113,10 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -5070,6 +5131,11 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recur schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -5217,7 +5283,7 @@ func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bo schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5227,7 +5293,7 @@ func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(rec schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5237,7 +5303,7 @@ func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recu schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5281,7 +5347,7 @@ func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rss schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["private_key"] = rsschema.StringAttribute{ @@ -5368,7 +5434,7 @@ func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[st schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5408,7 +5474,7 @@ func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5446,7 +5512,7 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["comment"] = rsschema.StringAttribute{ @@ -5464,7 +5530,7 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["mail_key"] = rsschema.StringAttribute{ @@ -5483,152 +5549,152 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc ), }, } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), Optional: true, } - schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } - schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } - schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), Optional: true, } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Optional: true, } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } - schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), Optional: true, } schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Optional: true, } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Optional: true, } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Optional: true, } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), Optional: true, } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Optional: true, } return schemaAttrs @@ -5731,7 +5797,7 @@ func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rssch schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5754,7 +5820,7 @@ func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[st schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5777,7 +5843,7 @@ func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string] schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5823,7 +5889,7 @@ func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recur schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5833,7 +5899,7 @@ func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[st schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["current_end_date"] = rsschema.StringAttribute{ @@ -5909,7 +5975,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["username"] = rsschema.StringAttribute{ @@ -5937,7 +6003,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5973,7 +6039,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -6044,7 +6110,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["username"] = rsschema.StringAttribute{ @@ -6062,6 +6128,11 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurs schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -6197,7 +6268,7 @@ func resourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]rssch schemaAttrs["target_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -6207,7 +6278,7 @@ func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.A schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["action"] = rsschema.StringAttribute{ @@ -6223,7 +6294,7 @@ func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.A schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["share_duration"] = rsschema.SingleNestedAttribute{ @@ -6464,6 +6535,11 @@ func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[ schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -6493,7 +6569,7 @@ func resourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]rsschema. schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["vault_vault_record_share_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -6560,7 +6636,7 @@ func resourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]rsschema.Att schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["private_key"] = rsschema.StringAttribute{ @@ -6610,7 +6686,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["active"] = rsschema.BoolAttribute{ @@ -6654,13 +6730,13 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["client_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["custom_header_name"] = rsschema.StringAttribute{ @@ -6678,13 +6754,13 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["name"] = rsschema.StringAttribute{ @@ -6696,7 +6772,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["tls"] = rsschema.StringAttribute{ @@ -6712,12 +6788,19 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "ACCOUNT_2FA_DISABLED", "ACCOUNT_2FA_ENABLED", "ACCOUNT_ADDED_TO_GROUP", "ACCOUNT_ADDED_TO_ORGANIZATIONAL_UNIT", "ACCOUNT_CREATED", "ACCOUNT_DEPROVISIONED", "ACCOUNT_DISABLED", "ACCOUNT_ENABLED", "ACCOUNT_GROUP_ACTIVATED", "ACCOUNT_GROUP_ACTIVATION_REASON", "ACCOUNT_GROUP_DEPROVISIONED", "ACCOUNT_GROUP_PROVISIONED", "ACCOUNT_LOGIN", "ACCOUNT_LOGIN_FAILED", "ACCOUNT_MODIFIED_FOR_GROUP", "ACCOUNT_PASSWORD_CHANGED", "ACCOUNT_PROVISIONED", "ACCOUNT_PROVISIONING_DESTROYED", "ACCOUNT_PROVISIONING_INITED", "ACCOUNT_PROVISIONING_SETUP", "ACCOUNT_REMOVED", "ACCOUNT_REMOVED_FROM_GROUP", "ACCOUNT_REMOVED_FROM_ORGANIZATIONAL_UNIT", "ACCOUNT_REREGISTERED", "ACCOUNT_SSH_PUBLIC_KEY_MODIFIED", "ACCOUNT_TOKEN_SIGNED", "ACCOUNT_TOTP_OFFSET_CHANGED", "ACCOUNT_VAULT_UNLOCKED", "ADD_GROUP_ADMIN_ACCEPTED", "ADD_GROUP_ADMIN_DECLINED", "ADD_GROUP_ADMIN_REQUESTED", "AUDITOR_EXPORT_GENERATED", "CERTIFICATE_CREATED", "CERTIFICATE_MODIFIED", "CERTIFICATE_REMOVED", "CLIENT_ADDED_TO_GROUP", "CLIENT_CREATED", "CLIENT_MODIFIED", "CLIENT_MODIFIED_FOR_GROUP", "CLIENT_PERMISSION_GRANTED", "CLIENT_PERMISSION_REVOKED", "CLIENT_REMOVED", "CLIENT_REMOVED_FROM_GROUP", "CLIENT_SECRET_ROTATED", "CREATE_GROUP_ACCEPTED", "CREATE_GROUP_DECLINED", "CREATE_GROUP_REQUESTED", "CREATE_GROUP_ON_SYSTEM_ACCEPTED", "CREATE_GROUP_ON_SYSTEM_DECLINED", "CREATE_GROUP_ON_SYSTEM_REQUESTED", "CREATE_SERVICE_ACCOUNT_ACCEPTED", "CREATE_SERVICE_ACCOUNT_DECLINED", "CREATE_SERVICE_ACCOUNT_REQUESTED", "DIRECTORY_CREATED", "DIRECTORY_HELPDESK_MODIFIED", "DIRECTORY_MODIFIED", "DIRECTORY_REMOVED", "DISABLE_2FA_ACCEPTED", "DISABLE_2FA_DECLINED", "DISABLE_2FA_REQUESTED", "ENABLE_TECHNICAL_ADMINISTRATION_ACCEPTED", "ENABLE_TECHNICAL_ADMINISTRATION_DECLINED", "ENABLE_TECHNICAL_ADMINISTRATION_REQUESTED", "EXTENDED_ACCESS_ACCEPTED", "EXTENDED_ACCESS_DECLINED", "EXTENDED_ACCESS_REQUESTED", "GRANT_ACCESS_ACCEPTED", "GRANT_ACCESS_DECLINED", "GRANT_ACCESS_REQUESTED", "GRANT_APPLICATION_ACCEPTED", "GRANT_APPLICATION_DECLINED", "GRANT_APPLICATION_REQUESTED", "GRANT_CLIENT_PERMISSION_ACCEPTED", "GRANT_CLIENT_PERMISSION_DECLINED", "GRANT_CLIENT_PERMISSION_REQUESTED", "GRANT_GROUP_ON_SYSTEM_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUESTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUEST_REQUESTED", "GRANT_SERVICE_ACCOUNT_GROUP_ACCEPTED", "GRANT_SERVICE_ACCOUNT_GROUP_DECLINED", "GRANT_SERVICE_ACCOUNT_GROUP_REQUESTED", "GROUP_AUDIT_CREATED", "GROUP_AUDIT_REQUESTED", "GROUP_AUTHORIZATION_CONNECTED", "GROUP_AUTHORIZATION_DISCONNECTED", "GROUP_CLASSIFICATION_ASSIGNED", "GROUP_CLASSIFICATION_CREATED", "GROUP_CLASSIFICATION_MODIFIED", "GROUP_CLASSIFICATION_REMOVED", "GROUP_CREATED", "GROUP_MODIFIED", "GROUP_NESTING_CONNECTED", "GROUP_NESTING_DISCONNECTED", "GROUP_ON_SYSTEM_CREATED", "GROUP_ON_SYSTEM_DEPROVISIONED", "GROUP_ON_SYSTEM_PROVISIONED", "GROUP_ON_SYSTEM_REMOVED", "GROUP_REMOVED", "INTERNAL_ACCOUNT_ACTIVATED", "INTERNAL_ACCOUNT_CREATED", "INTERNAL_ACCOUNT_MODIFIED", "INTERNAL_ACCOUNT_REMOVED", "INVALID_SIGNATURE_DETECTED", "JOIN_GROUP_ACCEPTED", "JOIN_GROUP_DECLINED", "JOIN_GROUP_REQUESTED", "JOIN_VAULT_ACCEPTED", "JOIN_VAULT_DECLINED", "JOIN_VAULT_REQUESTED", "LICENSE_KEY_UPLOADED", "ORGANIZATIONAL_UNIT_CREATED", "ORGANIZATIONAL_UNIT_MODIFIED", "ORGANIZATIONAL_UNIT_REMOVED", "PROVISIONED_SYSTEM_ADDED_TO_GROUP", "PROVISIONED_SYSTEM_CREATED", "PROVISIONED_SYSTEM_MODIFIED", "PROVISIONED_SYSTEM_MODIFIED_FOR_GROUP", "PROVISIONED_SYSTEM_REMOVED", "PROVISIONED_SYSTEM_REMOVED_FROM_GROUP", "PROVISIONED_SYSTEM_UNKNOWN_ACCOUNT_DESTROYED", "REMOVE_GROUP_ACCEPTED", "REMOVE_GROUP_DECLINED", "REMOVE_GROUP_REQUESTED", "REMOVE_ORGANIZATIONAL_UNIT_ACCEPTED", "REMOVE_ORGANIZATIONAL_UNIT_DECLINED", "REMOVE_ORGANIZATIONAL_UNIT_REQUESTED", "REMOVE_PROVISIONED_SYSTEM_ACCEPTED", "REMOVE_PROVISIONED_SYSTEM_DECLINED", "REMOVE_PROVISIONED_SYSTEM_REQUESTED", "RESET_PASSWORD_ACCEPTED", "RESET_PASSWORD_DECLINED", "RESET_PASSWORD_FINISHED", "RESET_PASSWORD_REQUESTED", "REVIEW_AUDIT_ACCEPTED", "REVIEW_AUDIT_DECLINED", "REVIEW_AUDIT_REQUESTED", "REVOKE_ADMIN_ACCEPTED", "REVOKE_ADMIN_DECLINED", "REVOKE_ADMIN_REQUESTED", "SERVICE_ACCOUNT_ADDED_TO_GROUP", "SERVICE_ACCOUNT_CREATED", "SERVICE_ACCOUNT_GROUP_DEPROVISIONED", "SERVICE_ACCOUNT_GROUP_PROVISIONED", "SERVICE_ACCOUNT_MODIFIED", "SERVICE_ACCOUNT_PASSWORD_ROTATED", "SERVICE_ACCOUNT_PROVISIONING_DESTROYED", "SERVICE_ACCOUNT_PROVISIONING_INITED", "SERVICE_ACCOUNT_REMOVED", "SERVICE_ACCOUNT_REMOVED_FROM_GROUP", "SETUP_AUTHORIZING_GROUP_CONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_CONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_CONNECT_REQUESTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_REQUESTED", "SETUP_NESTED_GROUP_CONNECT_ACCEPTED", "SETUP_NESTED_GROUP_CONNECT_DECLINED", "SETUP_NESTED_GROUP_CONNECT_REQUESTED", "SETUP_NESTED_GROUP_DISCONNECT_ACCEPTED", "SETUP_NESTED_GROUP_DISCONNECT_DECLINED", "SETUP_NESTED_GROUP_DISCONNECT_REQUESTED", "TRANSFER_APPLICATION_ADMINISTRATION_ACCEPTED", "TRANSFER_APPLICATION_ADMINISTRATION_DECLINED", "TRANSFER_APPLICATION_ADMINISTRATION_REQUESTED", "TRANSFER_APPLICATION_OWNERSHIP_ACCEPTED", "TRANSFER_APPLICATION_OWNERSHIP_DECLINED", "TRANSFER_APPLICATION_OWNERSHIP_REQUESTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_ACCEPTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_DECLINED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_ACCEPTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_DECLINED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_REQUESTED", "TRANSFER_AUDITOR_GROUP_ACCEPTED", "TRANSFER_AUDITOR_GROUP_DECLINED", "TRANSFER_AUDITOR_GROUP_REQUESTED", "UPDATE_GROUP_MEMBERSHIP_ACCEPTED", "UPDATE_GROUP_MEMBERSHIP_DECLINED", "UPDATE_GROUP_MEMBERSHIP_REQUESTED", "VAULT_ACCESS_RESTORED", "VAULT_EXPORTED", "VAULT_PERSONAL_RESET", "VAULT_PERSONAL_SETUP", "VAULT_RECORD_CREATED", "VAULT_RECORD_MODIFIED", "VAULT_RECORD_MOVED_COPIED_SHARED", "VAULT_RECORD_READ", "VAULT_RECORD_REMOVED", "VAULT_RECOVERED", "VERIFY_INTERNAL_ACCOUNT_ACCEPTED", "VERIFY_INTERNAL_ACCOUNT_DECLINED", "VERIFY_INTERNAL_ACCOUNT_REQUESTED", "WEBHOOK_CREATED", "WEBHOOK_MODIFIED", "WEBHOOK_REMOVED", + ), + ), + }, } schemaAttrs["url"] = rsschema.StringAttribute{ Required: true, @@ -6907,7 +6990,7 @@ func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Att Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), Optional: true, } - schemaAttrs["webhook_webhook_push_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index e9b8f5d..89fc6ab 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -79,7 +79,7 @@ func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) @@ -285,7 +285,7 @@ func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertifi data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -306,7 +306,7 @@ func fillDataStructFromTFObjectDSCertificateCertificatePrimer(data *certificateC data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -342,7 +342,7 @@ func fillDataStructFromTFObjectDSClientApplicationVaultVaultRecord(data *clientA func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -354,8 +354,8 @@ func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientAppli data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) - data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { @@ -365,7 +365,7 @@ func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *cl func fillDataStructFromTFObjectDSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -475,7 +475,7 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) @@ -488,8 +488,8 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -501,7 +501,7 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectoryPrimer(data *directory data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -515,7 +515,7 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectoryStatusReport(data *dir func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["type"].(basetypes.StringValue) data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) @@ -999,7 +999,7 @@ func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLic func fillDataStructFromTFObjectDSMarkItemMarker(data *markItemMarkerDataDS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) - data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) } @@ -1147,7 +1147,7 @@ func fillDataStructFromTFObjectDSNestedProvisioningGroupOnSystem(data *nestedPro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1187,7 +1187,7 @@ func fillDataStructFromTFObjectDSNestedServiceaccountServiceAccountGroup(data *n data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1389,7 +1389,7 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1406,7 +1406,7 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystemPrimer(data *provision data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) } @@ -1524,7 +1524,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) @@ -1538,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1558,7 +1558,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provi data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -1715,43 +1715,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { @@ -1867,7 +1867,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup(data *service data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -2034,7 +2034,7 @@ func fillDataStructFromTFObjectDSVaultVaultRecordSecrets(data *vaultVaultRecordS func fillDataStructFromTFObjectDSVaultVaultRecordShare(data *vaultVaultRecordShareDataDS, obj types.Object) { data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataDS, obj types.Object) { @@ -2148,7 +2148,7 @@ func fillDataStructFromTFObjectDSWebhookWebhookPush(data *webhookWebhookPushData data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) + data.WebhookWebhookPushType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 671357d..fbdb3a5 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -77,7 +77,7 @@ func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) @@ -256,7 +256,7 @@ func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertifi data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -276,7 +276,7 @@ func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateC data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -311,7 +311,7 @@ func fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(data *clientA func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientApplicationDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -322,8 +322,8 @@ func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientAppli data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) - data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { @@ -333,7 +333,7 @@ func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *cl func fillDataStructFromTFObjectRSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -441,7 +441,7 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -453,8 +453,8 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -466,7 +466,7 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectoryPrimer(data *directory data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -480,7 +480,7 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectoryStatusReport(data *dir func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["type"].(basetypes.StringValue) data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) @@ -944,7 +944,7 @@ func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLic func fillDataStructFromTFObjectRSMarkItemMarker(data *markItemMarkerDataRS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) - data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) } @@ -1041,7 +1041,7 @@ func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedPro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) @@ -1072,7 +1072,7 @@ func fillDataStructFromTFObjectRSNestedServiceaccountServiceAccountGroup(data *n data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } @@ -1261,7 +1261,7 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystem(data *provisioningGro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) @@ -1277,7 +1277,7 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystemPrimer(data *provision data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) } @@ -1387,7 +1387,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1400,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1420,7 +1420,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provi data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -1575,43 +1575,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { @@ -1730,7 +1730,7 @@ func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup(data *service data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } @@ -1895,7 +1895,7 @@ func fillDataStructFromTFObjectRSVaultVaultRecordSecrets(data *vaultVaultRecordS func fillDataStructFromTFObjectRSVaultVaultRecordShare(data *vaultVaultRecordShareDataRS, obj types.Object) { data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataRS, obj types.Object) { @@ -2008,7 +2008,7 @@ func fillDataStructFromTFObjectRSWebhookWebhookPush(data *webhookWebhookPushData data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) + data.WebhookWebhookPushType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index d5e93b9..01e335e 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -263,7 +263,7 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetAuditAuditRecordType(val) } @@ -989,7 +989,7 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -1077,7 +1077,7 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -1219,7 +1219,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1259,19 +1259,19 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["saml2_client"].IsNull() { - val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } @@ -1332,7 +1332,7 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1764,7 +1764,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1808,19 +1808,19 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1883,7 +1883,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1941,7 +1941,7 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -3851,7 +3851,7 @@ func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal typ tkh.SetLevel(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) diags.Append(d...) tkh.SetMarkItemMarkerType(val) } @@ -4409,7 +4409,7 @@ func tfObjectToTKHDSNestedProvisioningGroupOnSystem(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -4559,7 +4559,7 @@ func tfObjectToTKHDSNestedServiceaccountServiceAccountGroup(ctx context.Context, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5369,7 +5369,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5445,7 +5445,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5905,7 +5905,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -5938,6 +5938,14 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5954,11 +5962,11 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5970,14 +5978,6 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["provisioned_internal_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5986,19 +5986,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6066,7 +6066,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, rec tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -6645,83 +6645,83 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6733,83 +6733,83 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6821,123 +6821,123 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -7392,7 +7392,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -8031,7 +8031,7 @@ func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, obj tkh = keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultVaultRecordShareType(val) } @@ -8481,7 +8481,7 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetWebhook(val) } { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetWebhookWebhookPushType(val) } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 9fa8967..fadf22b 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -263,7 +263,7 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetAuditAuditRecordType(val) } @@ -907,7 +907,7 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -995,7 +995,7 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -1137,7 +1137,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1177,19 +1177,19 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["saml2_client"].IsNull() { - val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } @@ -1250,7 +1250,7 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1689,7 +1689,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1733,19 +1733,19 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1808,7 +1808,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1866,7 +1866,7 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -3781,7 +3781,7 @@ func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal typ tkh.SetLevel(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) diags.Append(d...) tkh.SetMarkItemMarkerType(val) } @@ -4187,7 +4187,7 @@ func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -4315,7 +4315,7 @@ func tfObjectToTKHRSNestedServiceaccountServiceAccountGroup(ctx context.Context, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5100,7 +5100,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5176,7 +5176,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5623,7 +5623,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -5656,6 +5656,14 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5672,11 +5680,11 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5688,14 +5696,6 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["provisioned_internal_ldap"].IsNull() { val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5704,19 +5704,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5784,7 +5784,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, rec tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -6366,83 +6366,83 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6454,83 +6454,83 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6542,123 +6542,123 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -7122,7 +7122,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -7765,7 +7765,7 @@ func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, obj tkh = keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultVaultRecordShareType(val) } @@ -8222,7 +8222,7 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetWebhook(val) } { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetWebhookWebhookPushType(val) } diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 14256aa..9af726c 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -328,7 +328,7 @@ func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec obj["permissions"] = val } obj["additional"] = types.ListNull(types.StringType) - obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["type"] = stringerToTF(tkh.GetAuditAuditRecordType()) obj["date_time"] = timePointerToTF(tkh.GetDateTime()) obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) @@ -1124,7 +1124,7 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1217,7 +1217,7 @@ func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1368,7 +1368,7 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1399,18 +1399,18 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["o_auth2_client"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) - val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) - diags.Append(d...) - obj["ldap_client"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) val, d := tkhToTFObjectDSClientSaml2Client(false, tkhCast) diags.Append(d...) obj["saml2_client"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) + diags.Append(d...) + obj["ldap_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1479,7 +1479,7 @@ func tkhToTFObjectDSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1999,7 +1999,7 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) @@ -2029,18 +2029,18 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["internal_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) - diags.Append(d...) - obj["maintenance_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) obj["o_id_c_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2111,7 +2111,7 @@ func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmode } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) @@ -2175,7 +2175,7 @@ func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) obj["name"] = types.StringPointerValue(tkh.GetName()) @@ -4418,7 +4418,7 @@ func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera obj := make(map[string]attr.Value) obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) @@ -4974,7 +4974,7 @@ func tkhToTFObjectDSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) { @@ -5142,7 +5142,7 @@ func tkhToTFObjectDSNestedServiceaccountServiceAccountGroup(recurse bool, tkh ke } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) @@ -6176,7 +6176,7 @@ func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) { @@ -6259,7 +6259,7 @@ func tkhToTFObjectDSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -6852,7 +6852,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["organizational_unit"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) @@ -6877,6 +6877,12 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6890,10 +6896,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) @@ -6901,30 +6907,24 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_azure_sync_ldap_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_internal_ldap"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_ldap"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7000,7 +7000,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub diags.Append(d...) obj["organizational_unit"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -7809,64 +7809,64 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["verify_internal_account_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) @@ -7875,64 +7875,64 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) @@ -7941,94 +7941,94 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8638,7 +8638,7 @@ func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmo } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) @@ -9467,7 +9467,7 @@ func tkhToTFObjectDSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVau obj := make(map[string]attr.Value) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + obj["type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9991,7 +9991,7 @@ func tkhToTFObjectDSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebh diags.Append(d...) obj["webhook"] = val } - obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + obj["type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index a4b7ea3..031339e 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -326,7 +326,7 @@ func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec diags.Append(d...) obj["permissions"] = val } - obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["type"] = stringerToTF(tkh.GetAuditAuditRecordType()) obj["date_time"] = timePointerToTF(tkh.GetDateTime()) obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) @@ -1050,7 +1050,7 @@ func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1142,7 +1142,7 @@ func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1292,7 +1292,7 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1314,18 +1314,18 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["o_auth2_client"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) - val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) - diags.Append(d...) - obj["ldap_client"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) val, d := tkhToTFObjectRSClientSaml2Client(false, tkhCast) diags.Append(d...) obj["saml2_client"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) + diags.Append(d...) + obj["ldap_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1394,7 +1394,7 @@ func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1884,7 +1884,7 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) @@ -1905,18 +1905,18 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["internal_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) - diags.Append(d...) - obj["maintenance_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) obj["o_id_c_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1987,7 +1987,7 @@ func tkhToTFObjectRSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmode } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) @@ -2051,7 +2051,7 @@ func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) obj["name"] = types.StringPointerValue(tkh.GetName()) @@ -4148,7 +4148,7 @@ func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera obj := make(map[string]attr.Value) obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) @@ -4528,7 +4528,7 @@ func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) @@ -4661,7 +4661,7 @@ func tkhToTFObjectRSNestedServiceaccountServiceAccountGroup(recurse bool, tkh ke } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -5620,7 +5620,7 @@ func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) @@ -5694,7 +5694,7 @@ func tkhToTFObjectRSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -6245,7 +6245,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) @@ -6257,6 +6257,12 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6270,10 +6276,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) @@ -6281,30 +6287,24 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_azure_sync_ldap_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_internal_ldap"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_ldap"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6376,7 +6376,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -7149,64 +7149,64 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["verify_internal_account_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) @@ -7215,64 +7215,64 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) @@ -7281,94 +7281,94 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7953,7 +7953,7 @@ func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmo } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -8760,7 +8760,7 @@ func tkhToTFObjectRSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVau obj := make(map[string]attr.Value) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + obj["type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9247,7 +9247,7 @@ func tkhToTFObjectRSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebh diags.Append(d...) obj["webhook"] = val } - obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + obj["type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...)