diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 590d34a..593678c 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -422,6 +422,9 @@ type clientClientApplicationDataDS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` 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"` } var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) @@ -460,55 +463,29 @@ var clientLdapClientAttrTypesDS = objectAttrsTypeDSClientLdapClient(false) var clientLdapClientAttrTypesDSRecurse = objectAttrsTypeDSClientLdapClient(true) type clientLdapClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - BindDN types.String `tfsdk:"bind_dn"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecret types.Object `tfsdk:"shared_secret"` - UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` + BindDN types.String `tfsdk:"bind_dn"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` } var clientOAuth2ClientAttrTypesDS = objectAttrsTypeDSClientOAuth2Client(false) var clientOAuth2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client(true) type clientOAuth2ClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_uri"` - Confidential types.Bool `tfsdk:"confidential"` - DebugMode types.Bool `tfsdk:"debug_mode"` - IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` - ResourceURIs types.String `tfsdk:"resource_uris"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecret types.Object `tfsdk:"shared_secret"` - ShowLandingPage types.Bool `tfsdk:"show_landing_page"` - UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_uri"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` + ResourceURIs types.String `tfsdk:"resource_uris"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` } var clientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission(false) @@ -569,23 +546,10 @@ var clientSaml2ClientAttrTypesDS = objectAttrsTypeDSClientSaml2Client(false) var clientSaml2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client(true) type clientSaml2ClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - Attributes types.Object `tfsdk:"attributes"` - Metadata types.String `tfsdk:"metadata"` - MetadataURL types.String `tfsdk:"metadata_url"` - SubjectFormat types.String `tfsdk:"subject_format"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` } var clientSaml2Client_attributesAttrTypesDS = objectAttrsTypeDSClientSaml2Client_attributes(false) @@ -613,6 +577,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + InternalDirectory types.Object `tfsdk:"internal_directory"` + LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -678,110 +646,50 @@ var directoryInternalDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryInternalDi var directoryInternalDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryInternalDirectory(true) type directoryInternalDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - Owner types.Object `tfsdk:"owner"` + Owner types.Object `tfsdk:"owner"` } var directoryLDAPDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryLDAPDirectory(false) var directoryLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryLDAPDirectory(true) type directoryLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_dn"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - Dialect types.String `tfsdk:"dialect"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - Host types.String `tfsdk:"host"` - PasswordRecovery types.String `tfsdk:"password_recovery"` - Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_dn"` - SearchBindPassword types.String `tfsdk:"search_bind_password"` - SearchFilter types.String `tfsdk:"search_filter"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_dn"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_dn"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` } var directoryMaintenanceDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryMaintenanceDirectory(false) var directoryMaintenanceDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryMaintenanceDirectory(true) type directoryMaintenanceDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` } var directoryOIDCDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryOIDCDirectory(false) var directoryOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryOIDCDirectory(true) type directoryOIDCDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AcrValues types.String `tfsdk:"acr_values"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - Enforces2fa types.Bool `tfsdk:"enforces2fa"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Issuer types.String `tfsdk:"issuer"` - LogoutURL types.String `tfsdk:"logout_url"` - SendLoginHint types.Bool `tfsdk:"send_login_hint"` - VendorEscaped types.String `tfsdk:"vendor_escaped"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` } var groupAccountGroupAttrTypesDS = objectAttrsTypeDSGroupAccountGroup(false) @@ -1258,16 +1166,19 @@ var launchpadLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile( var launchpadLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile(true) type launchpadLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` + ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -1296,51 +1207,21 @@ var launchpadManualLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadManualLa var launchpadManualLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadManualLaunchpadTile(true) type launchpadManualLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` + Title types.String `tfsdk:"title"` + URI types.String `tfsdk:"uri"` } var launchpadSsoApplicationLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false) var launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(true) type launchpadSsoApplicationLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` - URI types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadVaultRecordLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false) var launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(true) type launchpadVaultRecordLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` } var licenseKeyHubLicenseInfoAttrTypesDS = objectAttrsTypeDSLicenseKeyHubLicenseInfo(false) @@ -1394,7 +1275,7 @@ type notificationCertificateExpiredNotificationDataDS struct { Certificate types.Object `tfsdk:"certificate"` Directory types.Object `tfsdk:"directory"` Expiration types.String `tfsdk:"expiration"` - LdapClient types.Object `tfsdk:"ldap_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` System types.Object `tfsdk:"system"` Usage types.String `tfsdk:"usage"` Webhook types.Object `tfsdk:"webhook"` @@ -1603,41 +1484,22 @@ var provisioningAbstractProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioni var provisioningAbstractProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(true) type provisioningAbstractProvisionedLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_dn"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_dn"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_dn"` } var provisioningAbstractProvisionedLDAP_attributesAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false) @@ -1784,42 +1646,7 @@ var provisioningProvisionedADAttrTypesDS = objectAttrsTypeDSProvisioningProvisio var provisioningProvisionedADAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAD(true) type provisioningProvisionedADDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_dn"` - SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` } var provisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount(false) @@ -1856,182 +1683,52 @@ var provisioningProvisionedAzureOIDCDirectoryAttrTypesDS = objectAttrsTypeDSProv var provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(true) type provisioningProvisionedAzureOIDCDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Directory types.Object `tfsdk:"directory"` - Tenant types.String `tfsdk:"tenant"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false) var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(true) type provisioningProvisionedAzureSyncLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - Directory types.Object `tfsdk:"directory"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureTenantAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureTenant(false) var provisioningProvisionedAzureTenantAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureTenant(true) type provisioningProvisionedAzureTenantDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - IDpDomain types.String `tfsdk:"idp_domain"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedInternalLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false) var provisioningProvisionedInternalLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(true) type provisioningProvisionedInternalLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Client types.Object `tfsdk:"client"` + Client types.Object `tfsdk:"client"` } var provisioningProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAP(false) var provisioningProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAP(true) type provisioningProvisionedLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_dn"` - Gid types.Int64 `tfsdk:"gid"` - HashingScheme types.String `tfsdk:"hashing_scheme"` - Numbering types.Object `tfsdk:"numbering"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` } var provisioningProvisionedLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false) var provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(true) type provisioningProvisionedLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Directory types.Object `tfsdk:"directory"` - GroupDN types.String `tfsdk:"group_dn"` + Directory types.Object `tfsdk:"directory"` + GroupDN types.String `tfsdk:"group_dn"` } var provisioningProvisionedSystemAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem(false) @@ -2057,6 +1754,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2157,54 +1862,21 @@ var requestAbstractApplicationModificationRequestAttrTypesDS = objectAttrsTypeDS var requestAbstractApplicationModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(true) type requestAbstractApplicationModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` + Application types.Object `tfsdk:"application"` } var requestAbstractOrganizationalUnitModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false) var requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(true) type requestAbstractOrganizationalUnitModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` } var requestAbstractProvisionedSystemModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false) var requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(true) type requestAbstractProvisionedSystemModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` + System types.Object `tfsdk:"system"` } var requestAcceptGrantAccessRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(false) @@ -2240,294 +1912,161 @@ var requestAddGroupAdminRequestAttrTypesDS = objectAttrsTypeDSRequestAddGroupAdm var requestAddGroupAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAddGroupAdminRequest(true) type requestAddGroupAdminRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewAdmin types.Object `tfsdk:"new_admin"` - PrivateKey types.String `tfsdk:"private_key"` + NewAdmin types.Object `tfsdk:"new_admin"` + PrivateKey types.String `tfsdk:"private_key"` } var requestCreateGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false) var requestCreateGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(true) type requestCreateGroupOnSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` } var requestCreateGroupRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupRequest(false) var requestCreateGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupRequest(true) type requestCreateGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestCreateServiceAccountRequestAttrTypesDS = objectAttrsTypeDSRequestCreateServiceAccountRequest(false) var requestCreateServiceAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateServiceAccountRequest(true) type requestCreateServiceAccountRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - Username types.String `tfsdk:"username"` + Username types.String `tfsdk:"username"` } var requestDisable2FARequestAttrTypesDS = objectAttrsTypeDSRequestDisable2FARequest(false) var requestDisable2FARequestAttrTypesDSRecurse = objectAttrsTypeDSRequestDisable2FARequest(true) type requestDisable2FARequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Subject types.String `tfsdk:"subject"` + Subject types.String `tfsdk:"subject"` } var requestEnableTechnicalAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false) var requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(true) type requestEnableTechnicalAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestExtendAccessRequestAttrTypesDS = objectAttrsTypeDSRequestExtendAccessRequest(false) var requestExtendAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestExtendAccessRequest(true) type requestExtendAccessRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ExtendUntil types.String `tfsdk:"extend_until"` + ExtendUntil types.String `tfsdk:"extend_until"` } var requestGrantAccessRequestAttrTypesDS = objectAttrsTypeDSRequestGrantAccessRequest(false) var requestGrantAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantAccessRequest(true) type requestGrantAccessRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestGrantApplicationRequestAttrTypesDS = objectAttrsTypeDSRequestGrantApplicationRequest(false) var requestGrantApplicationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantApplicationRequest(true) type requestGrantApplicationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` } var requestGrantClientPermissionRequestAttrTypesDS = objectAttrsTypeDSRequestGrantClientPermissionRequest(false) var requestGrantClientPermissionRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantClientPermissionRequest(true) type requestGrantClientPermissionRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` - PermissionType types.String `tfsdk:"permission_type"` - System types.Object `tfsdk:"system"` + PermissionType types.String `tfsdk:"permission_type"` + System types.Object `tfsdk:"system"` } var requestGrantGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false) var requestGrantGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(true) type requestGrantGroupOnSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantGroupOnSystemRequestRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false) var requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(true) type requestGrantGroupOnSystemRequestRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantServiceAccountGroupRequestAttrTypesDS = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false) var requestGrantServiceAccountGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(true) type requestGrantServiceAccountGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccount types.Object `tfsdk:"service_account"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccount types.Object `tfsdk:"service_account"` } var requestJoinGroupRequestAttrTypesDS = objectAttrsTypeDSRequestJoinGroupRequest(false) var requestJoinGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinGroupRequest(true) type requestJoinGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestJoinVaultRequestAttrTypesDS = objectAttrsTypeDSRequestJoinVaultRequest(false) var requestJoinVaultRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinVaultRequest(true) type requestJoinVaultRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestModificationRequestAttrTypesDS = objectAttrsTypeDSRequestModificationRequest(false) var requestModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest(true) type requestModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) @@ -2549,17 +2088,6 @@ var requestPasswordResetRequestAttrTypesDS = objectAttrsTypeDSRequestPasswordRes var requestPasswordResetRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequest(true) type requestPasswordResetRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestPasswordResetRequestStatusAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequestStatus(false) @@ -2576,333 +2104,127 @@ var requestRemoveGroupRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveGroupRe var requestRemoveGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveGroupRequest(true) type requestRemoveGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestRemoveOrganizationalUnitRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false) var requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(true) type requestRemoveOrganizationalUnitRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` } var requestRemoveProvisionedSystemRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false) var requestRemoveProvisionedSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(true) type requestRemoveProvisionedSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - SystemName types.String `tfsdk:"system_name"` + SystemName types.String `tfsdk:"system_name"` } var requestReviewAuditRequestAttrTypesDS = objectAttrsTypeDSRequestReviewAuditRequest(false) var requestReviewAuditRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestReviewAuditRequest(true) type requestReviewAuditRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestRevokeAdminRequestAttrTypesDS = objectAttrsTypeDSRequestRevokeAdminRequest(false) var requestRevokeAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRevokeAdminRequest(true) type requestRevokeAdminRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Admin types.Object `tfsdk:"admin"` + Admin types.Object `tfsdk:"admin"` } var requestSetupAuthorizingGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false) var requestSetupAuthorizingGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(true) type requestSetupAuthorizingGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` } var requestSetupNestedGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupNestedGroupRequest(false) var requestSetupNestedGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupNestedGroupRequest(true) type requestSetupNestedGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` } var requestTransferApplicationAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false) var requestTransferApplicationAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(true) type requestTransferApplicationAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` } var requestTransferApplicationOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false) var requestTransferApplicationOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(true) type requestTransferApplicationOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` } var requestTransferAuditorGroupRequestAttrTypesDS = objectAttrsTypeDSRequestTransferAuditorGroupRequest(false) var requestTransferAuditorGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferAuditorGroupRequest(true) type requestTransferAuditorGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestTransferGroupOnSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false) var requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(true) type requestTransferGroupOnSystemOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false) var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(true) type requestTransferOrganizationalUnitOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` } var requestTransferProvisionedSystemAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false) var requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(true) type requestTransferProvisionedSystemAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` } var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false) var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(true) type requestTransferProvisionedSystemContentAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` } var requestTransferProvisionedSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false) var requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(true) type requestTransferProvisionedSystemOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` } var requestTransferServiceAccountAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false) var requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(true) type requestTransferServiceAccountAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ServiceAccount types.Object `tfsdk:"service_account"` + ServiceAccount types.Object `tfsdk:"service_account"` } var requestUpdateGroupMembershipRequestAttrTypesDS = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false) var requestUpdateGroupMembershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(true) type requestUpdateGroupMembershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountToUpdate types.Object `tfsdk:"account_to_update"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` + AccountToUpdate types.Object `tfsdk:"account_to_update"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` } var requestVerifyInternalAccountRequestAttrTypesDS = objectAttrsTypeDSRequestVerifyInternalAccountRequest(false) var requestVerifyInternalAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestVerifyInternalAccountRequest(true) type requestVerifyInternalAccountRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - InternalAccountName types.String `tfsdk:"internal_account_name"` + InternalAccountName types.String `tfsdk:"internal_account_name"` } var serviceaccountServiceAccountAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 3ed6d0a..c4f4330 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -392,6 +392,9 @@ type clientClientApplicationDataRS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` 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"` } var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) @@ -432,53 +435,29 @@ var clientLdapClientAttrTypesRS = objectAttrsTypeRSClientLdapClient(false) var clientLdapClientAttrTypesRSRecurse = objectAttrsTypeRSClientLdapClient(true) type clientLdapClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - BindDN types.String `tfsdk:"bind_dn"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` - UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` + BindDN types.String `tfsdk:"bind_dn"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` } var clientOAuth2ClientAttrTypesRS = objectAttrsTypeRSClientOAuth2Client(false) var clientOAuth2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client(true) type clientOAuth2ClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_uri"` - Confidential types.Bool `tfsdk:"confidential"` - DebugMode types.Bool `tfsdk:"debug_mode"` - IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` - ResourceURIs types.String `tfsdk:"resource_uris"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` - ShowLandingPage types.Bool `tfsdk:"show_landing_page"` - UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_uri"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` + ResourceURIs types.String `tfsdk:"resource_uris"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` } var clientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission(false) @@ -537,22 +516,10 @@ var clientSaml2ClientAttrTypesRS = objectAttrsTypeRSClientSaml2Client(false) var clientSaml2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client(true) type clientSaml2ClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - Attributes types.Object `tfsdk:"attributes"` - Metadata types.String `tfsdk:"metadata"` - MetadataURL types.String `tfsdk:"metadata_url"` - SubjectFormat types.String `tfsdk:"subject_format"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` } var clientSaml2Client_attributesAttrTypesRS = objectAttrsTypeRSClientSaml2Client_attributes(false) @@ -579,6 +546,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + InternalDirectory types.Object `tfsdk:"internal_directory"` + LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -644,106 +615,50 @@ var directoryInternalDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryInternalDi var directoryInternalDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryInternalDirectory(true) type directoryInternalDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - OwnerUUID types.String `tfsdk:"owner_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` } var directoryLDAPDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryLDAPDirectory(false) var directoryLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryLDAPDirectory(true) type directoryLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_dn"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - Dialect types.String `tfsdk:"dialect"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - Host types.String `tfsdk:"host"` - PasswordRecovery types.String `tfsdk:"password_recovery"` - Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_dn"` - SearchBindPassword types.String `tfsdk:"search_bind_password"` - SearchFilter types.String `tfsdk:"search_filter"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_dn"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_dn"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` } var directoryMaintenanceDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryMaintenanceDirectory(false) var directoryMaintenanceDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryMaintenanceDirectory(true) type directoryMaintenanceDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` } var directoryOIDCDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryOIDCDirectory(false) var directoryOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryOIDCDirectory(true) type directoryOIDCDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - 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"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AcrValues types.String `tfsdk:"acr_values"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - Enforces2fa types.Bool `tfsdk:"enforces2fa"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Issuer types.String `tfsdk:"issuer"` - LogoutURL types.String `tfsdk:"logout_url"` - SendLoginHint types.Bool `tfsdk:"send_login_hint"` - VendorEscaped types.String `tfsdk:"vendor_escaped"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` } var groupAccountGroupAttrTypesRS = objectAttrsTypeRSGroupAccountGroup(false) @@ -1202,15 +1117,18 @@ var launchpadLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile( var launchpadLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile(true) type launchpadLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` + ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -1239,48 +1157,21 @@ var launchpadManualLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadManualLa var launchpadManualLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadManualLaunchpadTile(true) type launchpadManualLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` + Title types.String `tfsdk:"title"` + URI types.String `tfsdk:"uri"` } var launchpadSsoApplicationLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false) var launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(true) type launchpadSsoApplicationLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - URI types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadVaultRecordLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false) var launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(true) type launchpadVaultRecordLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` } var licenseKeyHubLicenseInfoAttrTypesRS = objectAttrsTypeRSLicenseKeyHubLicenseInfo(false) @@ -1334,7 +1225,7 @@ type notificationCertificateExpiredNotificationDataRS struct { Certificate types.Object `tfsdk:"certificate"` Directory types.Object `tfsdk:"directory"` Expiration types.String `tfsdk:"expiration"` - LdapClient types.Object `tfsdk:"ldap_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` System types.Object `tfsdk:"system"` Usage types.String `tfsdk:"usage"` Webhook types.Object `tfsdk:"webhook"` @@ -1532,40 +1423,22 @@ var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioni var provisioningAbstractProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(true) type provisioningAbstractProvisionedLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_dn"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_dn"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_dn"` } var provisioningAbstractProvisionedLDAP_attributesAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false) @@ -1710,41 +1583,7 @@ var provisioningProvisionedADAttrTypesRS = objectAttrsTypeRSProvisioningProvisio var provisioningProvisionedADAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAD(true) type provisioningProvisionedADDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_dn"` - SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` } var provisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount(false) @@ -1774,176 +1613,52 @@ var provisioningProvisionedAzureOIDCDirectoryAttrTypesRS = objectAttrsTypeRSProv var provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(true) type provisioningProvisionedAzureOIDCDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - Tenant types.String `tfsdk:"tenant"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false) var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(true) type provisioningProvisionedAzureSyncLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureTenantAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureTenant(false) var provisioningProvisionedAzureTenantAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureTenant(true) type provisioningProvisionedAzureTenantDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - IDpDomain types.String `tfsdk:"idp_domain"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedInternalLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false) var provisioningProvisionedInternalLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(true) type provisioningProvisionedInternalLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Client types.Object `tfsdk:"client"` + Client types.Object `tfsdk:"client"` } var provisioningProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAP(false) var provisioningProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAP(true) type provisioningProvisionedLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_dn"` - Gid types.Int64 `tfsdk:"gid"` - HashingScheme types.String `tfsdk:"hashing_scheme"` - Numbering types.Object `tfsdk:"numbering"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` } var provisioningProvisionedLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false) var provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(true) type provisioningProvisionedLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - 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"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - GroupDN types.String `tfsdk:"group_dn"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + GroupDN types.String `tfsdk:"group_dn"` } var provisioningProvisionedSystemAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem(false) @@ -1968,6 +1683,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"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2067,51 +1790,21 @@ var requestAbstractApplicationModificationRequestAttrTypesRS = objectAttrsTypeRS var requestAbstractApplicationModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(true) type requestAbstractApplicationModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` + ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestAbstractOrganizationalUnitModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false) var requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(true) type requestAbstractOrganizationalUnitModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` } var requestAbstractProvisionedSystemModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false) var requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(true) type requestAbstractProvisionedSystemModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` + SystemUUID types.String `tfsdk:"system_uuid"` } var requestAcceptGrantAccessRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(false) @@ -2147,278 +1840,160 @@ var requestAddGroupAdminRequestAttrTypesRS = objectAttrsTypeRSRequestAddGroupAdm var requestAddGroupAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAddGroupAdminRequest(true) type requestAddGroupAdminRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewAdminUUID types.String `tfsdk:"new_admin_uuid"` - PrivateKey types.String `tfsdk:"private_key"` + NewAdminUUID types.String `tfsdk:"new_admin_uuid"` + PrivateKey types.String `tfsdk:"private_key"` } var requestCreateGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false) var requestCreateGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(true) type requestCreateGroupOnSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` } var requestCreateGroupRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupRequest(false) var requestCreateGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupRequest(true) type requestCreateGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestCreateServiceAccountRequestAttrTypesRS = objectAttrsTypeRSRequestCreateServiceAccountRequest(false) var requestCreateServiceAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateServiceAccountRequest(true) type requestCreateServiceAccountRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - Username types.String `tfsdk:"username"` + Username types.String `tfsdk:"username"` } var requestDisable2FARequestAttrTypesRS = objectAttrsTypeRSRequestDisable2FARequest(false) var requestDisable2FARequestAttrTypesRSRecurse = objectAttrsTypeRSRequestDisable2FARequest(true) type requestDisable2FARequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Subject types.String `tfsdk:"subject"` + Subject types.String `tfsdk:"subject"` } var requestEnableTechnicalAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false) var requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(true) type requestEnableTechnicalAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestExtendAccessRequestAttrTypesRS = objectAttrsTypeRSRequestExtendAccessRequest(false) var requestExtendAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestExtendAccessRequest(true) type requestExtendAccessRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ExtendUntil types.String `tfsdk:"extend_until"` + ExtendUntil types.String `tfsdk:"extend_until"` } var requestGrantAccessRequestAttrTypesRS = objectAttrsTypeRSRequestGrantAccessRequest(false) var requestGrantAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantAccessRequest(true) type requestGrantAccessRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestGrantApplicationRequestAttrTypesRS = objectAttrsTypeRSRequestGrantApplicationRequest(false) var requestGrantApplicationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantApplicationRequest(true) type requestGrantApplicationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestGrantClientPermissionRequestAttrTypesRS = objectAttrsTypeRSRequestGrantClientPermissionRequest(false) var requestGrantClientPermissionRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantClientPermissionRequest(true) type requestGrantClientPermissionRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - PermissionType types.String `tfsdk:"permission_type"` - SystemUUID types.String `tfsdk:"system_uuid"` + PermissionType types.String `tfsdk:"permission_type"` + SystemUUID types.String `tfsdk:"system_uuid"` } var requestGrantGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false) var requestGrantGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(true) type requestGrantGroupOnSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantGroupOnSystemRequestRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false) var requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(true) type requestGrantGroupOnSystemRequestRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantServiceAccountGroupRequestAttrTypesRS = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false) var requestGrantServiceAccountGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(true) type requestGrantServiceAccountGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` } var requestJoinGroupRequestAttrTypesRS = objectAttrsTypeRSRequestJoinGroupRequest(false) var requestJoinGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinGroupRequest(true) type requestJoinGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestJoinVaultRequestAttrTypesRS = objectAttrsTypeRSRequestJoinVaultRequest(false) var requestJoinVaultRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinVaultRequest(true) type requestJoinVaultRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestModificationRequestAttrTypesRS = objectAttrsTypeRSRequestModificationRequest(false) var requestModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest(true) type requestModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) @@ -2441,19 +2016,9 @@ var requestPasswordResetRequestAttrTypesRS = objectAttrsTypeRSRequestPasswordRes var requestPasswordResetRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequest(true) type requestPasswordResetRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` - NewVaultPassword types.String `tfsdk:"new_vault_password"` - UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` + NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` + NewVaultPassword types.String `tfsdk:"new_vault_password"` + UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` } var requestPasswordResetRequestStatusAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequestStatus(false) @@ -2470,315 +2035,127 @@ var requestRemoveGroupRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveGroupRe var requestRemoveGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveGroupRequest(true) type requestRemoveGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestRemoveOrganizationalUnitRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false) var requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(true) type requestRemoveOrganizationalUnitRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` } var requestRemoveProvisionedSystemRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false) var requestRemoveProvisionedSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(true) type requestRemoveProvisionedSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - SystemName types.String `tfsdk:"system_name"` + SystemName types.String `tfsdk:"system_name"` } var requestReviewAuditRequestAttrTypesRS = objectAttrsTypeRSRequestReviewAuditRequest(false) var requestReviewAuditRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestReviewAuditRequest(true) type requestReviewAuditRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestRevokeAdminRequestAttrTypesRS = objectAttrsTypeRSRequestRevokeAdminRequest(false) var requestRevokeAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRevokeAdminRequest(true) type requestRevokeAdminRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AdminUUID types.String `tfsdk:"admin_uuid"` + AdminUUID types.String `tfsdk:"admin_uuid"` } var requestSetupAuthorizingGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false) var requestSetupAuthorizingGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(true) type requestSetupAuthorizingGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` } var requestSetupNestedGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupNestedGroupRequest(false) var requestSetupNestedGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupNestedGroupRequest(true) type requestSetupNestedGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` } var requestTransferApplicationAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false) var requestTransferApplicationAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(true) type requestTransferApplicationAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestTransferApplicationOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false) var requestTransferApplicationOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(true) type requestTransferApplicationOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestTransferAuditorGroupRequestAttrTypesRS = objectAttrsTypeRSRequestTransferAuditorGroupRequest(false) var requestTransferAuditorGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferAuditorGroupRequest(true) type requestTransferAuditorGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestTransferGroupOnSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false) var requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(true) type requestTransferGroupOnSystemOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false) var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(true) type requestTransferOrganizationalUnitOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` } var requestTransferProvisionedSystemAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false) var requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(true) type requestTransferProvisionedSystemAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` } var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false) var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(true) type requestTransferProvisionedSystemContentAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` } var requestTransferProvisionedSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false) var requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(true) type requestTransferProvisionedSystemOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` } var requestTransferServiceAccountAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false) var requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(true) type requestTransferServiceAccountAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` } var requestUpdateGroupMembershipRequestAttrTypesRS = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false) var requestUpdateGroupMembershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(true) type requestUpdateGroupMembershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` + AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` } var requestVerifyInternalAccountRequestAttrTypesRS = objectAttrsTypeRSRequestVerifyInternalAccountRequest(false) var requestVerifyInternalAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestVerifyInternalAccountRequest(true) type requestVerifyInternalAccountRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - InternalAccountName types.String `tfsdk:"internal_account_name"` + InternalAccountName types.String `tfsdk:"internal_account_name"` } var serviceaccountServiceAccountAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount(false) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index ea2098c..c2ac5b1 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -396,6 +396,9 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["last_modified_at"] = types.StringType 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)} return objectAttrs } @@ -430,48 +433,18 @@ func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) ma func objectAttrsTypeDSClientLdapClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - 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["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["bind_dn"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} objectAttrs["used_for_provisioning"] = types.BoolType return objectAttrs } func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - 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["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(false)} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(recurse)} objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType @@ -479,7 +452,7 @@ func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs["initiate_login_uri"] = types.StringType objectAttrs["resource_uris"] = types.StringType objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} objectAttrs["show_landing_page"] = types.BoolType objectAttrs["use_client_credentials"] = types.BoolType return objectAttrs @@ -539,22 +512,7 @@ func objectAttrsTypeDSClientOAuth2Client_attributes(recurse bool) map[string]att func objectAttrsTypeDSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - 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["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(recurse)} objectAttrs["metadata"] = types.StringType objectAttrs["metadata_url"] = types.StringType objectAttrs["subject_format"] = types.StringType @@ -585,6 +543,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -643,52 +605,18 @@ func objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(recurse bool) func objectAttrsTypeDSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["base_dn"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["dialect"] = types.StringType objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["host"] = types.StringType objectAttrs["password_recovery"] = types.StringType objectAttrs["port"] = types.Int64Type @@ -696,51 +624,17 @@ func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type objectAttrs["search_bind_password"] = types.StringType objectAttrs["search_filter"] = types.StringType objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} return objectAttrs } func objectAttrsTypeDSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType return objectAttrs } func objectAttrsTypeDSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["acr_values"] = types.StringType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["client_id"] = types.StringType @@ -1214,6 +1108,9 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1238,18 +1135,6 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - 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["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} objectAttrs["title"] = types.StringType objectAttrs["uri"] = types.StringType return objectAttrs @@ -1257,36 +1142,12 @@ func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr func objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - 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["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} objectAttrs["uri"] = types.StringType return objectAttrs } func objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - 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["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} return objectAttrs } @@ -1525,34 +1386,13 @@ func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse b func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse)} objectAttrs["base_dn"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType @@ -1560,7 +1400,7 @@ func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[stri objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["user_dn"] = types.StringType return objectAttrs } @@ -1696,43 +1536,6 @@ func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recu func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_dn"] = types.StringType objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } @@ -1767,6 +1570,52 @@ func objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(recurse b } func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["group_dn"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} @@ -1789,194 +1638,14 @@ func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) ma objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_dn"] = types.StringType - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["group_dn"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - 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["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} return objectAttrs } @@ -2068,58 +1737,19 @@ func objectAttrsTypeDSProvisioningTokenPassword(recurse bool) map[string]attr.Ty func objectAttrsTypeDSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} return objectAttrs } @@ -2150,40 +1780,13 @@ func objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse bool) m func objectAttrsTypeDSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} objectAttrs["private_key"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["activation_required"] = types.BoolType objectAttrs["group_on_system_type"] = types.StringType objectAttrs["name_in_system"] = types.StringType @@ -2192,251 +1795,78 @@ func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string func objectAttrsTypeDSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["username"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestDisable2FARequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["subject"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["extend_until"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} objectAttrs["permission_type"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } @@ -2455,6 +1885,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["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} return objectAttrs } @@ -2473,19 +1940,6 @@ func objectAttrsTypeDSRequestModificationRequest_additionalObjects(recurse bool) func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } @@ -2500,328 +1954,99 @@ func objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse bool) map[string func objectAttrsTypeDSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["organizational_unit_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["system_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["authorizing_group_type"] = types.StringType objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["account_action"] = types.StringType objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} objectAttrs["current_end_date"] = types.StringType objectAttrs["current_rights"] = types.StringType objectAttrs["end_date"] = types.StringType @@ -2832,19 +2057,6 @@ func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[stri func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - 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["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["internal_account_name"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 5c8836e..b60551d 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -364,6 +364,9 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["last_modified_at"] = types.StringType 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)} return objectAttrs } @@ -400,20 +403,6 @@ func objectAttrsTypeRSClientClientApplication_additionalObjects(recurse bool) ma func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - 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["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType objectAttrs["share_secret_in_vault"] = types.BoolType @@ -424,22 +413,8 @@ func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - 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["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(false)} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(recurse)} objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType @@ -505,21 +480,7 @@ func objectAttrsTypeRSClientOAuth2Client_attributes(recurse bool) map[string]att func objectAttrsTypeRSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - 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["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(recurse)} objectAttrs["metadata"] = types.StringType objectAttrs["metadata_url"] = types.StringType objectAttrs["subject_format"] = types.StringType @@ -549,6 +510,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -607,44 +572,12 @@ func objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(recurse bool) func objectAttrsTypeRSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["owner_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["base_dn"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType @@ -664,43 +597,11 @@ func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type func objectAttrsTypeRSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType return objectAttrs } func objectAttrsTypeRSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - 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["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["acr_values"] = types.StringType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["client_id"] = types.StringType @@ -1155,6 +1056,9 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record_uuid"] = types.StringType + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1179,17 +1083,6 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType objectAttrs["title"] = types.StringType objectAttrs["uri"] = types.StringType return objectAttrs @@ -1197,34 +1090,12 @@ func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr func objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType objectAttrs["uri"] = types.StringType return objectAttrs } func objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType return objectAttrs } @@ -1452,27 +1323,7 @@ func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse b func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse)} objectAttrs["base_dn"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType @@ -1620,42 +1471,6 @@ func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recu func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_dn"] = types.StringType objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } @@ -1683,6 +1498,52 @@ func objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(recurse b } func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_dn"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} @@ -1704,198 +1565,24 @@ func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) ma objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} return objectAttrs } -func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_dn"] = types.StringType - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["group_dn"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { 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)}} @@ -1976,54 +1663,18 @@ func objectAttrsTypeRSProvisioningTokenPassword(recurse bool) map[string]attr.Ty func objectAttrsTypeRSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["system_uuid"] = types.StringType return objectAttrs } @@ -2055,18 +1706,6 @@ func objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse bool) m func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["new_admin_uuid"] = types.StringType objectAttrs["private_key"] = types.StringType return objectAttrs @@ -2074,19 +1713,6 @@ func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr. func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType objectAttrs["activation_required"] = types.BoolType objectAttrs["group_on_system_type"] = types.StringType objectAttrs["name_in_system"] = types.StringType @@ -2095,145 +1721,45 @@ func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string func objectAttrsTypeRSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType objectAttrs["username"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestDisable2FARequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["subject"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["extend_until"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType objectAttrs["permission_type"] = types.StringType objectAttrs["system_uuid"] = types.StringType return objectAttrs @@ -2241,92 +1767,32 @@ func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[stri func objectAttrsTypeRSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} - objectAttrs["service_account_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType + objectAttrs := make(map[string]attr.Type) + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} + objectAttrs["service_account_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) return objectAttrs } func objectAttrsTypeRSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } @@ -2344,6 +1810,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["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} return objectAttrs } @@ -2363,18 +1866,6 @@ func objectAttrsTypeRSRequestModificationRequest_additionalObjects(recurse bool) func objectAttrsTypeRSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["new_vault_and_directory_password"] = types.StringType objectAttrs["new_vault_password"] = types.StringType objectAttrs["unsynced_password"] = types.BoolType @@ -2392,109 +1883,35 @@ func objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse bool) map[string func objectAttrsTypeRSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["organizational_unit_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType objectAttrs["system_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["admin_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["authorizing_group_type"] = types.StringType objectAttrs["connect"] = types.BoolType objectAttrs["requesting_group_uuid"] = types.StringType @@ -2503,18 +1920,6 @@ func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[stri func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["account_action"] = types.StringType objectAttrs["connect"] = types.BoolType objectAttrs["requesting_group_uuid"] = types.StringType @@ -2523,179 +1928,53 @@ func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]at func objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["service_account_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["account_to_update_uuid"] = types.StringType objectAttrs["current_end_date"] = types.StringType objectAttrs["current_rights"] = types.StringType @@ -2707,18 +1986,6 @@ func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[stri func objectAttrsTypeRSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["internal_account_name"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 1c23d2b..5b5b903 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -929,6 +929,18 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), Computed: true, } + schemaAttrs["o_auth2_client"] = dsschema.SingleNestedAttribute{ + 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, + } return schemaAttrs } func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1002,82 +1014,18 @@ func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool } func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groupclients", - "groups", - "tile", - "vaultRecordCount", - ), - ), - }, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } schemaAttrs["bind_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), Computed: true, } schemaAttrs["used_for_provisioning"] = dsschema.BoolAttribute{ @@ -1087,78 +1035,14 @@ func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Att } func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groupclients", - "groups", - "tile", - "vaultRecordCount", - ), - ), - }, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(false), + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), }, Computed: true, } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(false), + Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse), Computed: true, } schemaAttrs["callback_uri"] = dsschema.StringAttribute{ @@ -1183,7 +1067,7 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A Computed: true, } schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), Computed: true, } schemaAttrs["show_landing_page"] = dsschema.BoolAttribute{ @@ -1320,72 +1204,8 @@ func dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string } func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groupclients", - "groups", - "tile", - "vaultRecordCount", - ), - ), - }, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(false), + Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(recurse), Computed: true, } schemaAttrs["metadata"] = dsschema.StringAttribute{ @@ -1472,6 +1292,22 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + Computed: true, + } + schemaAttrs["l_d_a_p_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(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 { @@ -1592,200 +1428,107 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bo } func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + Computed: true, + } + schemaAttrs["dialect"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + schemaAttrs["password_recovery"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "markers", - "status", - ), - ), - }, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + schemaAttrs["port"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + schemaAttrs["search_bind_dn"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + schemaAttrs["search_filter"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "markers", - "status", - ), - ), - }, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["acr_values"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["base_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["dialect"] = dsschema.StringAttribute{ + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ + schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["password_recovery"] = dsschema.StringAttribute{ + schemaAttrs["enforces2fa"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["port"] = dsschema.Int64Attribute{ + schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["search_bind_dn"] = dsschema.StringAttribute{ + schemaAttrs["issuer"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ + schemaAttrs["logout_url"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["search_filter"] = dsschema.StringAttribute{ + schemaAttrs["send_login_hint"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["tls"] = dsschema.StringAttribute{ + schemaAttrs["vendor_escaped"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } return schemaAttrs } -func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), Computed: true, } } @@ -1801,13 +1544,7 @@ func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string }, Computed: true, } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["admin"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1824,39 +1561,72 @@ func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string listvalidator.ValueStringsAre( stringvalidator.OneOf( "audit", - "markers", - "status", + "vault", ), ), }, } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), Computed: true, } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + schemaAttrs["last_used"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + schemaAttrs["rights"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup(recurse), + }, Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, + } + schemaAttrs["group_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), Computed: true, } } @@ -1872,13 +1642,7 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche }, Computed: true, } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["admin"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1894,241 +1658,45 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( + "accounts", + "administeredClients", + "administeredSystems", + "admins", "audit", + "authorizedGroups", + "clientPermissions", + "clients", + "contentAdministeredSystems", + "groupauditinginfo", + "groupinfo", + "helpdesk", "markers", - "status", + "myaccount", + "mydelegatedaccount", + "nestedGroups", + "ownedClients", + "ownedDirectories", + "ownedGroupsOnSystem", + "ownedOrganizationalUnits", + "ownedSystems", + "recentAudits", + "requeststatus", + "serviceAccounts", + "systems", + "vault", + "webhooks", ), ), }, } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + schemaAttrs["application_administration"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), Computed: true, } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["acr_values"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["enforces2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["issuer"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logout_url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["send_login_hint"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["vendor_escaped"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "vault", - ), - ), - }, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), - Computed: true, - } - schemaAttrs["last_used"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - }, - Computed: true, - } - schemaAttrs["group_count"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "accounts", - "administeredClients", - "administeredSystems", - "admins", - "audit", - "authorizedGroups", - "clientPermissions", - "clients", - "contentAdministeredSystems", - "groupauditinginfo", - "groupinfo", - "helpdesk", - "markers", - "myaccount", - "mydelegatedaccount", - "nestedGroups", - "ownedClients", - "ownedDirectories", - "ownedGroupsOnSystem", - "ownedOrganizationalUnits", - "ownedSystems", - "recentAudits", - "requeststatus", - "serviceAccounts", - "systems", - "vault", - "webhooks", - ), - ), - }, - } - schemaAttrs["application_administration"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), - Computed: true, - } - schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ + schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["auditor"] = dsschema.BoolAttribute{ @@ -3150,6 +2718,18 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), Computed: true, } + schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Computed: true, + } + schemaAttrs["vault_record_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + Computed: true, + } + schemaAttrs["manual_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -3188,176 +2768,23 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) } func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["title"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["uri"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["title"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } return schemaAttrs } func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dsschema.Attribute { @@ -3834,94 +3261,8 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recur } func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), Computed: true, } schemaAttrs["base_dn"] = dsschema.StringAttribute{ @@ -3934,14 +3275,14 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Computed: true, } schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["group_dn"] = dsschema.StringAttribute{ @@ -3966,7 +3307,7 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Computed: true, } schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["user_dn"] = dsschema.StringAttribute{ @@ -4253,10 +3594,17 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects( return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), Computed: true, } } @@ -4272,202 +3620,134 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss }, Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + schemaAttrs["last_active"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( - "account", "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", ), ), }, } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ + schemaAttrs["uid"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), + }, Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), Computed: true, } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), Computed: true, } - schemaAttrs["base_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_dn"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), Computed: true, } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["port"] = dsschema.Int64Attribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + schemaAttrs["idp_domain"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["tls"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), Computed: true, } - schemaAttrs["user_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ - Computed: true, - } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ + schemaAttrs["gid"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["uid"] = dsschema.Int64Attribute{ + schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, - Computed: true, + schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), Computed: true, } + schemaAttrs["group_dn"] = dsschema.StringAttribute{ + Computed: true, + } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ @@ -4555,23 +3835,52 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + 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, + } + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Computed: true, + } + schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + Computed: true, + } + schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), + Computed: true, + } + schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Computed: true, } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsRestLink(recurse), @@ -4601,3080 +3910,326 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse Required: recurse, Computed: !recurse, } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( - "account", "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", ), ), }, } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ + schemaAttrs["created_at"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + schemaAttrs["errors"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + schemaAttrs["log"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + schemaAttrs["modifications"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), + }, Computed: true, } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), Computed: true, } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ + schemaAttrs["login_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), Computed: true, } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Computed: true, + } + schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } + schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["groups"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), }, Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(recurse), + Computed: true, } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), Computed: true, } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), Computed: true, } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + schemaAttrs["seconds"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["end_date"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + schemaAttrs["make_manager"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), Computed: true, } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_id"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ + schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["idp_domain"] = dsschema.StringAttribute{ + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["tenant"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group_name"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["subject"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["extend_until"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["permission_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), Computed: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Computed: true, - } - schemaAttrs["base_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["port"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["user_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["gid"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, - } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["login_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, - } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, - } - schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Computed: true, - } - schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["make_manager"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["subject"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["extend_until"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["permission_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["managers"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["system_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["connect"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_action"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["connect"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), Computed: true, } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), - Computed: true, - } +func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) return schemaAttrs } -func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ @@ -7729,82 +4284,329 @@ func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[ schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["current_end_date"] = dsschema.StringAttribute{ + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + Computed: true, + } + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Computed: true, + } + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + Computed: true, + } + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + Computed: true, + } + schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + Computed: true, + } + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Computed: true, + } + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Computed: true, + } + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Computed: true, + } + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + Computed: true, + } + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Computed: true, + } + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + Computed: true, + } + schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Computed: true, + } + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Computed: true, + } + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Computed: true, + } + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + Computed: true, + } + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Computed: true, + } + schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Computed: true, + } + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Computed: true, + } + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + Computed: true, + } + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Computed: true, + } + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + Computed: true, + } + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Computed: true, + } + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Computed: true, + } + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Computed: true, + } + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Computed: true, + } + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + Computed: true, + } + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Computed: true, + } + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + Computed: true, + } + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Computed: true, + } + schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + Computed: true, + } + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Computed: true, + } + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Computed: true, + } + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + }, Computed: true, } - schemaAttrs["current_rights"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["end_date"] = dsschema.StringAttribute{ + schemaAttrs["managers"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["rights"] = dsschema.StringAttribute{ + schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group_name"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } + schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["system_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, + schemaAttrs["connect"] = dsschema.BoolAttribute{ + Computed: true, } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), Computed: true, } - schemaAttrs["comment"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_action"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["feedback"] = dsschema.StringAttribute{ + schemaAttrs["connect"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), Computed: true, } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, + } + schemaAttrs["current_end_date"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + schemaAttrs["current_rights"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["status"] = dsschema.StringAttribute{ + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ Computed: true, } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["internal_account_name"] = dsschema.StringAttribute{ Computed: true, } diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 317746f..57217e9 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -788,6 +788,18 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, } + 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, + } return schemaAttrs } func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -867,52 +879,6 @@ func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) } func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["bind_dn"] = rsschema.StringAttribute{ Computed: true, } @@ -934,60 +900,14 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri } func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(false), + Attributes: resourceSchemaAttrsAuthPermission(recurse), }, Computed: true, } schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(false), + Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), Optional: true, } schemaAttrs["callback_uri"] = rsschema.StringAttribute{ @@ -1132,54 +1052,8 @@ func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]r } func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client_attributes(false), + Attributes: resourceSchemaAttrsClientSaml2Client_attributes(recurse), Optional: true, } schemaAttrs["metadata"] = rsschema.StringAttribute{ @@ -1258,6 +1132,22 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + Optional: true, + } + schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(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 { @@ -1383,184 +1273,180 @@ func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool } func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["base_dn"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + schemaAttrs["dialect"] = rsschema.StringAttribute{ Computed: true, + Optional: true, + Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["failover_host"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ + schemaAttrs["host"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["password_recovery"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_filter"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tls"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["acr_values"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["issuer"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["logout_url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(false), + Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ - Optional: true, } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ + schemaAttrs["rights"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["dialect"] = rsschema.StringAttribute{ + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, - Optional: true, - Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), + }, Optional: true, } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Computed: true, } - schemaAttrs["password_recovery"] = rsschema.StringAttribute{ - Required: true, + return schemaAttrs +} +func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, } - schemaAttrs["port"] = rsschema.Int64Attribute{ + schemaAttrs["group_count"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["search_filter"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } return schemaAttrs } -func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), Optional: true, } } @@ -1576,353 +1462,121 @@ func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]r }, Optional: true, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + schemaAttrs["application_administration"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), + Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["auditor"] = rsschema.BoolAttribute{ Computed: true, + } + schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } + schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["extended_access"] = rsschema.StringAttribute{ Computed: true, + Optional: true, + Default: stringdefault.StaticString("NOT_ALLOWED"), } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["private_group"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["acr_values"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + schemaAttrs["record_trail"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ + schemaAttrs["single_managed"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ Computed: true, - } - schemaAttrs["issuer"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["logout_url"] = rsschema.StringAttribute{ Optional: true, + Default: stringdefault.StaticString("FULL"), } - schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ + schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ - Required: true, - } return schemaAttrs } -func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), Optional: true, } } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["end_date"] = rsschema.StringAttribute{ + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(false), - Optional: true, - } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - }, - Optional: true, - } - schemaAttrs["group_count"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["admin"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["application_administration"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), - Optional: true, - } - schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["auditor"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["extended_access"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NOT_ALLOWED"), - } - schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["private_group"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["record_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["single_managed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("FULL"), - } - schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, } schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, @@ -2817,6 +2471,18 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, } + schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Optional: true, + } + schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + Optional: true, + } + schemaAttrs["manual_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -2855,182 +2521,59 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) m } func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } + schemaAttrs["title"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["uri"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["uri"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["current_license_status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["customer_company"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["customer_contact"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["customer_domains"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["details"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration_time"] = rsschema.StringAttribute{ Optional: true, - Default: stringdefault.StaticString("MANUAL"), } - schemaAttrs["logo"] = rsschema.ListAttribute{ + schemaAttrs["features"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + schemaAttrs["issue_time"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["title"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["current_license_status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_company"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_contact"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_domains"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["expiration_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["features"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["issue_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["license_key"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["license_key"] = rsschema.StringAttribute{ + Optional: true, } schemaAttrs["not_before_time"] = rsschema.StringAttribute{ Optional: true, @@ -3395,81 +2938,8 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse } func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), Optional: true, } schemaAttrs["base_dn"] = rsschema.StringAttribute{ @@ -3787,173 +3257,123 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(re return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + schemaAttrs["uid"] = rsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), }, Optional: true, } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["client_id"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + schemaAttrs["client_secret"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Optional: true, - } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ + schemaAttrs["tenant"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["bind_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["client_id"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ + schemaAttrs["client_secret"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["user_dn"] = rsschema.StringAttribute{ + schemaAttrs["idp_domain"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ + schemaAttrs["tenant"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(recurse), + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, + schemaAttrs["gid"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + Required: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["group_dn"] = rsschema.StringAttribute{ + Required: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ @@ -4028,22 +3448,52 @@ func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) schemaAttrs["username_prefix"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + Optional: true, } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Optional: true, + } + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Optional: true, + } + schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(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_a_d"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), + Optional: true, + } + schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Optional: true, } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -4073,63 +3523,21 @@ func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bo schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), Optional: true, } } @@ -4145,2153 +3553,295 @@ func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[str }, Optional: true, } - schemaAttrs["active"] = rsschema.BoolAttribute{ + schemaAttrs["created_at"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["errors"] = rsschema.Int64Attribute{ Computed: true, } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ + schemaAttrs["log"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + schemaAttrs["modifications"] = rsschema.Int64Attribute{ Computed: true, } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["idp_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Optional: true, - } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["bind_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["user_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["gid"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = rsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["login_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, - } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, - } - schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["groups"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Optional: true, - } - schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["make_manager"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["subject"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["extend_until"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["permission_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), - Optional: true, - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["managers"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), }, Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), + Computed: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["login_name"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + Computed: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, } - schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Computed: true, + } + schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Computed: true, } return schemaAttrs } -func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["connect"] = rsschema.BoolAttribute{ + schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } return schemaAttrs } -func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + schemaAttrs["groups"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), }, Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["account_action"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["connect"] = rsschema.BoolAttribute{ + schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } return schemaAttrs } -func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["password"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["seconds"] = rsschema.Int64Attribute{ Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ + schemaAttrs["make_manager"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["private_key"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["username"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["subject"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["extend_until"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["permission_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, + } + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ @@ -6332,283 +3882,323 @@ func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse boo schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, + schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + Optional: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Optional: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + Optional: true, } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + Optional: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Optional: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + Optional: true, } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Optional: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Optional: true, + } + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + Optional: true, + } + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Optional: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Optional: true, } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Optional: true, + } + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ + schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), + Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), }, Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Computed: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, + Default: booldefault.StaticBool(false), } return schemaAttrs } -func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["managers"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ + schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["system_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_action"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, } + return schemaAttrs +} +func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ Required: true, } @@ -6631,45 +4221,6 @@ func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[st } func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["internal_account_name"] = rsschema.StringAttribute{ Required: true, } diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index accc6e1..1a1dc78 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -315,6 +315,9 @@ func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientAppli data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) 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) } func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { @@ -341,19 +344,6 @@ func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data } func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) @@ -362,19 +352,6 @@ func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, } func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientDataDS, 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) @@ -426,19 +403,6 @@ func fillDataStructFromTFObjectDSClientOAuth2Client_attributes(data *clientOAuth } func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS, 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) @@ -464,6 +428,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.LDAPDirectory = obj.Attributes()["l_d_a_p_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) { @@ -508,40 +476,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory_additionalObjects(dat } func fillDataStructFromTFObjectDSDirectoryInternalDirectory(data *directoryInternalDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) @@ -559,39 +497,9 @@ func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirec } func fillDataStructFromTFObjectDSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) } func fillDataStructFromTFObjectDSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) @@ -963,6 +871,9 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) + data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { @@ -979,45 +890,15 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile_additionalObjects(data * } func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataDS, obj types.Object) { @@ -1056,7 +937,7 @@ func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) @@ -1190,25 +1071,6 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObject } func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) @@ -1323,41 +1185,6 @@ func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence_additionalO } func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningProvisionedADDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } @@ -1383,49 +1210,11 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAccount_additionalObject } func fillDataStructFromTFObjectDSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) @@ -1433,6 +1222,28 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(d } func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataDS, obj types.Object) { + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataDS, obj types.Object) { + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataDS, obj types.Object) { + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataDS, obj types.Object) { + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1452,127 +1263,21 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provis 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) - data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) - data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) - data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataDS, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1633,47 +1338,14 @@ func fillDataStructFromTFObjectDSProvisioningTokenPassword(data *provisioningTok } func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.System = obj.Attributes()["system"].(basetypes.ObjectValue) } @@ -1695,101 +1367,68 @@ func fillDataStructFromTFObjectDSRequestAcceptModificationRequestParameters(data } func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.NewAdmin = obj.Attributes()["new_admin"].(basetypes.ObjectValue) data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Username = obj.Attributes()["username"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2FARequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.Subject = obj.Attributes()["subject"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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) } func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendAccessRequestDataDS, obj types.Object) { + data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { + data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) @@ -1801,143 +1440,43 @@ func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendA 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.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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) -} - -func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.Application = obj.Attributes()["application"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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) -} - -func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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) -} - -func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { @@ -1950,17 +1489,6 @@ func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(da } func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswordResetRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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) } func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataDS, obj types.Object) { @@ -1971,261 +1499,66 @@ func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *request } func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAuditRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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) } func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.Admin = obj.Attributes()["admin"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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) } func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.AccountToUpdate = obj.Attributes()["account_to_update"].(basetypes.ObjectValue) data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) @@ -2235,17 +1568,6 @@ func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *reque } func fillDataStructFromTFObjectDSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - 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.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) } diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 633a1bb..c219b14 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -285,6 +285,9 @@ func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientAppli data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) 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) } func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { @@ -313,18 +316,6 @@ func fillDataStructFromTFObjectRSClientClientApplication_additionalObjects(data } func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) @@ -333,18 +324,6 @@ func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, } func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientDataRS, 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) @@ -394,18 +373,6 @@ func fillDataStructFromTFObjectRSClientOAuth2Client_attributes(data *clientOAuth } func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS, 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) @@ -430,6 +397,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.LDAPDirectory = obj.Attributes()["l_d_a_p_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) { @@ -474,38 +445,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory_additionalObjects(dat } func fillDataStructFromTFObjectRSDirectoryInternalDirectory(data *directoryInternalDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) @@ -523,37 +466,9 @@ func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirec } func fillDataStructFromTFObjectRSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) } func fillDataStructFromTFObjectRSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - 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.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) @@ -906,6 +821,9 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) + data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { @@ -922,42 +840,15 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile_additionalObjects(data * } func fillDataStructFromTFObjectRSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataRS, obj types.Object) { @@ -996,7 +887,7 @@ func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) @@ -1119,24 +1010,6 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObject } func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) @@ -1249,40 +1122,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence_additionalO } func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningProvisionedADDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } @@ -1301,47 +1140,11 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAccount_additionalObject } func fillDataStructFromTFObjectRSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) @@ -1349,24 +1152,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(d } func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) @@ -1374,6 +1159,21 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provis } func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataRS, obj types.Object) { + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataRS, obj types.Object) { + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1392,98 +1192,21 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provi 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.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) - data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) - data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) - data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - 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.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - 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) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataRS, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1543,44 +1266,14 @@ func fillDataStructFromTFObjectRSProvisioningTokenPassword(data *provisioningTok } func fillDataStructFromTFObjectRSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } @@ -1602,220 +1295,65 @@ func fillDataStructFromTFObjectRSRequestAcceptModificationRequestParameters(data } func fillDataStructFromTFObjectRSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestCreateGroupRequest(data *requestCreateGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) data.Username = obj.Attributes()["username"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestDisable2FARequest(data *requestDisable2FARequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.Subject = obj.Attributes()["subject"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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) } func fillDataStructFromTFObjectRSRequestExtendAccessRequest(data *requestExtendAccessRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestGrantAccessRequest(data *requestGrantAccessRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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) } func fillDataStructFromTFObjectRSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestJoinGroupRequest(data *requestJoinGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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) } func fillDataStructFromTFObjectRSRequestJoinVaultRequest(data *requestJoinVaultRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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) } func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModificationRequestDataRS, obj types.Object) { @@ -1829,6 +1367,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.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { @@ -1842,16 +1417,6 @@ func fillDataStructFromTFObjectRSRequestModificationRequest_additionalObjects(da } func fillDataStructFromTFObjectRSRequestPasswordResetRequest(data *requestPasswordResetRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) @@ -1865,244 +1430,66 @@ func fillDataStructFromTFObjectRSRequestPasswordResetRequestStatus(data *request } func fillDataStructFromTFObjectRSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestReviewAuditRequest(data *requestReviewAuditRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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) } func fillDataStructFromTFObjectRSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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) } func fillDataStructFromTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) @@ -2112,16 +1499,6 @@ func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *reque } func fillDataStructFromTFObjectRSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - 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.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) } diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 1bec835..9700bac 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -20,7 +20,8 @@ func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditInfo() + var tkh keyhubmodel.AuditInfoable + tkh = keyhubmodel.NewAuditInfo() { val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) @@ -42,7 +43,8 @@ func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewErrorReport() + var tkh keyhubmodel.ErrorReportable + tkh = keyhubmodel.NewErrorReport() tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) @@ -75,7 +77,8 @@ func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + var tkh keyhubmodel.ErrorReport_applicationErrorParametersable + tkh = keyhubmodel.NewErrorReport_applicationErrorParameters() return tkh, diags } @@ -85,7 +88,8 @@ func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGeneratedSecret() + var tkh keyhubmodel.GeneratedSecretable + tkh = keyhubmodel.NewGeneratedSecret() tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) @@ -98,7 +102,8 @@ func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLinkable() + var tkh keyhubmodel.Linkableable + tkh = keyhubmodel.NewLinkable() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -125,7 +130,8 @@ func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNonLinkable() + var tkh keyhubmodel.NonLinkableable + tkh = keyhubmodel.NewNonLinkable() return tkh, diags } @@ -135,7 +141,8 @@ func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRestLink() + var tkh keyhubmodel.RestLinkable + tkh = keyhubmodel.NewRestLink() tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) @@ -149,7 +156,8 @@ func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSegmentCount() + var tkh keyhubmodel.SegmentCountable + tkh = keyhubmodel.NewSegmentCount() tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -161,7 +169,8 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord() + var tkh keyhubmodel.AuditAuditRecordable + tkh = keyhubmodel.NewAuditAuditRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -227,7 +236,8 @@ func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() + var tkh keyhubmodel.AuditAuditRecordLinkableWrapperable + tkh = keyhubmodel.NewAuditAuditRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { tkh, d := tfObjectToTKHDSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -246,7 +256,8 @@ func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() + var tkh keyhubmodel.AuditAuditRecord_additionalObjectsable + tkh = keyhubmodel.NewAuditAuditRecord_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -261,7 +272,8 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount() + var tkh keyhubmodel.AuthAccountable + tkh = keyhubmodel.NewAuthAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -365,7 +377,8 @@ func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountBulkUpdate() + var tkh keyhubmodel.AuthAccountBulkUpdateable + tkh = keyhubmodel.NewAuthAccountBulkUpdate() { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) @@ -390,7 +403,8 @@ func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountChangeLocale() + var tkh keyhubmodel.AuthAccountChangeLocaleable + tkh = keyhubmodel.NewAuthAccountChangeLocale() tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -401,7 +415,8 @@ func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() + var tkh keyhubmodel.AuthAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { tkh, d := tfObjectToTKHDSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -420,7 +435,8 @@ func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountPrimer() + var tkh keyhubmodel.AuthAccountPrimerable + tkh = keyhubmodel.NewAuthAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -461,7 +477,8 @@ func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + var tkh keyhubmodel.AuthAccountRecoveryStatusable + tkh = keyhubmodel.NewAuthAccountRecoveryStatus() tkh.SetPending2FARecoveryRequest(objAttrs["pending2fa_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags @@ -473,7 +490,8 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountSettings() + var tkh keyhubmodel.AuthAccountSettingsable + tkh = keyhubmodel.NewAuthAccountSettings() { val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["default_organizational_unit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -519,7 +537,8 @@ func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountStatus() + var tkh keyhubmodel.AuthAccountStatusable + tkh = keyhubmodel.NewAuthAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) @@ -539,7 +558,8 @@ func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount_additionalObjects() + var tkh keyhubmodel.AuthAccount_additionalObjectsable + tkh = keyhubmodel.NewAuthAccount_additionalObjects() tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) @@ -580,7 +600,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountsAuditStats() + var tkh keyhubmodel.AuthAccountsAuditStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats() { val, d := tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) diags.Append(d...) @@ -604,7 +625,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, r if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_directoryStats() return tkh, diags } @@ -613,7 +635,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() return tkh, diags } @@ -622,7 +645,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, re if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_validityStats() return tkh, diags } @@ -632,7 +656,8 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccount() + var tkh keyhubmodel.AuthInternalAccountable + tkh = keyhubmodel.NewAuthInternalAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -753,7 +778,8 @@ func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + var tkh keyhubmodel.AuthInternalAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthInternalAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { tkh, d := tfObjectToTKHDSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -772,7 +798,8 @@ func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + var tkh keyhubmodel.AuthInternalAccountStatusObjectable + tkh = keyhubmodel.NewAuthInternalAccountStatusObject() { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { return *val.(*keyhubmodel.AuthInternalAccountStatus) @@ -789,7 +816,8 @@ func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthMoveInternalAccount() + var tkh keyhubmodel.AuthMoveInternalAccountable + tkh = keyhubmodel.NewAuthMoveInternalAccount() { val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) @@ -804,7 +832,8 @@ func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthPermission() + var tkh keyhubmodel.AuthPermissionable + tkh = keyhubmodel.NewAuthPermission() tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -832,7 +861,8 @@ func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttribute() + var tkh keyhubmodel.AuthStoredAccountAttributeable + tkh = keyhubmodel.NewAuthStoredAccountAttribute() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -844,7 +874,8 @@ func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse boo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttributes() + var tkh keyhubmodel.AuthStoredAccountAttributesable + tkh = keyhubmodel.NewAuthStoredAccountAttributes() { val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { tkh, d := tfObjectToTKHDSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) @@ -863,7 +894,8 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate() + var tkh keyhubmodel.CertificateCertificateable + tkh = keyhubmodel.NewCertificateCertificate() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -930,7 +962,8 @@ func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + var tkh keyhubmodel.CertificateCertificateLinkableWrapperable + tkh = keyhubmodel.NewCertificateCertificateLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { tkh, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) @@ -949,7 +982,8 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificatePrimer() + var tkh keyhubmodel.CertificateCertificatePrimerable + tkh = keyhubmodel.NewCertificateCertificatePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1002,7 +1036,8 @@ func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + var tkh keyhubmodel.CertificateCertificate_additionalObjectsable + tkh = keyhubmodel.NewCertificateCertificate_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1017,7 +1052,8 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication() + var tkh keyhubmodel.ClientClientApplicationable + tkh = keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1069,6 +1105,30 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if !objAttrs["o_auth2_client"].IsNull() { + val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1085,7 +1145,8 @@ func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + var tkh keyhubmodel.ClientClientApplicationLinkableWrapperable + tkh = keyhubmodel.NewClientClientApplicationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { tkh, d := tfObjectToTKHDSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1104,7 +1165,8 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationPrimer() + var tkh keyhubmodel.ClientClientApplicationPrimerable + tkh = keyhubmodel.NewClientClientApplicationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1150,7 +1212,8 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + var tkh keyhubmodel.ClientClientApplication_additionalObjectsable + tkh = keyhubmodel.NewClientClientApplication_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1181,78 +1244,21 @@ func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientLdapClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientLdapClientable + tkh = keyhubmodel.NewClientLdapClient() tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClientCertificate(val) } tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["shared_secret"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetSharedSecret(val) } tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1262,61 +1268,11 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientOAuth2Clientable + tkh = keyhubmodel.NewClientOAuth2Client() { val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -1324,7 +1280,7 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetAccountPermissions(val) } { - val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1336,19 +1292,12 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetResourceURIs(objAttrs["resource_uris"].(basetypes.StringValue).ValueStringPointer()) tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["shared_secret"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetSharedSecret(val) } tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1358,7 +1307,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission() + var tkh keyhubmodel.ClientOAuth2ClientPermissionable + tkh = keyhubmodel.NewClientOAuth2ClientPermission() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1410,7 +1360,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { tkh, d := tfObjectToTKHDSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1429,7 +1380,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1486,7 +1438,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { tkh, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1505,7 +1458,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + var tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable + tkh = keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1519,7 +1473,8 @@ func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() + var tkh keyhubmodel.ClientOAuth2Client_attributesable + tkh = keyhubmodel.NewClientOAuth2Client_attributes() return tkh, diags } @@ -1529,60 +1484,10 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientSaml2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientSaml2Clientable + tkh = keyhubmodel.NewClientSaml2Client() { - val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1593,13 +1498,6 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal diags.Append(d...) tkh.SetSubjectFormat(val) } - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1608,7 +1506,8 @@ func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientSaml2Client_attributes() + var tkh keyhubmodel.ClientSaml2Client_attributesable + tkh = keyhubmodel.NewClientSaml2Client_attributes() return tkh, diags } @@ -1618,7 +1517,8 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory() + var tkh keyhubmodel.DirectoryAccountDirectoryable + tkh = keyhubmodel.NewDirectoryAccountDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1668,6 +1568,38 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1684,7 +1616,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { tkh, d := tfObjectToTKHDSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1703,7 +1636,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + var tkh keyhubmodel.DirectoryAccountDirectoryPrimerable + tkh = keyhubmodel.NewDirectoryAccountDirectoryPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1742,7 +1676,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + var tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable + tkh = keyhubmodel.NewDirectoryAccountDirectoryStatusReport() tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { @@ -1761,7 +1696,8 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummary() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1805,7 +1741,8 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { tkh, d := tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1824,7 +1761,8 @@ func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + var tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable + tkh = keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1849,173 +1787,63 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryInternalDirectory() + var tkh keyhubmodel.DirectoryInternalDirectoryable + tkh = keyhubmodel.NewDirectoryInternalDirectory() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["owner"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetOwner(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.DirectoryLDAPDirectoryable + tkh = keyhubmodel.NewDirectoryLDAPDirectory() + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetClientCertificate(val) } - 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 { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + tkh.SetDialect(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + tkh.SetFailoverTrustedCertificate(val) } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + tkh.SetPasswordRecovery(val) } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) - tkh.SetRotatingPassword(val) + tkh.SetTls(val) } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - 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 { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) - diags.Append(d...) - tkh.SetDialect(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) - diags.Append(d...) - tkh.SetPasswordRecovery(val) - } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetTrustedCertificate(val) } return tkh, diags } @@ -2025,64 +1853,8 @@ func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - 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 { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.DirectoryMaintenanceDirectoryable + tkh = keyhubmodel.NewDirectoryMaintenanceDirectory() return tkh, diags } @@ -2092,56 +1864,8 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - 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 { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.DirectoryOIDCDirectoryable + tkh = keyhubmodel.NewDirectoryOIDCDirectory() tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) @@ -2157,13 +1881,6 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVendorEscaped(val) } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -2173,7 +1890,8 @@ func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup() + var tkh keyhubmodel.GroupAccountGroupable + tkh = keyhubmodel.NewGroupAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2237,7 +1955,8 @@ func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + var tkh keyhubmodel.GroupAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { tkh, d := tfObjectToTKHDSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2256,7 +1975,8 @@ func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + var tkh keyhubmodel.GroupAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupAccountGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2276,7 +1996,8 @@ func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + var tkh keyhubmodel.GroupAuthorizedGroupsWrapperable + tkh = keyhubmodel.NewGroupAuthorizedGroupsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2296,7 +2017,8 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup() + var tkh keyhubmodel.GroupGroupable + tkh = keyhubmodel.NewGroupGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2409,7 +2131,8 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount() + var tkh keyhubmodel.GroupGroupAccountable + tkh = keyhubmodel.NewGroupGroupAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2492,7 +2215,8 @@ func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + var tkh keyhubmodel.GroupGroupAccountLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { tkh, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2511,7 +2235,8 @@ func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountNesting() + var tkh keyhubmodel.GroupGroupAccountNestingable + tkh = keyhubmodel.NewGroupGroupAccountNesting() tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -2522,7 +2247,8 @@ func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountStatus() + var tkh keyhubmodel.GroupGroupAccountStatusable + tkh = keyhubmodel.NewGroupGroupAccountStatus() { val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2538,7 +2264,8 @@ func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + var tkh keyhubmodel.GroupGroupAccount_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2553,7 +2280,8 @@ func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAdminMail() + var tkh keyhubmodel.GroupGroupAdminMailable + tkh = keyhubmodel.NewGroupGroupAdminMail() tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -2564,7 +2292,8 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit() + var tkh keyhubmodel.GroupGroupAuditable + tkh = keyhubmodel.NewGroupGroupAudit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2634,7 +2363,8 @@ func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditAccount() + var tkh keyhubmodel.GroupGroupAuditAccountable + tkh = keyhubmodel.NewGroupGroupAuditAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2694,7 +2424,8 @@ func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditConfig() + var tkh keyhubmodel.GroupGroupAuditConfigable + tkh = keyhubmodel.NewGroupGroupAuditConfig() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2731,7 +2462,8 @@ func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + var tkh keyhubmodel.GroupGroupAuditLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAuditLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { tkh, d := tfObjectToTKHDSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2750,7 +2482,8 @@ func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + var tkh keyhubmodel.GroupGroupAudit_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAudit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2765,7 +2498,8 @@ func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditingInfo() + var tkh keyhubmodel.GroupGroupAuditingInfoable + tkh = keyhubmodel.NewGroupGroupAuditingInfo() { val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -2791,7 +2525,8 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification() + var tkh keyhubmodel.GroupGroupClassificationable + tkh = keyhubmodel.NewGroupGroupClassification() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2848,7 +2583,8 @@ func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationInfo() + var tkh keyhubmodel.GroupGroupClassificationInfoable + tkh = keyhubmodel.NewGroupGroupClassificationInfo() tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } @@ -2859,7 +2595,8 @@ func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + var tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClassificationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2878,7 +2615,8 @@ func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + var tkh keyhubmodel.GroupGroupClassificationPrimerable + tkh = keyhubmodel.NewGroupGroupClassificationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2908,7 +2646,8 @@ func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + var tkh keyhubmodel.GroupGroupClassificationUpdateable + tkh = keyhubmodel.NewGroupGroupClassificationUpdate() { val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, recurse, objAttrs["classificaton"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2923,7 +2662,8 @@ func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + var tkh keyhubmodel.GroupGroupClassification_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClassification_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2943,7 +2683,8 @@ func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient() + var tkh keyhubmodel.GroupGroupClientable + tkh = keyhubmodel.NewGroupGroupClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2999,7 +2740,8 @@ func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + var tkh keyhubmodel.GroupGroupClientLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { tkh, d := tfObjectToTKHDSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3018,7 +2760,8 @@ func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + var tkh keyhubmodel.GroupGroupClient_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClient_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3033,7 +2776,8 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder() + var tkh keyhubmodel.GroupGroupFolderable + tkh = keyhubmodel.NewGroupGroupFolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3069,7 +2813,8 @@ func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + var tkh keyhubmodel.GroupGroupFolderLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupFolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { tkh, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3088,7 +2833,8 @@ func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + var tkh keyhubmodel.GroupGroupFolder_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupFolder_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3103,7 +2849,8 @@ func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupInfo() + var tkh keyhubmodel.GroupGroupInfoable + tkh = keyhubmodel.NewGroupGroupInfo() tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) @@ -3119,7 +2866,8 @@ func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + var tkh keyhubmodel.GroupGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3138,7 +2886,8 @@ func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimer() + var tkh keyhubmodel.GroupGroupPrimerable + tkh = keyhubmodel.NewGroupGroupPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3169,7 +2918,8 @@ func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + var tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3188,7 +2938,8 @@ func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + var tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3216,7 +2967,8 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup_additionalObjects() + var tkh keyhubmodel.GroupGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupGroup_additionalObjects() { val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3361,7 +3113,8 @@ func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupsAuditStats() + var tkh keyhubmodel.GroupGroupsAuditStatsable + tkh = keyhubmodel.NewGroupGroupsAuditStats() tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { @@ -3386,7 +3139,8 @@ func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup() + var tkh keyhubmodel.GroupProvisioningGroupable + tkh = keyhubmodel.NewGroupProvisioningGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3432,7 +3186,8 @@ func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + var tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { tkh, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3451,7 +3206,8 @@ func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + var tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupProvisioningGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3466,7 +3222,8 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3514,7 +3271,8 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { tkh, d := tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3533,7 +3291,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + var tkh keyhubmodel.LaunchpadLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3582,6 +3341,30 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["manual_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -3598,7 +3381,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable + tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { tkh, d := tfObjectToTKHDSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3617,7 +3401,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable + tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3645,7 +3430,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3660,130 +3446,22 @@ func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var tkh keyhubmodel.LaunchpadManualLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -3792,63 +3470,8 @@ func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } @@ -3858,7 +3481,8 @@ func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + var tkh keyhubmodel.LicenseKeyHubLicenseInfoable + tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() { val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) @@ -3922,7 +3546,8 @@ func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() { val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) @@ -3946,7 +3571,8 @@ func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewMarkItemMarker_parameters() + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } @@ -3956,7 +3582,8 @@ func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() { val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3975,7 +3602,8 @@ func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + var tkh keyhubmodel.NotificationCertificateExpiredNotificationable + tkh = keyhubmodel.NewNotificationCertificateExpiredNotification() { val, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4022,7 +3650,8 @@ func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + var tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupAuditRequiredNotification() { val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) diags.Append(d...) @@ -4049,7 +3678,8 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + var tkh keyhubmodel.NotificationGroupEditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification() { val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4075,7 +3705,8 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx con if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() return tkh, diags } @@ -4084,7 +3715,8 @@ func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx contex if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable + tkh = keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() return tkh, diags } @@ -4094,7 +3726,8 @@ func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + var tkh keyhubmodel.NotificationLicenseStatusNotificationable + tkh = keyhubmodel.NewNotificationLicenseStatusNotification() tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) @@ -4110,7 +3743,8 @@ func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationModificationRequestNotification() + var tkh keyhubmodel.NotificationModificationRequestNotificationable + tkh = keyhubmodel.NewNotificationModificationRequestNotification() { val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { return val.(basetypes.StringValue).ValueString() @@ -4138,7 +3772,8 @@ func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationNotification() + var tkh keyhubmodel.NotificationNotificationable + tkh = keyhubmodel.NewNotificationNotification() return tkh, diags } @@ -4148,7 +3783,8 @@ func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationNotifications() + var tkh keyhubmodel.NotificationNotificationsable + tkh = keyhubmodel.NewNotificationNotifications() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { tkh, d := tfObjectToTKHDSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4167,7 +3803,8 @@ func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + var tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable + tkh = keyhubmodel.NewNotificationOldApiVersionUsageNotification() tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHDSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) @@ -4183,7 +3820,8 @@ func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + var tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable + tkh = keyhubmodel.NewNotificationProvisionConfigRequiredNotification() { val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4202,7 +3840,8 @@ func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + var tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable + tkh = keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4221,7 +3860,8 @@ func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + var tkh keyhubmodel.NotificationUpdateAvailableNotificationable + tkh = keyhubmodel.NewNotificationUpdateAvailableNotification() { val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -4236,7 +3876,8 @@ func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + var tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable + tkh = keyhubmodel.NewNotificationVaultRecordExpiredNotification() { val, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4251,7 +3892,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4288,7 +3930,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { tkh, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4307,7 +3950,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4322,7 +3966,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + var tkh keyhubmodel.OrganizationOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4371,7 +4016,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4424,7 +4070,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4443,7 +4090,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4458,7 +4106,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4477,7 +4126,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4507,7 +4157,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4526,7 +4177,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4541,68 +4193,10 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -4610,13 +4204,13 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClientCertificate(val) } tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } @@ -4632,18 +4226,11 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetTls(val) } { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTrustedCertificate(val) } tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -4652,7 +4239,8 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() return tkh, diags } @@ -4662,7 +4250,8 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatus() tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { @@ -4685,7 +4274,8 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatusReport() { val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { tkh, d := tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4704,7 +4294,8 @@ func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable + tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) @@ -4724,7 +4315,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4779,7 +4371,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4798,7 +4391,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable + tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4836,7 +4430,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable + tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { @@ -4857,7 +4452,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4882,7 +4478,8 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatusable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus() { val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4923,7 +4520,8 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -4935,7 +4533,8 @@ func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable + tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4955,7 +4554,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4993,7 +4593,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { tkh, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5012,7 +4613,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5032,7 +4634,26 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAD() + var tkh keyhubmodel.ProvisioningProvisionedADable + tkh = keyhubmodel.NewProvisioningProvisionedAD() + { + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) + }) + diags.Append(d...) + tkh.SetSamAccountNameScheme(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5051,93 +4672,23 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetLastActive(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) + tkh.SetValidity(val) } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5145,96 +4696,158 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount() + var tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAudit(val) } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLastActive(val) + tkh.SetDirectory(val) } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetValidity(val) + tkh.SetDirectory(val) } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable + tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedLDAP() + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) } return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetDirectory(val) } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + var tkh keyhubmodel.ProvisioningProvisionedSystemable + tkh = keyhubmodel.NewProvisioningProvisionedSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5294,12 +4907,70 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetDirectory(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + 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 := tkh.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...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).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...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5310,13 +4981,34 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5350,43 +5042,66 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co tkh.SetProvisioningProvisionedSystemPrimerType(val) } tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetLinks(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetPermissions(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetDirectory(val) + tkh.SetCreatedAt(val) } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5394,2905 +5109,466 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAudit(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetAccount(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + tkh.SetAudit(val) } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetContentAdministrator(val) + tkh.SetIssuedPermissions(val) } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetManagementPermissions(val) } { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetMarkers(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetStatistics(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSupportedGroupTypes(val) } return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable + tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + var tkh keyhubmodel.ProvisioningProvisioningStatusable + tkh = keyhubmodel.NewProvisioningProvisioningStatus() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetGroups(val) + } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningTokenPasswordable + tkh = keyhubmodel.NewProvisioningTokenPassword() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractApplicationModificationRequestable + tkh = keyhubmodel.NewRequestAbstractApplicationModificationRequest() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, recurse, objAttrs["application"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetApplication(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable + tkh = keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() { val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetOrganizationalUnit(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable + tkh = keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetContentAdministrator(val) + tkh.SetSystem(val) } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetAccessDuration(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable + tkh = keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() { - val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetClient(val) + tkh.SetEndDate(val) } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestAcceptModificationRequestParametersable + tkh = keyhubmodel.NewRequestAcceptModificationRequestParameters() return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { +func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + var tkh keyhubmodel.RequestAddGroupAdminRequestable + tkh = keyhubmodel.NewRequestAddGroupAdminRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["new_admin"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) - }) - diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningStatus() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() - { - val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccessDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["new_admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestDisable2FARequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinVaultRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) - diags.Append(d...) - tkh.SetResetViaMail(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestReviewAuditRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRevokeAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdmin(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) - }) - diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetNewAdmin(val) } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } + var tkh keyhubmodel.RequestCreateGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestCreateGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + tkh.SetGroupOnSystemType(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestCreateGroupRequestable + tkh = keyhubmodel.NewRequestCreateGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestCreateServiceAccountRequestable + tkh = keyhubmodel.NewRequestCreateServiceAccountRequest() + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestDisable2FARequestable + tkh = keyhubmodel.NewRequestDisable2FARequest() + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable + tkh = keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() return tkh, diags } -func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() + var tkh keyhubmodel.RequestExtendAccessRequestable + tkh = keyhubmodel.NewRequestExtendAccessRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetExtendUntil(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestGrantAccessRequestable + tkh = keyhubmodel.NewRequestGrantAccessRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestGrantApplicationRequestable + tkh = keyhubmodel.NewRequestGrantApplicationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestGrantClientPermissionRequestable + tkh = keyhubmodel.NewRequestGrantClientPermissionRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetPermissionType(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetSystem(val) } return tkh, diags } -func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetGroupOnSystem(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetGroupOnSystem(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable + tkh = keyhubmodel.NewRequestGrantServiceAccountGroupRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetGroupOnSystem(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetServiceAccount(val) } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + var tkh keyhubmodel.RequestJoinGroupRequestable + tkh = keyhubmodel.NewRequestJoinGroupRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestJoinVaultRequestable + tkh = keyhubmodel.NewRequestJoinVaultRequest() return tkh, diags } -func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + var tkh keyhubmodel.RequestModificationRequestable + tkh = keyhubmodel.NewRequestModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8338,77 +5614,301 @@ func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex diags.Append(d...) tkh.SetStatus(val) } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(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...) - tkh.SetOrganizationalUnit(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + 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 := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + 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...) - tkh.SetRequestModificationRequestType(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } if recurse { { @@ -8420,261 +5920,310 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx co return tkh, diags } -func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + var tkh keyhubmodel.RequestModificationRequestLinkableWrapperable + tkh = keyhubmodel.NewRequestModificationRequestLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestModificationRequest_additionalObjectsable + tkh = keyhubmodel.NewRequestModificationRequest_additionalObjects() { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetAudit(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetResetStatus(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestPasswordResetRequestable + tkh = keyhubmodel.NewRequestPasswordResetRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestPasswordResetRequestStatusable + tkh = keyhubmodel.NewRequestPasswordResetRequestStatus() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetCooldownEnd(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetManagers(val) } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return *val.(*keyhubmodel.RequestPasswordResetEmailType) + }) diags.Append(d...) - tkh.SetSystem(val) + tkh.SetResetViaMail(val) } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveGroupRequestable + tkh = keyhubmodel.NewRequestRemoveGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + var tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable + tkh = keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable + tkh = keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestReviewAuditRequestable + tkh = keyhubmodel.NewRequestReviewAuditRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRevokeAdminRequestable + tkh = keyhubmodel.NewRequestRevokeAdminRequest() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["admin"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetAdmin(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable + tkh = keyhubmodel.NewRequestSetupAuthorizingGroupRequest() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetAuthorizingGroupType(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["requesting_group"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetRequestingGroup(val) } return tkh, diags } -func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + var tkh keyhubmodel.RequestSetupNestedGroupRequestable + tkh = keyhubmodel.NewRequestSetupNestedGroupRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return *val.(*keyhubmodel.RequestGroupNestAccountAction) }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetAccountAction(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["requesting_group"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetRequestingGroup(val) } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferApplicationOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + var tkh keyhubmodel.RequestTransferAuditorGroupRequestable + tkh = keyhubmodel.NewRequestTransferAuditorGroupRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetGroupOnSystem(val) } return tkh, diags } -func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetServiceAccount(val) } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestUpdateGroupMembershipRequestable + tkh = keyhubmodel.NewRequestUpdateGroupMembershipRequest() { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account_to_update"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account_to_update"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAccountToUpdate(val) } @@ -8705,13 +6254,6 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec diags.Append(d...) tkh.SetUpdateGroupMembershipType(val) } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8721,60 +6263,9 @@ func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } + var tkh keyhubmodel.RequestVerifyInternalAccountRequestable + tkh = keyhubmodel.NewRequestVerifyInternalAccountRequest() tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8784,7 +6275,8 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount() + var tkh keyhubmodel.ServiceaccountServiceAccountable + tkh = keyhubmodel.NewServiceaccountServiceAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8846,7 +6338,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8891,7 +6384,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8910,7 +6404,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -8925,7 +6420,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8944,7 +6440,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8981,7 +6478,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9000,7 +6498,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + var tkh keyhubmodel.ServiceaccountServiceAccountStatusable + tkh = keyhubmodel.NewServiceaccountServiceAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -9011,7 +6510,8 @@ func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9031,7 +6531,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats() tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) @@ -9051,7 +6552,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() return tkh, diags } @@ -9060,7 +6562,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() return tkh, diags } @@ -9070,7 +6573,8 @@ func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleStringValue() + var tkh keyhubmodel.SimpleStringValueable + tkh = keyhubmodel.NewSimpleStringValue() tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -9081,7 +6585,8 @@ func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleVersionInfo() + var tkh keyhubmodel.SimpleVersionInfoable + tkh = keyhubmodel.NewSimpleVersionInfo() { val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { return int32(val.(basetypes.Int64Value).ValueInt64()) @@ -9099,7 +6604,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder() + var tkh keyhubmodel.VaultDeletedVaultHolderable + tkh = keyhubmodel.NewVaultDeletedVaultHolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9141,7 +6647,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + var tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable + tkh = keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { tkh, d := tfObjectToTKHDSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9160,7 +6667,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + var tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable + tkh = keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9180,7 +6688,8 @@ func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + var tkh keyhubmodel.VaultDeletedVaultRecoveryable + tkh = keyhubmodel.NewVaultDeletedVaultRecovery() tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) { @@ -9197,7 +6706,8 @@ func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord() + var tkh keyhubmodel.VaultMoveVaultRecordable + tkh = keyhubmodel.NewVaultMoveVaultRecord() { val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9229,7 +6739,8 @@ func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + var tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable + tkh = keyhubmodel.NewVaultMoveVaultRecord_shareDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -9241,7 +6752,8 @@ func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVault() + var tkh keyhubmodel.VaultVaultable + tkh = keyhubmodel.NewVaultVault() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9279,7 +6791,8 @@ func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultHolder() + var tkh keyhubmodel.VaultVaultHolderable + tkh = keyhubmodel.NewVaultVaultHolder() return tkh, diags } @@ -9289,7 +6802,8 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9361,7 +6875,8 @@ func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9380,7 +6895,8 @@ func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimer() + var tkh keyhubmodel.VaultVaultRecordPrimerable + tkh = keyhubmodel.NewVaultVaultRecordPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9420,7 +6936,8 @@ func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { tkh, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9439,7 +6956,8 @@ func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordSecrets() + var tkh keyhubmodel.VaultVaultRecordSecretsable + tkh = keyhubmodel.NewVaultVaultRecordSecrets() tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) @@ -9453,7 +6971,8 @@ func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShare() + var tkh keyhubmodel.VaultVaultRecordShareable + 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) }) @@ -9469,7 +6988,8 @@ func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + var tkh keyhubmodel.VaultVaultRecordShareSummaryable + tkh = keyhubmodel.NewVaultVaultRecordShareSummary() { val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { tkh, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9493,7 +7013,8 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + var tkh keyhubmodel.VaultVaultRecord_additionalObjectsable + tkh = keyhubmodel.NewVaultVaultRecord_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9538,7 +7059,8 @@ func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecovery() + var tkh keyhubmodel.VaultVaultRecoveryable + tkh = keyhubmodel.NewVaultVaultRecovery() { val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9554,7 +7076,8 @@ func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlock() + var tkh keyhubmodel.VaultVaultUnlockable + tkh = keyhubmodel.NewVaultVaultUnlock() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -9565,7 +7088,8 @@ func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlockResponse() + var tkh keyhubmodel.VaultVaultUnlockResponseable + tkh = keyhubmodel.NewVaultVaultUnlockResponse() { val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) diags.Append(d...) @@ -9581,7 +7105,8 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook() + var tkh keyhubmodel.WebhookWebhookable + tkh = keyhubmodel.NewWebhookWebhook() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9683,7 +7208,8 @@ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9733,7 +7259,8 @@ func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { tkh, d := tfObjectToTKHDSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9752,7 +7279,8 @@ func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + var tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9767,7 +7295,8 @@ func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { tkh, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9786,7 +7315,8 @@ func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookNameUuid() + var tkh keyhubmodel.WebhookWebhookNameUuidable + tkh = keyhubmodel.NewWebhookWebhookNameUuid() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) @@ -9803,7 +7333,8 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookPush() + var tkh keyhubmodel.WebhookWebhookPushable + tkh = keyhubmodel.NewWebhookWebhookPush() { val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9902,7 +7433,8 @@ func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + var tkh keyhubmodel.WebhookWebhook_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhook_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 92aafcb..578a818 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -20,7 +20,8 @@ func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditInfo() + var tkh keyhubmodel.AuditInfoable + tkh = keyhubmodel.NewAuditInfo() { val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) @@ -42,7 +43,8 @@ func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewErrorReport() + var tkh keyhubmodel.ErrorReportable + tkh = keyhubmodel.NewErrorReport() tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) @@ -75,7 +77,8 @@ func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + var tkh keyhubmodel.ErrorReport_applicationErrorParametersable + tkh = keyhubmodel.NewErrorReport_applicationErrorParameters() return tkh, diags } @@ -85,7 +88,8 @@ func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGeneratedSecret() + var tkh keyhubmodel.GeneratedSecretable + tkh = keyhubmodel.NewGeneratedSecret() tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) @@ -98,7 +102,8 @@ func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLinkable() + var tkh keyhubmodel.Linkableable + tkh = keyhubmodel.NewLinkable() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -125,7 +130,8 @@ func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNonLinkable() + var tkh keyhubmodel.NonLinkableable + tkh = keyhubmodel.NewNonLinkable() return tkh, diags } @@ -135,7 +141,8 @@ func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRestLink() + var tkh keyhubmodel.RestLinkable + tkh = keyhubmodel.NewRestLink() tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) @@ -149,7 +156,8 @@ func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSegmentCount() + var tkh keyhubmodel.SegmentCountable + tkh = keyhubmodel.NewSegmentCount() tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -161,7 +169,8 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord() + var tkh keyhubmodel.AuditAuditRecordable + tkh = keyhubmodel.NewAuditAuditRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -227,7 +236,8 @@ func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() + var tkh keyhubmodel.AuditAuditRecordLinkableWrapperable + tkh = keyhubmodel.NewAuditAuditRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { tkh, d := tfObjectToTKHRSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -246,7 +256,8 @@ func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() + var tkh keyhubmodel.AuditAuditRecord_additionalObjectsable + tkh = keyhubmodel.NewAuditAuditRecord_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -261,7 +272,8 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount() + var tkh keyhubmodel.AuthAccountable + tkh = keyhubmodel.NewAuthAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -365,7 +377,8 @@ func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountBulkUpdate() + var tkh keyhubmodel.AuthAccountBulkUpdateable + tkh = keyhubmodel.NewAuthAccountBulkUpdate() { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) @@ -390,7 +403,8 @@ func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountChangeLocale() + var tkh keyhubmodel.AuthAccountChangeLocaleable + tkh = keyhubmodel.NewAuthAccountChangeLocale() tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -401,7 +415,8 @@ func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() + var tkh keyhubmodel.AuthAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { tkh, d := tfObjectToTKHRSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -420,7 +435,8 @@ func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountPrimer() + var tkh keyhubmodel.AuthAccountPrimerable + tkh = keyhubmodel.NewAuthAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -461,7 +477,8 @@ func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + var tkh keyhubmodel.AuthAccountRecoveryStatusable + tkh = keyhubmodel.NewAuthAccountRecoveryStatus() tkh.SetPending2FARecoveryRequest(objAttrs["pending2fa_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags @@ -473,7 +490,8 @@ func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountSettings() + var tkh keyhubmodel.AuthAccountSettingsable + tkh = keyhubmodel.NewAuthAccountSettings() { val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -519,7 +537,8 @@ func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountStatus() + var tkh keyhubmodel.AuthAccountStatusable + tkh = keyhubmodel.NewAuthAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) @@ -539,7 +558,8 @@ func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount_additionalObjects() + var tkh keyhubmodel.AuthAccount_additionalObjectsable + tkh = keyhubmodel.NewAuthAccount_additionalObjects() tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) @@ -583,7 +603,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountsAuditStats() + var tkh keyhubmodel.AuthAccountsAuditStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats() { val, d := tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) diags.Append(d...) @@ -607,7 +628,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, r if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_directoryStats() return tkh, diags } @@ -616,7 +638,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() return tkh, diags } @@ -625,7 +648,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, re if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_validityStats() return tkh, diags } @@ -635,13 +659,14 @@ func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccount() + var tkh keyhubmodel.AuthInternalAccountable + tkh = keyhubmodel.NewAuthInternalAccount() { val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.AuthAccount = *(val.(*keyhubmodel.AuthAccount)) + (*tkh.(*keyhubmodel.AuthInternalAccount)).AuthAccount = *(val.(*keyhubmodel.AuthAccount)) tkh.SetTypeEscaped(dtype) } } @@ -671,7 +696,8 @@ func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + var tkh keyhubmodel.AuthInternalAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthInternalAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { tkh, d := tfObjectToTKHRSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -690,7 +716,8 @@ func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + var tkh keyhubmodel.AuthInternalAccountStatusObjectable + tkh = keyhubmodel.NewAuthInternalAccountStatusObject() { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { return *val.(*keyhubmodel.AuthInternalAccountStatus) @@ -707,7 +734,8 @@ func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthMoveInternalAccount() + var tkh keyhubmodel.AuthMoveInternalAccountable + tkh = keyhubmodel.NewAuthMoveInternalAccount() { val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) @@ -722,7 +750,8 @@ func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthPermission() + var tkh keyhubmodel.AuthPermissionable + tkh = keyhubmodel.NewAuthPermission() tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -750,7 +779,8 @@ func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttribute() + var tkh keyhubmodel.AuthStoredAccountAttributeable + tkh = keyhubmodel.NewAuthStoredAccountAttribute() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -762,7 +792,8 @@ func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse boo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttributes() + var tkh keyhubmodel.AuthStoredAccountAttributesable + tkh = keyhubmodel.NewAuthStoredAccountAttributes() { val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { tkh, d := tfObjectToTKHRSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) @@ -781,7 +812,8 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate() + var tkh keyhubmodel.CertificateCertificateable + tkh = keyhubmodel.NewCertificateCertificate() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -848,7 +880,8 @@ func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + var tkh keyhubmodel.CertificateCertificateLinkableWrapperable + tkh = keyhubmodel.NewCertificateCertificateLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { tkh, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) @@ -867,7 +900,8 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificatePrimer() + var tkh keyhubmodel.CertificateCertificatePrimerable + tkh = keyhubmodel.NewCertificateCertificatePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -920,7 +954,8 @@ func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + var tkh keyhubmodel.CertificateCertificate_additionalObjectsable + tkh = keyhubmodel.NewCertificateCertificate_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -935,7 +970,8 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication() + var tkh keyhubmodel.ClientClientApplicationable + tkh = keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -987,6 +1023,30 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if !objAttrs["o_auth2_client"].IsNull() { + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1003,7 +1063,8 @@ func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + var tkh keyhubmodel.ClientClientApplicationLinkableWrapperable + tkh = keyhubmodel.NewClientClientApplicationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1022,7 +1083,8 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationPrimer() + var tkh keyhubmodel.ClientClientApplicationPrimerable + tkh = keyhubmodel.NewClientClientApplicationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1068,7 +1130,8 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + var tkh keyhubmodel.ClientClientApplication_additionalObjectsable + tkh = keyhubmodel.NewClientClientApplication_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1097,6 +1160,9 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "launchpad.SsoApplicationLaunchpadTile"}) + } } tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags @@ -1108,58 +1174,8 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientLdapClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientLdapClientable + tkh = keyhubmodel.NewClientLdapClient() tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) @@ -1173,13 +1189,6 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t tkh.SetSharedSecret(val) } tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1189,61 +1198,11 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientOAuth2Clientable + tkh = keyhubmodel.NewClientOAuth2Client() { val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -1251,7 +1210,7 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetAccountPermissions(val) } { - val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1269,13 +1228,6 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal } tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1285,7 +1237,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission() + var tkh keyhubmodel.ClientOAuth2ClientPermissionable + tkh = keyhubmodel.NewClientOAuth2ClientPermission() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1337,7 +1290,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { tkh, d := tfObjectToTKHRSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1356,7 +1310,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1413,7 +1368,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1432,7 +1388,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + var tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable + tkh = keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1446,7 +1403,8 @@ func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() + var tkh keyhubmodel.ClientOAuth2Client_attributesable + tkh = keyhubmodel.NewClientOAuth2Client_attributes() return tkh, diags } @@ -1456,60 +1414,10 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientSaml2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientSaml2Clientable + tkh = keyhubmodel.NewClientSaml2Client() { - val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1520,13 +1428,6 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal diags.Append(d...) tkh.SetSubjectFormat(val) } - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1535,7 +1436,8 @@ func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientSaml2Client_attributes() + var tkh keyhubmodel.ClientSaml2Client_attributesable + tkh = keyhubmodel.NewClientSaml2Client_attributes() return tkh, diags } @@ -1545,7 +1447,8 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory() + var tkh keyhubmodel.DirectoryAccountDirectoryable + tkh = keyhubmodel.NewDirectoryAccountDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1595,6 +1498,38 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1611,7 +1546,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1630,7 +1566,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + var tkh keyhubmodel.DirectoryAccountDirectoryPrimerable + tkh = keyhubmodel.NewDirectoryAccountDirectoryPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1669,7 +1606,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + var tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable + tkh = keyhubmodel.NewDirectoryAccountDirectoryStatusReport() tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { @@ -1688,7 +1626,8 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummary() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1732,7 +1671,8 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1751,7 +1691,8 @@ func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + var tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable + tkh = keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1776,174 +1717,64 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryInternalDirectory() + var tkh keyhubmodel.DirectoryInternalDirectoryable + tkh = keyhubmodel.NewDirectoryInternalDirectory() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetOwner(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.DirectoryLDAPDirectoryable + tkh = keyhubmodel.NewDirectoryLDAPDirectory() + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + tkh.SetClientCertificate(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + tkh.SetDialect(val) } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + tkh.SetFailoverTrustedCertificate(val) } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) }) diags.Append(d...) - tkh.SetRotatingPassword(val) + tkh.SetPasswordRecovery(val) } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - 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 { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) - diags.Append(d...) - tkh.SetDialect(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) - diags.Append(d...) - tkh.SetPasswordRecovery(val) - } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) + tkh.SetTls(val) } { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetTrustedCertificate(val) } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1952,64 +1783,8 @@ func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - 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 { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.DirectoryMaintenanceDirectoryable + tkh = keyhubmodel.NewDirectoryMaintenanceDirectory() return tkh, diags } @@ -2019,56 +1794,8 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - 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 { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.DirectoryOIDCDirectoryable + tkh = keyhubmodel.NewDirectoryOIDCDirectory() tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) @@ -2084,13 +1811,6 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVendorEscaped(val) } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -2100,13 +1820,14 @@ func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup() + var tkh keyhubmodel.GroupAccountGroupable + tkh = keyhubmodel.NewGroupAccountGroup() { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) + (*tkh.(*keyhubmodel.GroupAccountGroup)).GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -2152,7 +1873,8 @@ func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + var tkh keyhubmodel.GroupAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { tkh, d := tfObjectToTKHRSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2171,7 +1893,8 @@ func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + var tkh keyhubmodel.GroupAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupAccountGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2191,7 +1914,8 @@ func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + var tkh keyhubmodel.GroupAuthorizedGroupsWrapperable + tkh = keyhubmodel.NewGroupAuthorizedGroupsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2211,7 +1935,8 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup() + var tkh keyhubmodel.GroupGroupable + tkh = keyhubmodel.NewGroupGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2324,13 +2049,14 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount() + var tkh keyhubmodel.GroupGroupAccountable + tkh = keyhubmodel.NewGroupGroupAccount() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + (*tkh.(*keyhubmodel.GroupGroupAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -2385,7 +2111,8 @@ func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + var tkh keyhubmodel.GroupGroupAccountLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2404,7 +2131,8 @@ func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountNesting() + var tkh keyhubmodel.GroupGroupAccountNestingable + tkh = keyhubmodel.NewGroupGroupAccountNesting() tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -2415,7 +2143,8 @@ func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountStatus() + var tkh keyhubmodel.GroupGroupAccountStatusable + tkh = keyhubmodel.NewGroupGroupAccountStatus() { val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2431,7 +2160,8 @@ func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + var tkh keyhubmodel.GroupGroupAccount_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2446,7 +2176,8 @@ func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAdminMail() + var tkh keyhubmodel.GroupGroupAdminMailable + tkh = keyhubmodel.NewGroupGroupAdminMail() tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -2457,7 +2188,8 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit() + var tkh keyhubmodel.GroupGroupAuditable + tkh = keyhubmodel.NewGroupGroupAudit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2527,7 +2259,8 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditAccount() + var tkh keyhubmodel.GroupGroupAuditAccountable + tkh = keyhubmodel.NewGroupGroupAuditAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2587,7 +2320,8 @@ func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditConfig() + var tkh keyhubmodel.GroupGroupAuditConfigable + tkh = keyhubmodel.NewGroupGroupAuditConfig() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2624,7 +2358,8 @@ func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + var tkh keyhubmodel.GroupGroupAuditLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAuditLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2643,7 +2378,8 @@ func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + var tkh keyhubmodel.GroupGroupAudit_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAudit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2658,7 +2394,8 @@ func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditingInfo() + var tkh keyhubmodel.GroupGroupAuditingInfoable + tkh = keyhubmodel.NewGroupGroupAuditingInfo() { val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -2684,7 +2421,8 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification() + var tkh keyhubmodel.GroupGroupClassificationable + tkh = keyhubmodel.NewGroupGroupClassification() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2741,7 +2479,8 @@ func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationInfo() + var tkh keyhubmodel.GroupGroupClassificationInfoable + tkh = keyhubmodel.NewGroupGroupClassificationInfo() tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } @@ -2752,7 +2491,8 @@ func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + var tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClassificationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2771,7 +2511,8 @@ func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + var tkh keyhubmodel.GroupGroupClassificationPrimerable + tkh = keyhubmodel.NewGroupGroupClassificationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2801,7 +2542,8 @@ func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + var tkh keyhubmodel.GroupGroupClassificationUpdateable + tkh = keyhubmodel.NewGroupGroupClassificationUpdate() { val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -2816,7 +2558,8 @@ func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + var tkh keyhubmodel.GroupGroupClassification_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClassification_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2836,7 +2579,8 @@ func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient() + var tkh keyhubmodel.GroupGroupClientable + tkh = keyhubmodel.NewGroupGroupClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2892,7 +2636,8 @@ func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + var tkh keyhubmodel.GroupGroupClientLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2911,7 +2656,8 @@ func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + var tkh keyhubmodel.GroupGroupClient_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClient_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2926,7 +2672,8 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder() + var tkh keyhubmodel.GroupGroupFolderable + tkh = keyhubmodel.NewGroupGroupFolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2962,7 +2709,8 @@ func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + var tkh keyhubmodel.GroupGroupFolderLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupFolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { tkh, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2981,7 +2729,8 @@ func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + var tkh keyhubmodel.GroupGroupFolder_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupFolder_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2996,7 +2745,8 @@ func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupInfo() + var tkh keyhubmodel.GroupGroupInfoable + tkh = keyhubmodel.NewGroupGroupInfo() tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) @@ -3012,7 +2762,8 @@ func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + var tkh keyhubmodel.GroupGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3031,7 +2782,8 @@ func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimer() + var tkh keyhubmodel.GroupGroupPrimerable + tkh = keyhubmodel.NewGroupGroupPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3062,7 +2814,8 @@ func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + var tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -3081,7 +2834,8 @@ func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + var tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3109,7 +2863,8 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup_additionalObjects() + var tkh keyhubmodel.GroupGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupGroup_additionalObjects() { val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3293,7 +3048,8 @@ func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupsAuditStats() + var tkh keyhubmodel.GroupGroupsAuditStatsable + tkh = keyhubmodel.NewGroupGroupsAuditStats() tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { @@ -3318,7 +3074,8 @@ func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup() + var tkh keyhubmodel.GroupProvisioningGroupable + tkh = keyhubmodel.NewGroupProvisioningGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3364,7 +3121,8 @@ func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + var tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3383,7 +3141,8 @@ func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + var tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupProvisioningGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3398,7 +3157,8 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3446,7 +3206,8 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { tkh, d := tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3465,7 +3226,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + var tkh keyhubmodel.LaunchpadLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3514,6 +3276,30 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["manual_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -3530,7 +3316,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable + tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3549,7 +3336,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable + tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3577,7 +3365,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3592,130 +3381,22 @@ func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var tkh keyhubmodel.LaunchpadManualLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -3724,63 +3405,8 @@ func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } @@ -3790,7 +3416,8 @@ func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + var tkh keyhubmodel.LicenseKeyHubLicenseInfoable + tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() { val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) @@ -3854,7 +3481,8 @@ func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() { val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) @@ -3878,7 +3506,8 @@ func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewMarkItemMarker_parameters() + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } @@ -3888,7 +3517,8 @@ func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() { val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3907,7 +3537,8 @@ func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + var tkh keyhubmodel.NotificationCertificateExpiredNotificationable + tkh = keyhubmodel.NewNotificationCertificateExpiredNotification() { val, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3954,7 +3585,8 @@ func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + var tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupAuditRequiredNotification() { val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) diags.Append(d...) @@ -3981,7 +3613,8 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + var tkh keyhubmodel.NotificationGroupEditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification() { val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4007,7 +3640,8 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx con if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() return tkh, diags } @@ -4016,7 +3650,8 @@ func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx contex if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable + tkh = keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() return tkh, diags } @@ -4026,7 +3661,8 @@ func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + var tkh keyhubmodel.NotificationLicenseStatusNotificationable + tkh = keyhubmodel.NewNotificationLicenseStatusNotification() tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) @@ -4042,7 +3678,8 @@ func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationModificationRequestNotification() + var tkh keyhubmodel.NotificationModificationRequestNotificationable + tkh = keyhubmodel.NewNotificationModificationRequestNotification() { val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { return val.(basetypes.StringValue).ValueString() @@ -4070,7 +3707,8 @@ func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationNotification() + var tkh keyhubmodel.NotificationNotificationable + tkh = keyhubmodel.NewNotificationNotification() return tkh, diags } @@ -4080,7 +3718,8 @@ func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationNotifications() + var tkh keyhubmodel.NotificationNotificationsable + tkh = keyhubmodel.NewNotificationNotifications() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { tkh, d := tfObjectToTKHRSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4099,7 +3738,8 @@ func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + var tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable + tkh = keyhubmodel.NewNotificationOldApiVersionUsageNotification() tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHRSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) @@ -4115,7 +3755,8 @@ func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + var tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable + tkh = keyhubmodel.NewNotificationProvisionConfigRequiredNotification() { val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -4134,7 +3775,8 @@ func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + var tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable + tkh = keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -4153,7 +3795,8 @@ func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + var tkh keyhubmodel.NotificationUpdateAvailableNotificationable + tkh = keyhubmodel.NewNotificationUpdateAvailableNotification() { val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -4168,7 +3811,8 @@ func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + var tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable + tkh = keyhubmodel.NewNotificationVaultRecordExpiredNotification() { val, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4183,13 +3827,14 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() { val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) + (*tkh.(*keyhubmodel.OrganizationAccountOrganizationalUnit)).OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -4209,7 +3854,8 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { tkh, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4228,7 +3874,8 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4243,7 +3890,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + var tkh keyhubmodel.OrganizationOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4292,13 +3940,14 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + (*tkh.(*keyhubmodel.OrganizationOrganizationalUnitAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -4323,7 +3972,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4342,7 +3992,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4357,7 +4008,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4376,7 +4028,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4406,7 +4059,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -4425,7 +4079,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4448,68 +4103,10 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -4544,13 +4141,6 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetTrustedCertificate(val) } tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -4559,7 +4149,8 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() return tkh, diags } @@ -4569,7 +4160,8 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatus() tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { @@ -4592,7 +4184,8 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatusReport() { val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { tkh, d := tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4611,7 +4204,8 @@ func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable + tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) @@ -4631,7 +4225,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4686,7 +4281,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4705,7 +4301,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable + tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4743,7 +4340,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable + tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { @@ -4764,7 +4362,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4795,7 +4394,8 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatusable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus() { val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4836,7 +4436,8 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -4848,7 +4449,8 @@ func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable + tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4868,7 +4470,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4906,7 +4509,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { tkh, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4925,7 +4529,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4948,134 +4553,34 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAD() + var tkh keyhubmodel.ProvisioningProvisionedADable + tkh = keyhubmodel.NewProvisioningProvisionedAD() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetSamAccountNameScheme(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.ProvisioningProvisionedAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } } tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { @@ -5094,7 +4599,8 @@ func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { tkh, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5113,7 +4619,8 @@ func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5128,89 +4635,116 @@ func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetDirectory(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetDirectory(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable + tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedLDAP() + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetHashingScheme(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetNumbering(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() { val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetDirectory(val) } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + var tkh keyhubmodel.ProvisioningProvisionedSystemable + tkh = keyhubmodel.NewProvisioningProvisionedSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5270,14 +4804,70 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetDirectory(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + 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 := tkh.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...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).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...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5288,13 +4878,34 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5328,53 +4939,37 @@ func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recu tkh.SetProvisioningProvisionedSystemPrimerType(val) } tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5393,55 +4988,17 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetClient(val) + tkh.SetCreatedAt(val) } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5449,2755 +5006,469 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetAudit(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetContentAdministrator(val) + tkh.SetAccount(val) } { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetAudit(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetIssuedPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetManagementPermissions(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAttributes(val) + tkh.SetMarkers(val) } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetClientCertificate(val) + tkh.SetStatistics(val) } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) + tkh.SetSupportedGroupTypes(val) } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable + tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisioningStatusable + tkh = keyhubmodel.NewProvisioningProvisioningStatus() { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) + tkh.SetGroups(val) } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningTokenPasswordable + tkh = keyhubmodel.NewProvisioningTokenPassword() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + var tkh keyhubmodel.RequestAbstractApplicationModificationRequestable + tkh = keyhubmodel.NewRequestAbstractApplicationModificationRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetApplication(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable + tkh = keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() { val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetOrganizationalUnit(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable + tkh = keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetSystem(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetItems(val) + tkh.SetAccessDuration(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable + tkh = keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetEndDate(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.RequestAcceptModificationRequestParametersable + tkh = keyhubmodel.NewRequestAcceptModificationRequestParameters() return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() + var tkh keyhubmodel.RequestAddGroupAdminRequestable + tkh = keyhubmodel.NewRequestAddGroupAdminRequest() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetItems(val) + tkh.SetNewAdmin(val) } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { +func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } + var tkh keyhubmodel.RequestCreateGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestCreateGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetGroupOnSystemType(val) } + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } + var tkh keyhubmodel.RequestCreateGroupRequestable + tkh = keyhubmodel.NewRequestCreateGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } + var tkh keyhubmodel.RequestCreateServiceAccountRequestable + tkh = keyhubmodel.NewRequestCreateServiceAccountRequest() + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } + var tkh keyhubmodel.RequestDisable2FARequestable + tkh = keyhubmodel.NewRequestDisable2FARequest() + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { +func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable + tkh = keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() return tkh, diags } -func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { +func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningStatus() + var tkh keyhubmodel.RequestExtendAccessRequestable + tkh = keyhubmodel.NewRequestExtendAccessRequest() { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetGroups(val) + tkh.SetExtendUntil(val) } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.RequestGrantAccessRequestable + tkh = keyhubmodel.NewRequestGrantAccessRequest() return tkh, diags } -func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.RequestGrantApplicationRequestable + tkh = keyhubmodel.NewRequestGrantApplicationRequest() return tkh, diags } -func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } + var tkh keyhubmodel.RequestGrantClientPermissionRequestable + tkh = keyhubmodel.NewRequestGrantClientPermissionRequest() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetPermissionType(val) } { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetSystem(val) } return tkh, diags } -func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetGroupOnSystem(val) } return tkh, diags } -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccessDuration(val) + tkh.SetGroupOnSystem(val) } return tkh, diags } -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + var tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable + tkh = keyhubmodel.NewRequestGrantServiceAccountGroupRequest() + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } return tkh, diags } -func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestDisable2FARequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinVaultRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAcceptParams(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) - diags.Append(d...) - tkh.SetResetViaMail(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestReviewAuditRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRevokeAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAdmin(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) - }) - diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return nil, diags } + var tkh keyhubmodel.RequestJoinGroupRequestable + tkh = keyhubmodel.NewRequestJoinGroupRequest() return tkh, diags } -func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestJoinVaultRequestable + tkh = keyhubmodel.NewRequestJoinVaultRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + var tkh keyhubmodel.RequestModificationRequestable + tkh = keyhubmodel.NewRequestModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8243,144 +5514,301 @@ func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex diags.Append(d...) tkh.SetStatus(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + 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 := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + 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...) - tkh.SetRequestModificationRequestType(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + 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...) - tkh.SetSystem(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).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)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } if recurse { { @@ -8392,192 +5820,317 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest return tkh, diags } -func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + var tkh keyhubmodel.RequestModificationRequestLinkableWrapperable + tkh = keyhubmodel.NewRequestModificationRequestLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestModificationRequest_additionalObjectsable + tkh = keyhubmodel.NewRequestModificationRequest_additionalObjects() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAcceptParams(val) } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetAudit(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetResetStatus(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestPasswordResetRequestable + tkh = keyhubmodel.NewRequestPasswordResetRequest() + tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestPasswordResetRequestStatusable + tkh = keyhubmodel.NewRequestPasswordResetRequestStatus() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetCooldownEnd(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetManagers(val) } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return *val.(*keyhubmodel.RequestPasswordResetEmailType) + }) diags.Append(d...) - tkh.SetSystem(val) + tkh.SetResetViaMail(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveGroupRequestable + tkh = keyhubmodel.NewRequestRemoveGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable + tkh = keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable + tkh = keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestReviewAuditRequestable + tkh = keyhubmodel.NewRequestReviewAuditRequest() return tkh, diags } -func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + var tkh keyhubmodel.RequestRevokeAdminRequestable + tkh = keyhubmodel.NewRequestRevokeAdminRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetAdmin(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable + tkh = keyhubmodel.NewRequestSetupAuthorizingGroupRequest() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAuthorizingGroupType(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetRequestingGroup(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestSetupNestedGroupRequestable + tkh = keyhubmodel.NewRequestSetupNestedGroupRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return *val.(*keyhubmodel.RequestGroupNestAccountAction) }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetAccountAction(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetRequestingGroup(val) } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferApplicationOwnershipRequest() return tkh, diags } -func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestTransferAuditorGroupRequestable + tkh = keyhubmodel.NewRequestTransferAuditorGroupRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() + var tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetGroupOnSystem(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestUpdateGroupMembershipRequestable + tkh = keyhubmodel.NewRequestUpdateGroupMembershipRequest() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -8610,13 +6163,6 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec diags.Append(d...) tkh.SetUpdateGroupMembershipType(val) } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8626,60 +6172,9 @@ func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } + var tkh keyhubmodel.RequestVerifyInternalAccountRequestable + tkh = keyhubmodel.NewRequestVerifyInternalAccountRequest() tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8689,7 +6184,8 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount() + var tkh keyhubmodel.ServiceaccountServiceAccountable + tkh = keyhubmodel.NewServiceaccountServiceAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8751,7 +6247,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8796,7 +6293,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { tkh, d := tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8815,7 +6313,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -8830,7 +6329,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { tkh, d := tfObjectToTKHRSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8849,7 +6349,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8886,7 +6387,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -8905,7 +6407,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + var tkh keyhubmodel.ServiceaccountServiceAccountStatusable + tkh = keyhubmodel.NewServiceaccountServiceAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -8916,7 +6419,8 @@ func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -8944,7 +6448,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats() tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) @@ -8964,7 +6469,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() return tkh, diags } @@ -8973,7 +6479,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() return tkh, diags } @@ -8983,7 +6490,8 @@ func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleStringValue() + var tkh keyhubmodel.SimpleStringValueable + tkh = keyhubmodel.NewSimpleStringValue() tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -8994,7 +6502,8 @@ func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleVersionInfo() + var tkh keyhubmodel.SimpleVersionInfoable + tkh = keyhubmodel.NewSimpleVersionInfo() { val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { return int32(val.(basetypes.Int64Value).ValueInt64()) @@ -9012,7 +6521,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder() + var tkh keyhubmodel.VaultDeletedVaultHolderable + tkh = keyhubmodel.NewVaultDeletedVaultHolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9054,7 +6564,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + var tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable + tkh = keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { tkh, d := tfObjectToTKHRSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9073,7 +6584,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + var tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable + tkh = keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9093,7 +6605,8 @@ func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + var tkh keyhubmodel.VaultDeletedVaultRecoveryable + tkh = keyhubmodel.NewVaultDeletedVaultRecovery() tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) { @@ -9110,7 +6623,8 @@ func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord() + var tkh keyhubmodel.VaultMoveVaultRecordable + tkh = keyhubmodel.NewVaultMoveVaultRecord() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -9142,7 +6656,8 @@ func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + var tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable + tkh = keyhubmodel.NewVaultMoveVaultRecord_shareDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -9154,7 +6669,8 @@ func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVault() + var tkh keyhubmodel.VaultVaultable + tkh = keyhubmodel.NewVaultVault() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9192,7 +6708,8 @@ func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultHolder() + var tkh keyhubmodel.VaultVaultHolderable + tkh = keyhubmodel.NewVaultVaultHolder() return tkh, diags } @@ -9202,7 +6719,8 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9274,7 +6792,8 @@ func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9293,7 +6812,8 @@ func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimer() + var tkh keyhubmodel.VaultVaultRecordPrimerable + tkh = keyhubmodel.NewVaultVaultRecordPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9333,7 +6853,8 @@ func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -9352,7 +6873,8 @@ func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordSecrets() + var tkh keyhubmodel.VaultVaultRecordSecretsable + tkh = keyhubmodel.NewVaultVaultRecordSecrets() tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) @@ -9367,7 +6889,8 @@ func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShare() + var tkh keyhubmodel.VaultVaultRecordShareable + 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) }) @@ -9383,7 +6906,8 @@ func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + var tkh keyhubmodel.VaultVaultRecordShareSummaryable + tkh = keyhubmodel.NewVaultVaultRecordShareSummary() { val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { tkh, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9407,7 +6931,8 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + var tkh keyhubmodel.VaultVaultRecord_additionalObjectsable + tkh = keyhubmodel.NewVaultVaultRecord_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9441,6 +6966,9 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "launchpad.VaultRecordLaunchpadTile"}) + } } { val, d := tfObjectToTKHRSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) @@ -9456,7 +6984,8 @@ func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecovery() + var tkh keyhubmodel.VaultVaultRecoveryable + tkh = keyhubmodel.NewVaultVaultRecovery() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -9472,7 +7001,8 @@ func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlock() + var tkh keyhubmodel.VaultVaultUnlockable + tkh = keyhubmodel.NewVaultVaultUnlock() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -9483,7 +7013,8 @@ func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlockResponse() + var tkh keyhubmodel.VaultVaultUnlockResponseable + tkh = keyhubmodel.NewVaultVaultUnlockResponse() { val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) diags.Append(d...) @@ -9499,7 +7030,8 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook() + var tkh keyhubmodel.WebhookWebhookable + tkh = keyhubmodel.NewWebhookWebhook() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9601,7 +7133,8 @@ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9651,7 +7184,8 @@ func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { tkh, d := tfObjectToTKHRSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9670,7 +7204,8 @@ func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + var tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9685,7 +7220,8 @@ func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { tkh, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9704,7 +7240,8 @@ func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookNameUuid() + var tkh keyhubmodel.WebhookWebhookNameUuidable + tkh = keyhubmodel.NewWebhookWebhookNameUuid() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHRSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) @@ -9721,7 +7258,8 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookPush() + var tkh keyhubmodel.WebhookWebhookPushable + tkh = keyhubmodel.NewWebhookWebhookPush() { val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9820,7 +7358,8 @@ func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + var tkh keyhubmodel.WebhookWebhook_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhook_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 72dc632..473000d 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -1261,6 +1261,21 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["technical_administrator"] = val } + if _, ok := tkh.(keyhubmodel.ClientOAuth2Clientable); ok { + val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.(keyhubmodel.ClientOAuth2Clientable)) + diags.Append(d...) + obj["o_auth2_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientLdapClientable); ok { + val, d := tkhToTFObjectDSClientLdapClient(false, tkh.(keyhubmodel.ClientLdapClientable)) + diags.Append(d...) + obj["ldap_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientSaml2Clientable); ok { + val, d := tkhToTFObjectDSClientSaml2Client(false, tkh.(keyhubmodel.ClientSaml2Clientable)) + diags.Append(d...) + obj["saml2_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1401,67 +1416,15 @@ func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapCli } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) diags.Append(d...) obj["client_certificate"] = val } obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) diags.Append(d...) obj["shared_secret"] = val } @@ -1485,62 +1448,10 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } { elemType := attrs["account_permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -1548,7 +1459,7 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["account_permissions"] = val } { - val, d := tkhToTFObjectDSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1560,7 +1471,7 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) diags.Append(d...) obj["shared_secret"] = val } @@ -1807,60 +1718,8 @@ func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } { - val, d := tkhToTFObjectDSClientSaml2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1952,6 +1811,26 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + if _, ok := tkh.(keyhubmodel.DirectoryInternalDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkh.(keyhubmodel.DirectoryInternalDirectoryable)) + diags.Append(d...) + obj["internal_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryLDAPDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkh.(keyhubmodel.DirectoryLDAPDirectoryable)) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryOIDCDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkh.(keyhubmodel.DirectoryOIDCDirectoryable)) + diags.Append(d...) + obj["o_id_c_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable)) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2178,55 +2057,8 @@ func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Dir } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetOwner()) diags.Append(d...) obj["owner"] = val } @@ -2249,66 +2081,19 @@ func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) diags.Append(d...) - obj["links"] = val + obj["client_certificate"] = val } + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["dialect"] = stringerToTF(tkh.GetDialect()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val + obj["failover_trusted_certificate"] = val } obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) @@ -2318,7 +2103,7 @@ func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) diags.Append(d...) obj["trusted_certificate"] = val } @@ -2341,53 +2126,6 @@ func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel. } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2407,53 +2145,6 @@ func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) @@ -4205,6 +3896,21 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["vault_record"] = val } + if _, ok := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable); ok { + val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable)) + diags.Append(d...) + obj["sso_application_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable); ok { + val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable)) + diags.Append(d...) + obj["vault_record_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable); ok { + val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable)) + diags.Append(d...) + obj["manual_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -4316,59 +4022,6 @@ func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.L } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } obj["title"] = types.StringPointerValue(tkh.GetTitle()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) @@ -4390,59 +4043,6 @@ func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhu } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) @@ -4463,72 +4063,19 @@ func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmo } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse - } else { - attrs = licenseKeyHubLicenseInfoAttrTypesDS + attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -5441,67 +4988,8 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -5509,13 +4997,13 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) diags.Append(d...) obj["client_certificate"] = val } obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) obj["failover_trusted_certificate"] = val } @@ -5527,7 +5015,7 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) diags.Append(d...) obj["trusted_certificate"] = val } @@ -6043,97 +5531,6 @@ func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val - } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) objVal, d := types.ObjectValue(attrs, obj) @@ -6260,84 +5657,150 @@ func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) diags.Append(d...) - obj["links"] = val + obj["directory"] = val } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) diags.Append(d...) - obj["organizational_unit"] = val + obj["directory"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesDS } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetClient()) diags.Append(d...) - obj["owner"] = val + obj["client"] = val } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) diags.Append(d...) - obj["technical_administrator"] = val + obj["numbering"] = val } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) diags.Append(d...) obj["directory"] = val } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse + attrs = provisioningProvisionedSystemAttrTypesDSRecurse } else { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS + attrs = provisioningProvisionedSystemAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6403,40 +5866,94 @@ func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable)) diags.Append(d...) - obj["directory"] = val + obj["provisioned_azure_sync_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable)) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable)) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable); ok { + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable)) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable)) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPable)) + diags.Append(d...) + obj["provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedADable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkh.(keyhubmodel.ProvisioningProvisionedADable)) + diags.Append(d...) + obj["provisioned_a_d"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable)) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse } else { - attrs = provisioningProvisionedAzureTenantAttrTypesDS + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) - obj["additional_objects"] = val - } + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -6466,46 +5983,48 @@ func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubm } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["technical_administrator"] = val + obj["items"] = val } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse + attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesDS + attrs = provisioningProvisionedSystemSyncLogAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6514,7 +6033,7 @@ func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -6539,42 +6058,39 @@ func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSClientLdapClient(false, tkh.GetClient()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["client"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6582,116 +6098,78 @@ func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPAttrTypesDSRecurse + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse } else { - attrs = provisioningProvisionedLDAPAttrTypesDS + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) diags.Append(d...) - obj["owner"] = val + obj["account"] = val } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["technical_administrator"] = val + obj["audit"] = val } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - obj["attributes"] = val + obj["issued_permissions"] = val } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) diags.Append(d...) - obj["client_certificate"] = val + obj["management_permissions"] = val } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - obj["failover_trusted_certificate"] = val + obj["markers"] = val } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) diags.Append(d...) - obj["trusted_certificate"] = val + obj["statistics"] = val } - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) diags.Append(d...) - obj["numbering"] = val + obj["supported_group_types"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6699,175 +6177,134 @@ func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse + attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS + attrs = provisioningProvisioningManagementPermissionsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = provisioningProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningProvisioningStatusAttrTypesDS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["groups"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) + obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningTokenPasswordAttrTypesDSRecurse + } else { + attrs = provisioningTokenPasswordAttrTypesDS } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractApplicationModificationRequestAttrTypesDS } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(recurse, tkh.GetApplication()) diags.Append(d...) - obj["directory"] = val + obj["application"] = val } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemAttrTypesDSRecurse + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemAttrTypesDS + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) obj["organizational_unit"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6875,14 +6312,9 @@ func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) diags.Append(d...) - obj["items"] = val + obj["system"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6890,13 +6322,13 @@ func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesDS + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6904,156 +6336,84 @@ func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) diags.Append(d...) - obj["organizational_unit"] = val + obj["access_duration"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDS + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse + attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS + attrs = requestAcceptModificationRequestParametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse + attrs = requestAddGroupAdminRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS + attrs = requestAddGroupAdminRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7061,336 +6421,192 @@ func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recur obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetNewAdmin()) diags.Append(d...) - obj["audit"] = val + obj["new_admin"] = val } + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse + attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS + attrs = requestCreateGroupOnSystemRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = val - } - obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) - { - val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) - diags.Append(d...) - obj["management_permissions"] = val - } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) - diags.Append(d...) - obj["statistics"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) - diags.Append(d...) - obj["supported_group_types"] = val - } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse + attrs = requestCreateGroupRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDS + attrs = requestCreateGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) - obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) - obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisioningStatusAttrTypesDSRecurse + attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisioningStatusAttrTypesDS + attrs = requestCreateServiceAccountRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) - obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningTokenPasswordAttrTypesDSRecurse + attrs = requestDisable2FARequestAttrTypesDSRecurse } else { - attrs = provisioningTokenPasswordAttrTypesDS + attrs = requestDisable2FARequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["subject"] = types.StringPointerValue(tkh.GetSubject()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse } else { - attrs = requestAbstractApplicationModificationRequestAttrTypesDS + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse + attrs = requestExtendAccessRequestAttrTypesDSRecurse } else { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS + attrs = requestExtendAccessRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + attrs = requestGrantAccessRequestAttrTypesDSRecurse + } else { + attrs = requestGrantAccessRequestAttrTypesDS } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse + attrs = requestGrantApplicationRequestAttrTypesDSRecurse } else { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS + attrs = requestGrantApplicationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesDS } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + + obj := make(map[string]attr.Value) + obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) diags.Append(d...) obj["system"] = val } @@ -7400,23 +6616,24 @@ func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse return objVal, diags } -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse + attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse } else { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS + attrs = requestGrantGroupOnSystemRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) - obj["access_duration"] = val + obj["group_on_system"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7424,55 +6641,67 @@ func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh return objVal, diags } -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse } else { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse + attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse } else { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS + attrs = requestGrantServiceAccountGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh.GetServiceAccount()) + diags.Append(d...) + obj["service_account"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse + attrs = requestJoinGroupRequestAttrTypesDSRecurse } else { - attrs = requestAcceptModificationRequestParametersAttrTypesDS + attrs = requestJoinGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7485,81 +6714,32 @@ func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh return objVal, diags } -func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAddGroupAdminRequestAttrTypesDSRecurse + attrs = requestJoinVaultRequestAttrTypesDSRecurse } else { - attrs = requestAddGroupAdminRequestAttrTypesDS + attrs = requestJoinVaultRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetNewAdmin()) - diags.Append(d...) - obj["new_admin"] = val - } - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse + attrs = requestModificationRequestAttrTypesDSRecurse } else { - attrs = requestCreateGroupOnSystemRequestAttrTypesDS + attrs = requestModificationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7609,1617 +6789,472 @@ func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmo obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + if _, ok := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable); ok { + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable)) diags.Append(d...) - obj["system"] = val + obj["abstract_organizational_unit_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkh.(keyhubmodel.RequestCreateGroupRequestable)) + diags.Append(d...) + obj["create_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable); ok { + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable)) + diags.Append(d...) + obj["abstract_provisioned_system_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantAccessRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkh.(keyhubmodel.RequestGrantAccessRequestable)) + diags.Append(d...) + obj["grant_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkh.(keyhubmodel.RequestRemoveGroupRequestable)) + diags.Append(d...) + obj["remove_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable); ok { + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable)) + diags.Append(d...) + obj["abstract_application_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable); ok { + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable)) + diags.Append(d...) + obj["remove_provisioned_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable)) + diags.Append(d...) + obj["transfer_application_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestPasswordResetRequestable); ok { + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkh.(keyhubmodel.RequestPasswordResetRequestable)) + diags.Append(d...) + obj["password_reset_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkh.(keyhubmodel.RequestGrantClientPermissionRequestable)) + diags.Append(d...) + obj["grant_client_permission_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRevokeAdminRequestable); ok { + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkh.(keyhubmodel.RequestRevokeAdminRequestable)) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable)) + diags.Append(d...) + obj["transfer_service_account_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkh.(keyhubmodel.RequestSetupNestedGroupRequestable)) + diags.Append(d...) + obj["setup_nested_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkh.(keyhubmodel.RequestJoinGroupRequestable)) + diags.Append(d...) + obj["join_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestExtendAccessRequestable); ok { + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkh.(keyhubmodel.RequestExtendAccessRequestable)) + diags.Append(d...) + obj["extend_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_content_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable)) + diags.Append(d...) + obj["setup_authorizing_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable)) + diags.Append(d...) + obj["transfer_auditor_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantApplicationRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkh.(keyhubmodel.RequestGrantApplicationRequestable)) + diags.Append(d...) + obj["grant_application_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_group_on_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestDisable2FARequestable); ok { + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkh.(keyhubmodel.RequestDisable2FARequestable)) + diags.Append(d...) + obj["disable2fa_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable)) + diags.Append(d...) + obj["grant_service_account_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable); ok { + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable)) + diags.Append(d...) + obj["update_group_membership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable); ok { + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable)) + diags.Append(d...) + obj["verify_internal_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable)) + diags.Append(d...) + obj["create_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestReviewAuditRequestable); ok { + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkh.(keyhubmodel.RequestReviewAuditRequestable)) + diags.Append(d...) + obj["review_audit_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable)) + diags.Append(d...) + obj["transfer_organizational_unit_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAddGroupAdminRequestable); ok { + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkh.(keyhubmodel.RequestAddGroupAdminRequestable)) + diags.Append(d...) + obj["add_group_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable)) + diags.Append(d...) + obj["transfer_application_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinVaultRequestable); ok { + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkh.(keyhubmodel.RequestJoinVaultRequestable)) + diags.Append(d...) + obj["join_vault_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable)) + diags.Append(d...) + obj["enable_technical_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable); ok { + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkh.(keyhubmodel.RequestCreateServiceAccountRequestable)) + diags.Append(d...) + obj["create_service_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable); ok { + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable)) + diags.Append(d...) + obj["remove_organizational_unit_request"] = val } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateGroupRequestAttrTypesDSRecurse + attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestCreateGroupRequestAttrTypesDS + attrs = requestModificationRequestLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + obj["items"] = val } - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse + attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestCreateServiceAccountRequestAttrTypesDS + attrs = requestModificationRequest_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["group"] = val + obj["audit"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) diags.Append(d...) - obj["system"] = val + obj["reset_status"] = val } - obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestDisable2FARequestAttrTypesDSRecurse + attrs = requestPasswordResetRequestAttrTypesDSRecurse } else { - attrs = requestDisable2FARequestAttrTypesDS + attrs = requestPasswordResetRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse + } else { + attrs = requestPasswordResetRequestStatusAttrTypesDS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) + obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["managers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + obj["managers"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) + obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse + attrs = requestRemoveGroupRequestAttrTypesDSRecurse } else { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS + attrs = requestRemoveGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + + obj := make(map[string]attr.Value) + obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestExtendAccessRequestAttrTypesDSRecurse + attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse } else { - attrs = requestExtendAccessRequestAttrTypesDS + attrs = requestRemoveProvisionedSystemRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = requestReviewAuditRequestAttrTypesDSRecurse + } else { + attrs = requestReviewAuditRequestAttrTypesDS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRevokeAdminRequestAttrTypesDSRecurse + } else { + attrs = requestRevokeAdminRequestAttrTypesDS } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAdmin()) diags.Append(d...) - obj["group"] = val + obj["admin"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantAccessRequestAttrTypesDSRecurse + attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse } else { - attrs = requestGrantAccessRequestAttrTypesDS + attrs = requestSetupAuthorizingGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } + obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetRequestingGroup()) diags.Append(d...) - obj["links"] = val + obj["requesting_group"] = val } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse + } else { + attrs = requestSetupNestedGroupRequestAttrTypesDS } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + + obj := make(map[string]attr.Value) + obj["account_action"] = stringerToTF(tkh.GetAccountAction()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetRequestingGroup()) diags.Append(d...) - obj["group"] = val + obj["requesting_group"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantApplicationRequestAttrTypesDSRecurse + attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse } else { - attrs = requestGrantApplicationRequestAttrTypesDS + attrs = requestTransferApplicationAdministrationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse - } else { - attrs = requestGrantClientPermissionRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse - } else { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinGroupRequestAttrTypesDSRecurse - } else { - attrs = requestJoinGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinVaultRequestAttrTypesDSRecurse - } else { - attrs = requestJoinVaultRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestAttrTypesDSRecurse - } else { - attrs = requestModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse - } else { - attrs = requestModificationRequestLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse - } else { - attrs = requestModificationRequest_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) - diags.Append(d...) - obj["reset_status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestAttrTypesDSRecurse - } else { - attrs = requestPasswordResetRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse - } else { - attrs = requestPasswordResetRequestStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) - { - elemType := attrs["managers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["managers"] = val - } - obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveGroupRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestReviewAuditRequestAttrTypesDSRecurse - } else { - attrs = requestReviewAuditRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRevokeAdminRequestAttrTypesDSRecurse - } else { - attrs = requestRevokeAdminRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAdmin()) - diags.Append(d...) - obj["admin"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse - } else { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) - diags.Append(d...) - obj["requesting_group"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse - } else { - attrs = requestSetupNestedGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["account_action"] = stringerToTF(tkh.GetAccountAction()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) - diags.Append(d...) - obj["requesting_group"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9239,54 +7274,6 @@ func tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9306,49 +7293,6 @@ func tkhToTFObjectDSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubm } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9368,51 +7312,8 @@ func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, t } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -9428,196 +7329,52 @@ func tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bo if recurse { attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse } else { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse } else { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags @@ -9636,54 +7393,6 @@ func tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(recurse boo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9703,51 +7412,8 @@ func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse b } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh.GetServiceAccount()) diags.Append(d...) obj["service_account"] = val } @@ -9770,51 +7436,8 @@ func tkhToTFObjectDSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccountToUpdate()) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccountToUpdate()) diags.Append(d...) obj["account_to_update"] = val } @@ -9842,49 +7465,6 @@ func tkhToTFObjectDSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index f4cf2cd..7db3600 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -1178,6 +1178,21 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + if _, ok := tkh.(keyhubmodel.ClientOAuth2Clientable); ok { + val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.(keyhubmodel.ClientOAuth2Clientable)) + diags.Append(d...) + obj["o_auth2_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientLdapClientable); ok { + val, d := tkhToTFObjectRSClientLdapClient(false, tkh.(keyhubmodel.ClientLdapClientable)) + diags.Append(d...) + obj["ldap_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientSaml2Clientable); ok { + val, d := tkhToTFObjectRSClientSaml2Client(false, tkh.(keyhubmodel.ClientSaml2Clientable)) + diags.Append(d...) + obj["saml2_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1324,49 +1339,6 @@ func tkhToTFObjectRSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapCli } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) @@ -1391,53 +1363,10 @@ func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { elemType := attrs["account_permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(false, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -1445,7 +1374,7 @@ func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["account_permissions"] = val } { - val, d := tkhToTFObjectRSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectRSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1682,51 +1611,8 @@ func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { - val, d := tkhToTFObjectRSClientSaml2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectRSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1809,6 +1695,26 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + if _, ok := tkh.(keyhubmodel.DirectoryInternalDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkh.(keyhubmodel.DirectoryInternalDirectoryable)) + diags.Append(d...) + obj["internal_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryLDAPDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkh.(keyhubmodel.DirectoryLDAPDirectoryable)) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryOIDCDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkh.(keyhubmodel.DirectoryOIDCDirectoryable)) + diags.Append(d...) + obj["o_id_c_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable)) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2035,44 +1941,6 @@ func tkhToTFObjectRSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Dir } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) objVal, d := types.ObjectValue(attrs, obj) @@ -2093,44 +1961,6 @@ func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) @@ -2164,101 +1994,25 @@ func tkhToTFObjectRSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel. } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = directoryOIDCDirectoryAttrTypesRSRecurse + } else { + attrs = directoryOIDCDirectoryAttrTypesRS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryOIDCDirectoryAttrTypesRSRecurse - } else { - attrs = directoryOIDCDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + if tkh == nil { + return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) @@ -3881,6 +3635,21 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp obj["logo"] = val } obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + if _, ok := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable); ok { + val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable)) + diags.Append(d...) + obj["sso_application_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable); ok { + val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable)) + diags.Append(d...) + obj["vault_record_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable); ok { + val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable)) + diags.Append(d...) + obj["manual_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3992,46 +3761,6 @@ func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.L } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) obj["title"] = types.StringPointerValue(tkh.GetTitle()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) @@ -4053,46 +3782,6 @@ func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhu } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) @@ -4113,46 +3802,6 @@ func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5017,50 +4666,8 @@ func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -5580,78 +5187,16 @@ func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { attrs = provisioningProvisionedAccountAttrTypesRSRecurse } else { @@ -5743,48 +5288,6 @@ func tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) @@ -5806,65 +5309,117 @@ func tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, } obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetClient()) diags.Append(d...) - obj["links"] = val + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) diags.Append(d...) - obj["permissions"] = val + obj["numbering"] = val } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse + attrs = provisioningProvisionedSystemAttrTypesRSRecurse } else { - attrs = provisioningProvisionedAzureTenantAttrTypesRS + attrs = provisioningProvisionedSystemAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -5913,75 +5468,74 @@ func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubm obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable)) + diags.Append(d...) + obj["provisioned_azure_sync_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable)) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable)) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable); ok { + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable)) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable)) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPable)) + diags.Append(d...) + obj["provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedADable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkh.(keyhubmodel.ProvisioningProvisionedADable)) + diags.Append(d...) + obj["provisioned_a_d"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable)) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesRS + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSClientLdapClient(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -5989,26 +5543,19 @@ func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPAttrTypesRSRecurse + attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse } else { - attrs = provisioningProvisionedLDAPAttrTypesRS + attrs = provisioningProvisionedSystemPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -6034,119 +5581,46 @@ func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_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()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) - { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) - diags.Append(d...) - obj["numbering"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemAttrTypesRSRecurse + attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemAttrTypesRS + attrs = provisioningProvisionedSystemSyncLogAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6155,7 +5629,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -6180,34 +5654,23 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6216,8 +5679,8 @@ func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) diags.Append(d...) return val }) @@ -6230,13 +5693,13 @@ func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesRS + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6244,43 +5707,23 @@ func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - 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["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6288,149 +5731,19 @@ func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse b obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) + val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) diags.Append(d...) - obj["items"] = val + obj["account"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRS + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = val + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) + diags.Append(d...) + obj["issued_permissions"] = val } obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { @@ -6545,40 +5858,6 @@ func tkhToTFObjectRSRequestAbstractApplicationModificationRequest(recurse bool, } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) @@ -6599,40 +5878,6 @@ func tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(recurse } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) objVal, d := types.ObjectValue(attrs, obj) @@ -6653,40 +5898,6 @@ func tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(recurse } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -6792,40 +6003,6 @@ func tkhToTFObjectRSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Re } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) @@ -6847,41 +6024,6 @@ func tkhToTFObjectRSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) @@ -6904,41 +6046,6 @@ func tkhToTFObjectRSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) @@ -6959,41 +6066,6 @@ func tkhToTFObjectRSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubm } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) @@ -7014,40 +6086,6 @@ func tkhToTFObjectRSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Reque } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["subject"] = types.StringPointerValue(tkh.GetSubject()) objVal, d := types.ObjectValue(attrs, obj) @@ -7068,40 +6106,6 @@ func tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(recurse bool, tk } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7121,40 +6125,6 @@ func tkhToTFObjectRSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Req } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) objVal, d := types.ObjectValue(attrs, obj) @@ -7175,40 +6145,6 @@ func tkhToTFObjectRSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7228,95 +6164,25 @@ func tkhToTFObjectRSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse - } else { - attrs = requestGrantClientPermissionRequestAttrTypesRS + attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) @@ -7338,43 +6204,9 @@ func tkhToTFObjectRSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmod } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -7397,43 +6229,9 @@ func tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh ke } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -7456,42 +6254,8 @@ func tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(recurse bool, tkh key } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -7515,40 +6279,6 @@ func tkhToTFObjectRSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.Reques } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7568,40 +6298,6 @@ func tkhToTFObjectRSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.Reques } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7655,15 +6351,200 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type + if _, ok := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable); ok { + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable)) + diags.Append(d...) + obj["abstract_organizational_unit_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkh.(keyhubmodel.RequestCreateGroupRequestable)) + diags.Append(d...) + obj["create_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable); ok { + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable)) + diags.Append(d...) + obj["abstract_provisioned_system_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantAccessRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkh.(keyhubmodel.RequestGrantAccessRequestable)) + diags.Append(d...) + obj["grant_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkh.(keyhubmodel.RequestRemoveGroupRequestable)) + diags.Append(d...) + obj["remove_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable); ok { + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable)) + diags.Append(d...) + obj["abstract_application_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable); ok { + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable)) + diags.Append(d...) + obj["remove_provisioned_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable)) + diags.Append(d...) + obj["transfer_application_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestPasswordResetRequestable); ok { + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkh.(keyhubmodel.RequestPasswordResetRequestable)) + diags.Append(d...) + obj["password_reset_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkh.(keyhubmodel.RequestGrantClientPermissionRequestable)) + diags.Append(d...) + obj["grant_client_permission_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRevokeAdminRequestable); ok { + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkh.(keyhubmodel.RequestRevokeAdminRequestable)) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable)) + diags.Append(d...) + obj["transfer_service_account_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkh.(keyhubmodel.RequestSetupNestedGroupRequestable)) + diags.Append(d...) + obj["setup_nested_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkh.(keyhubmodel.RequestJoinGroupRequestable)) + diags.Append(d...) + obj["join_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestExtendAccessRequestable); ok { + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkh.(keyhubmodel.RequestExtendAccessRequestable)) + diags.Append(d...) + obj["extend_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_content_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable)) + diags.Append(d...) + obj["setup_authorizing_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable)) + diags.Append(d...) + obj["transfer_auditor_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantApplicationRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkh.(keyhubmodel.RequestGrantApplicationRequestable)) + diags.Append(d...) + obj["grant_application_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_group_on_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestDisable2FARequestable); ok { + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkh.(keyhubmodel.RequestDisable2FARequestable)) + diags.Append(d...) + obj["disable2fa_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable)) + diags.Append(d...) + obj["grant_service_account_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable); ok { + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable)) + diags.Append(d...) + obj["update_group_membership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable); ok { + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable)) + diags.Append(d...) + obj["verify_internal_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable)) + diags.Append(d...) + obj["create_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestReviewAuditRequestable); ok { + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkh.(keyhubmodel.RequestReviewAuditRequestable)) + diags.Append(d...) + obj["review_audit_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable)) + diags.Append(d...) + obj["transfer_organizational_unit_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAddGroupAdminRequestable); ok { + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkh.(keyhubmodel.RequestAddGroupAdminRequestable)) + diags.Append(d...) + obj["add_group_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable)) + diags.Append(d...) + obj["transfer_application_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinVaultRequestable); ok { + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkh.(keyhubmodel.RequestJoinVaultRequestable)) + diags.Append(d...) + obj["join_vault_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable)) + diags.Append(d...) + obj["enable_technical_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable); ok { + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkh.(keyhubmodel.RequestCreateServiceAccountRequestable)) + diags.Append(d...) + obj["create_service_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable); ok { + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable)) + diags.Append(d...) + obj["remove_organizational_unit_request"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { attrs = requestModificationRequestLinkableWrapperAttrTypesRSRecurse } else { @@ -7737,40 +6618,6 @@ func tkhToTFObjectRSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Re } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) @@ -7823,40 +6670,6 @@ func tkhToTFObjectRSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) @@ -7877,41 +6690,6 @@ func tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh key } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) objVal, d := types.ObjectValue(attrs, obj) @@ -7932,41 +6710,6 @@ func tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) objVal, d := types.ObjectValue(attrs, obj) @@ -7987,40 +6730,6 @@ func tkhToTFObjectRSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8040,40 +6749,6 @@ func tkhToTFObjectRSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) objVal, d := types.ObjectValue(attrs, obj) @@ -8094,40 +6769,6 @@ func tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) @@ -8150,40 +6791,6 @@ func tkhToTFObjectRSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["account_action"] = stringerToTF(tkh.GetAccountAction()) obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) @@ -8206,41 +6813,6 @@ func tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(recurse bool } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8260,41 +6832,6 @@ func tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8314,40 +6851,6 @@ func tkhToTFObjectRSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubm } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8360,49 +6863,15 @@ func tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, t if recurse { attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse } else { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -8425,41 +6894,6 @@ func tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8479,41 +6913,6 @@ func tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(recurs } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8533,41 +6932,6 @@ func tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8587,41 +6951,6 @@ func tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(recurse boo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8641,40 +6970,6 @@ func tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(recurse b } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) objVal, d := types.ObjectValue(attrs, obj) @@ -8695,40 +6990,6 @@ func tkhToTFObjectRSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) @@ -8754,40 +7015,6 @@ func tkhToTFObjectRSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) objVal, d := types.ObjectValue(attrs, obj)