diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md index f774df5..43d1901 100644 --- a/docs/data-sources/client.md +++ b/docs/data-sources/client.md @@ -48,6 +48,7 @@ Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `groupclients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) - `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - `vault_record_count` (Number) @@ -584,6 +585,16 @@ Read-Only: + +### Nested Schema for `additional_objects.secret` + +Read-Only: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + ### Nested Schema for `additional_objects.tile` diff --git a/docs/data-sources/serviceaccount.md b/docs/data-sources/serviceaccount.md index 0d21e3d..4d662d0 100644 --- a/docs/data-sources/serviceaccount.md +++ b/docs/data-sources/serviceaccount.md @@ -44,6 +44,7 @@ Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) ### Nested Schema for `additional_objects.audit` @@ -103,6 +104,16 @@ Read-Only: + +### Nested Schema for `additional_objects.secret` + +Read-Only: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + ### Nested Schema for `links` diff --git a/docs/data-sources/vaultrecord.md b/docs/data-sources/vaultrecord.md index 66e7066..f77df22 100644 --- a/docs/data-sources/vaultrecord.md +++ b/docs/data-sources/vaultrecord.md @@ -46,6 +46,7 @@ Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--parent)) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) - `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) @@ -98,6 +99,22 @@ Read-Only: + +### Nested Schema for `additional_objects.password_metadata` + +Read-Only: + +- `dictionary` (Boolean) +- `duplicate` (Boolean) +- `hash` (String) +- `length` (Number) +- `lower_count` (Number) +- `number_count` (Number) +- `special_count` (Number) +- `strength` (Number) +- `upper_count` (Number) + + ### Nested Schema for `additional_objects.secret` diff --git a/docs/resources/group.md b/docs/resources/group.md index 3289c85..d2c5c60 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -32,10 +32,8 @@ Group resource - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -49,6 +47,8 @@ Group resource - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `uuid` (String) @@ -168,6 +168,9 @@ Optional: - `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--client)) - `for_group_uuid` (String) - `for_system_uuid` (String) + +Read-Only: + - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions)) @@ -251,10 +254,8 @@ Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--o_auth2_client)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -262,6 +263,8 @@ Optional: Read-Only: - `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) - `sso_application` (Boolean) - `uuid` (String) @@ -280,17 +283,6 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -328,17 +320,6 @@ Optional: - -### Nested Schema for `additional_objects.administered_clients.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -357,6 +338,28 @@ Optional: + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -380,9 +383,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_sync_ldap_directory)) @@ -401,6 +402,8 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) - `uuid` (String) @@ -433,28 +436,6 @@ Optional: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.administered_systems.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.administered_systems.items.uuid` @@ -541,16 +522,16 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` Optional: @@ -561,7 +542,7 @@ Optional: -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` Optional: @@ -582,6 +563,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -622,10 +625,8 @@ Optional: - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -639,6 +640,8 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) - `uuid` (String) @@ -646,8 +649,11 @@ Read-Only: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--links)) - `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--permissions)) @@ -710,18 +716,18 @@ Optional: Optional: - `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) - `technical_administrator_uuid` (String) Read-Only: - `client_uuid` (String) - `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) -### Nested Schema for `additional_objects.clients.items.group_uuid` +### Nested Schema for `additional_objects.clients.items.permissions` Optional: @@ -732,7 +738,7 @@ Optional: -### Nested Schema for `additional_objects.clients.items.group_uuid` +### Nested Schema for `additional_objects.clients.items.permissions` Optional: @@ -765,9 +771,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_sync_ldap_directory)) @@ -786,6 +790,8 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) - `uuid` (String) @@ -818,28 +824,6 @@ Optional: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` @@ -926,16 +910,16 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` Optional: @@ -946,7 +930,7 @@ Optional: -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` Optional: @@ -967,6 +951,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -1012,14 +1018,27 @@ Optional: - `directory_account_directory_summary_type` (String) - `domain_restriction` (String) - `fully_resolved_issuer` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) - `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) - `username_customizable` (Boolean) +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) + + +### Nested Schema for `additional_objects.helpdesk.items.permissions` + +Optional: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) + + -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` +### Nested Schema for `additional_objects.helpdesk.items.permissions` Optional: @@ -1030,7 +1049,7 @@ Optional: -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` +### Nested Schema for `additional_objects.helpdesk.items.permissions` Optional: @@ -1040,16 +1059,6 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` - -Optional: - -- `accounts` (Number) -- `reason` (String) -- `status` (String) - - @@ -1147,10 +1156,8 @@ Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--o_auth2_client)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -1158,6 +1165,8 @@ Optional: Read-Only: - `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) - `sso_application` (Boolean) - `uuid` (String) @@ -1176,17 +1185,6 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_clients.items.uuid` @@ -1224,17 +1222,6 @@ Optional: - -### Nested Schema for `additional_objects.owned_clients.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_clients.items.uuid` @@ -1253,6 +1240,28 @@ Optional: + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -1279,16 +1288,16 @@ Optional: - `helpdesk_group_uuid` (String) - `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--internal_directory)) - `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--l_d_a_p_directory)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) - `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--maintenance_directory)) - `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--o_id_c_directory)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) - `restrict2fa` (Boolean) - `username_customizable` (Boolean) Read-Only: - `account_validity_supported` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) - `uuid` (String) @@ -1323,17 +1332,6 @@ Optional: - `trusted_certificate_uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_directories.items.uuid` @@ -1362,6 +1360,17 @@ Read-Only: - `fully_resolved_issuer` (String) + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `additional_objects.owned_directories.items.uuid` @@ -1395,13 +1404,16 @@ Required: Optional: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) - `short_name_in_system` (String) - `system_uuid` (String) +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) + -### Nested Schema for `additional_objects.owned_groups_on_system.items.system_uuid` +### Nested Schema for `additional_objects.owned_groups_on_system.items.permissions` Optional: @@ -1412,7 +1424,7 @@ Optional: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system_uuid` +### Nested Schema for `additional_objects.owned_groups_on_system.items.permissions` Optional: @@ -1442,13 +1454,13 @@ Required: Optional: - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) - `parent_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) Read-Only: - `depth` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) - `uuid` (String) @@ -1496,9 +1508,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_sync_ldap_directory)) @@ -1517,6 +1527,8 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) - `uuid` (String) @@ -1549,28 +1561,6 @@ Optional: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.owned_systems.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_systems.items.uuid` @@ -1657,16 +1647,16 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` Optional: @@ -1677,7 +1667,7 @@ Optional: -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` Optional: @@ -1698,6 +1688,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -1718,15 +1730,15 @@ Optional: - `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--accounts)) - `comment` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) Read-Only: - `created_at` (String) - `created_by` (String) - `group_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) - `name_on_audit` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `submitted_at` (String) @@ -1740,8 +1752,6 @@ Optional: - `account_uuid` (String) - `action` (String) - `comment` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) - `rights` (String) Read-Only: @@ -1752,7 +1762,9 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) - `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) - `username` (String) @@ -1822,13 +1834,13 @@ Optional: - `active` (Boolean) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) - `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) - `technical_administrator_uuid` (String) Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) - `username` (String) - `uuid` (String) @@ -1869,38 +1881,16 @@ Optional: Optional: - `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) Read-Only: - `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_on_system)) - `group_uuid` (String) - - -### Nested Schema for `additional_objects.systems.items.group_uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.systems.items.group_uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) -### Nested Schema for `additional_objects.systems.items.group_uuid` +### Nested Schema for `additional_objects.systems.items.permissions` Required: @@ -1911,13 +1901,16 @@ Required: Optional: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_uuid--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_uuid--permissions)) - `short_name_in_system` (String) - `system_uuid` (String) - -### Nested Schema for `additional_objects.systems.items.group_uuid.links` +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) + + +### Nested Schema for `additional_objects.systems.items.permissions.links` Optional: @@ -1927,8 +1920,8 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.group_uuid.permissions` + +### Nested Schema for `additional_objects.systems.items.permissions.permissions` Optional: @@ -1939,21 +1932,8 @@ Optional: - - - -### Nested Schema for `additional_objects.vault` - -Optional: - -- `access_available` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) -- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) - - -### Nested Schema for `additional_objects.vault.links` + +### Nested Schema for `additional_objects.systems.items.permissions` Optional: @@ -1963,8 +1943,8 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.permissions` + +### Nested Schema for `additional_objects.systems.items.permissions` Optional: @@ -1974,6 +1954,22 @@ Optional: - `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault` + +Optional: + +- `access_available` (Boolean) +- `name` (String) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) + ### Nested Schema for `additional_objects.vault.records` @@ -1986,8 +1982,6 @@ Optional: - `color` (String) - `end_date` (String) - `filename` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) - `url` (String) - `username` (String) - `warning_period` (String) @@ -1995,6 +1989,8 @@ Optional: Read-Only: - `derived` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) - `share_end_time` (String) - `types` (List of String) - `uuid` (String) @@ -2022,6 +2018,28 @@ Optional: + +### Nested Schema for `additional_objects.vault.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `additional_objects.webhooks` @@ -2052,9 +2070,7 @@ Optional: - `custom_header_value` (String) - `directory_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) - `system_uuid` (String) - `tls` (String) - `trusted_certificate_uuid` (String) @@ -2063,6 +2079,8 @@ Optional: Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) - `uuid` (String) @@ -2095,8 +2113,11 @@ Optional: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) - `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) diff --git a/docs/resources/vaultrecord.md b/docs/resources/vaultrecord.md new file mode 100644 index 0000000..6219b4d --- /dev/null +++ b/docs/resources/vaultrecord.md @@ -0,0 +1,162 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_vaultrecord Resource - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_vaultrecord (Resource) + + + + + + +## Schema + +### Required + +- `group_uuid` (String) +- `name` (String) + +### Optional + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `color` (String) +- `end_date` (String) +- `filename` (String) +- `url` (String) +- `username` (String) +- `warning_period` (String) + +### Read-Only + +- `derived` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `share_end_time` (String) +- `types` (List of String) +- `uuid` (String) + + +### Nested Schema for `additional_objects` + +Optional: + +- `delete_tile` (Boolean) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `parent_uuid` (String) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) +- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) +- `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) +- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) + + +### Nested Schema for `additional_objects.secret` + +Optional: + +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) +- `write_totp` (Boolean) + + + +### Nested Schema for `additional_objects.tile` + + + +### Nested Schema for `additional_objects.audit` + +Optional: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.password_metadata` + +Optional: + +- `dictionary` (Boolean) +- `duplicate` (Boolean) +- `hash` (String) +- `length` (Number) +- `lower_count` (Number) +- `number_count` (Number) +- `special_count` (Number) +- `strength` (Number) +- `upper_count` (Number) + + + +### Nested Schema for `additional_objects.share_summary` + +Optional: + +- `children` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--share_summary--children)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary--parent)) + + +### Nested Schema for `additional_objects.share_summary.children` + +Optional: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + +### Nested Schema for `additional_objects.share_summary.parent` + +Optional: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + + +### Nested Schema for `additional_objects.shares` + +Optional: + +- `items` (List of String) + + + +### Nested Schema for `additional_objects.vaultholder` + + + + +### Nested Schema for `links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 0e2fe49..508cf8a 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -34,13 +34,24 @@ data "keyhubpreview_group" "test" { # value = data.keyhubpreview_group.test #} -data "keyhubpreview_client" "test" { - uuid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" -} +#data "keyhubpreview_client" "test" { +# uuid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" +#} + +#output "data_client" { +# value = data.keyhubpreview_client.test +#} -output "data_client" { - value = data.keyhubpreview_client.test +resource "keyhubpreview_vaultrecord" "terrarecord" { + name = "Terraform Record" + group_uuid = data.keyhubpreview_group.test.uuid + additional_objects = { + secret = { + password = "test3" + } + } } + #resource "keyhubpreview_group" "terra" { # name = "Terraform" # additional_objects = { diff --git a/go.mod b/go.mod index 637a356..8c1d213 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,6 @@ require ( github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect github.com/agext/levenshtein v1.2.3 // indirect - github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect diff --git a/internal/provider/datasource-account.go b/internal/provider/datasource-account.go index b4aeca8..b691a90 100644 --- a/internal/provider/datasource-account.go +++ b/internal/provider/datasource-account.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type accountDataSource struct { } func (d *accountDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_account" + resp.TypeName = ProviderName + "_account" + log.Printf("Registered data source %s", resp.TypeName) } func (d *accountDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-certificate.go b/internal/provider/datasource-certificate.go index cbf4e3e..c9eda70 100644 --- a/internal/provider/datasource-certificate.go +++ b/internal/provider/datasource-certificate.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type certificateDataSource struct { } func (d *certificateDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_certificate" + resp.TypeName = ProviderName + "_certificate" + log.Printf("Registered data source %s", resp.TypeName) } func (d *certificateDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-client.go b/internal/provider/datasource-client.go index 7fa65ae..eeb64cd 100644 --- a/internal/provider/datasource-client.go +++ b/internal/provider/datasource-client.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type clientDataSource struct { } func (d *clientDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_client" + resp.TypeName = ProviderName + "_client" + log.Printf("Registered data source %s", resp.TypeName) } func (d *clientDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-directory.go b/internal/provider/datasource-directory.go index bfdf2ea..d08af26 100644 --- a/internal/provider/datasource-directory.go +++ b/internal/provider/datasource-directory.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type directoryDataSource struct { } func (d *directoryDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_directory" + resp.TypeName = ProviderName + "_directory" + log.Printf("Registered data source %s", resp.TypeName) } func (d *directoryDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-group.go b/internal/provider/datasource-group.go index a35e6ce..7a30cb4 100644 --- a/internal/provider/datasource-group.go +++ b/internal/provider/datasource-group.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type groupDataSource struct { } func (d *groupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_group" + resp.TypeName = ProviderName + "_group" + log.Printf("Registered data source %s", resp.TypeName) } func (d *groupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-groupclassification.go b/internal/provider/datasource-groupclassification.go index d5eaf1e..95d0d1f 100644 --- a/internal/provider/datasource-groupclassification.go +++ b/internal/provider/datasource-groupclassification.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type groupclassificationDataSource struct { } func (d *groupclassificationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_groupclassification" + resp.TypeName = ProviderName + "_groupclassification" + log.Printf("Registered data source %s", resp.TypeName) } func (d *groupclassificationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-organizationalunit.go b/internal/provider/datasource-organizationalunit.go index b4a8a1e..04d96d6 100644 --- a/internal/provider/datasource-organizationalunit.go +++ b/internal/provider/datasource-organizationalunit.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type organizationalunitDataSource struct { } func (d *organizationalunitDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_organizationalunit" + resp.TypeName = ProviderName + "_organizationalunit" + log.Printf("Registered data source %s", resp.TypeName) } func (d *organizationalunitDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-serviceaccount.go b/internal/provider/datasource-serviceaccount.go index d068749..969177f 100644 --- a/internal/provider/datasource-serviceaccount.go +++ b/internal/provider/datasource-serviceaccount.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type serviceaccountDataSource struct { } func (d *serviceaccountDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_serviceaccount" + resp.TypeName = ProviderName + "_serviceaccount" + log.Printf("Registered data source %s", resp.TypeName) } func (d *serviceaccountDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-system.go b/internal/provider/datasource-system.go index 414e916..8170786 100644 --- a/internal/provider/datasource-system.go +++ b/internal/provider/datasource-system.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type systemDataSource struct { } func (d *systemDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_system" + resp.TypeName = ProviderName + "_system" + log.Printf("Registered data source %s", resp.TypeName) } func (d *systemDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-vaultrecord.go b/internal/provider/datasource-vaultrecord.go index 5e3aacf..0573673 100644 --- a/internal/provider/datasource-vaultrecord.go +++ b/internal/provider/datasource-vaultrecord.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type vaultrecordDataSource struct { } func (d *vaultrecordDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_vaultrecord" + resp.TypeName = ProviderName + "_vaultrecord" + log.Printf("Registered data source %s", resp.TypeName) } func (d *vaultrecordDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-webhook.go b/internal/provider/datasource-webhook.go index 9176e34..b5bd1a0 100644 --- a/internal/provider/datasource-webhook.go +++ b/internal/provider/datasource-webhook.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type webhookDataSource struct { } func (d *webhookDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_webhook" + resp.TypeName = ProviderName + "_webhook" + log.Printf("Registered data source %s", resp.TypeName) } func (d *webhookDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 0a9838d..d3f3edf 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -78,6 +78,28 @@ type segmentCountDataDS struct { Name types.String `tfsdk:"name"` } +var accountVaultVaultRecordAttrTypesDS = objectAttrsTypeDSAccountVaultVaultRecord(false) +var accountVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSAccountVaultVaultRecord(true) + +type accountVaultVaultRecordDataDS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var auditAuditRecordAttrTypesDS = objectAttrsTypeDSAuditAuditRecord(false) var auditAuditRecordAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord(true) @@ -405,6 +427,28 @@ type certificateCertificate_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } +var clientApplicationVaultVaultRecordAttrTypesDS = objectAttrsTypeDSClientApplicationVaultVaultRecord(false) +var clientApplicationVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSClientApplicationVaultVaultRecord(true) + +type clientApplicationVaultVaultRecordDataDS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var clientClientApplicationAttrTypesDS = objectAttrsTypeDSClientClientApplication(false) var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication(true) @@ -455,6 +499,7 @@ type clientClientApplication_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Groupclients types.Object `tfsdk:"groupclients"` Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` Tile types.Object `tfsdk:"tile"` VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` } @@ -558,6 +603,28 @@ var clientSaml2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientSaml type clientSaml2Client_attributesDataDS struct { } +var deletedVaultHolderVaultVaultRecordAttrTypesDS = objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(false) +var deletedVaultHolderVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(true) + +type deletedVaultHolderVaultVaultRecordDataDS struct { + DeletedVaultHolderUUID types.String `tfsdk:"deleted_vault_holder_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var directoryAccountDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory(true) @@ -577,10 +644,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1141,6 +1208,28 @@ type groupProvisioningGroup_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } +var groupVaultVaultRecordAttrTypesDS = objectAttrsTypeDSGroupVaultVaultRecord(false) +var groupVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSGroupVaultVaultRecord(true) + +type groupVaultVaultRecordDataDS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var launchpadDisplayedLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(false) var launchpadDisplayedLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(true) @@ -1268,6 +1357,240 @@ type markItemMarkersDataDS struct { Markers types.List `tfsdk:"markers"` } +var nestedAuthInternalAccountAttrTypesDS = objectAttrsTypeDSNestedAuthInternalAccount(false) +var nestedAuthInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedAuthInternalAccount(true) + +type nestedAuthInternalAccountDataDS struct { + AccountDirectoryUUID types.String `tfsdk:"account_directory_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + Directory types.Object `tfsdk:"directory"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var nestedClientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSNestedClientOAuth2ClientPermission(false) +var nestedClientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSNestedClientOAuth2ClientPermission(true) + +type nestedClientOAuth2ClientPermissionDataDS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` +} + +var nestedGroupAccountGroupAttrTypesDS = objectAttrsTypeDSNestedGroupAccountGroup(false) +var nestedGroupAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupAccountGroup(true) + +type nestedGroupAccountGroupDataDS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAccountAttrTypesDS = objectAttrsTypeDSNestedGroupGroupAccount(false) +var nestedGroupGroupAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupGroupAccount(true) + +type nestedGroupGroupAccountDataDS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAuditAttrTypesDS = objectAttrsTypeDSNestedGroupGroupAudit(false) +var nestedGroupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupGroupAudit(true) + +type nestedGroupGroupAuditDataDS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var nestedOrganizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(false) +var nestedOrganizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(true) + +type nestedOrganizationAccountOrganizationalUnitDataDS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedOrganizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(false) +var nestedOrganizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(true) + +type nestedOrganizationOrganizationalUnitAccountDataDS struct { + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` +} + +var nestedProvisioningGroupOnSystemAttrTypesDS = objectAttrsTypeDSNestedProvisioningGroupOnSystem(false) +var nestedProvisioningGroupOnSystemAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningGroupOnSystem(true) + +type nestedProvisioningGroupOnSystemDataDS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Owner types.Object `tfsdk:"owner"` + System types.Object `tfsdk:"system"` +} + +var nestedProvisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSNestedProvisioningProvisionedAccount(false) +var nestedProvisioningProvisionedAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningProvisionedAccount(true) + +type nestedProvisioningProvisionedAccountDataDS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + UID types.Int64 `tfsdk:"uid"` +} + +var nestedProvisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(false) +var nestedProvisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(true) + +type nestedProvisioningProvisionedSystemSyncLogDataDS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var nestedServiceaccountServiceAccountGroupAttrTypesDS = objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(false) +var nestedServiceaccountServiceAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(true) + +type nestedServiceaccountServiceAccountGroupDataDS struct { + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedWebhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSNestedWebhookWebhookDelivery(false) +var nestedWebhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSNestedWebhookWebhookDelivery(true) + +type nestedWebhookWebhookDeliveryDataDS struct { + WebhookUUID types.String `tfsdk:"webhook_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + var notificationCertificateExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationCertificateExpiredNotification(false) var notificationCertificateExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationCertificateExpiredNotification(true) @@ -1754,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2030,43 +2353,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) @@ -2314,6 +2637,7 @@ var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAtt type serviceaccountServiceAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` } var serviceaccountServiceAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(false) @@ -2407,6 +2731,21 @@ type vaultMoveVaultRecord_shareDurationDataDS struct { Seconds types.Int64 `tfsdk:"seconds"` } +var vaultPasswordMetadataAttrTypesDS = objectAttrsTypeDSVaultPasswordMetadata(false) +var vaultPasswordMetadataAttrTypesDSRecurse = objectAttrsTypeDSVaultPasswordMetadata(true) + +type vaultPasswordMetadataDataDS struct { + Dictionary types.Bool `tfsdk:"dictionary"` + Duplicate types.Bool `tfsdk:"duplicate"` + Hash types.String `tfsdk:"hash"` + Length types.Int64 `tfsdk:"length"` + LowerCount types.Int64 `tfsdk:"lower_count"` + NumberCount types.Int64 `tfsdk:"number_count"` + SpecialCount types.Int64 `tfsdk:"special_count"` + Strength types.Int64 `tfsdk:"strength"` + UpperCount types.Int64 `tfsdk:"upper_count"` +} + var vaultVaultAttrTypesDS = objectAttrsTypeDSVaultVault(false) var vaultVaultAttrTypesDSRecurse = objectAttrsTypeDSVaultVault(true) @@ -2501,13 +2840,14 @@ var vaultVaultRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultVaultR var vaultVaultRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord_additionalObjects(true) type vaultVaultRecord_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Parent types.Object `tfsdk:"parent"` - Secret types.Object `tfsdk:"secret"` - ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` - Tile types.Object `tfsdk:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder"` + Audit types.Object `tfsdk:"audit"` + Parent types.Object `tfsdk:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` } var vaultVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultVaultRecovery(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index d986824..a97a206 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -78,6 +78,27 @@ type segmentCountDataRS struct { Name types.String `tfsdk:"name"` } +var accountVaultVaultRecordAttrTypesRS = objectAttrsTypeRSAccountVaultVaultRecord(false) +var accountVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSAccountVaultVaultRecord(true) + +type accountVaultVaultRecordDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var auditAuditRecordAttrTypesRS = objectAttrsTypeRSAuditAuditRecord(false) var auditAuditRecordAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord(true) @@ -376,6 +397,27 @@ type certificateCertificate_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } +var clientApplicationVaultVaultRecordAttrTypesRS = objectAttrsTypeRSClientApplicationVaultVaultRecord(false) +var clientApplicationVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSClientApplicationVaultVaultRecord(true) + +type clientApplicationVaultVaultRecordDataRS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var clientClientApplicationAttrTypesRS = objectAttrsTypeRSClientClientApplication(false) var clientClientApplicationAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication(true) @@ -528,6 +570,27 @@ var clientSaml2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientSaml type clientSaml2Client_attributesDataRS struct { } +var deletedVaultHolderVaultVaultRecordAttrTypesRS = objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(false) +var deletedVaultHolderVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(true) + +type deletedVaultHolderVaultVaultRecordDataRS struct { + DeletedVaultHolderUUID types.String `tfsdk:"deleted_vault_holder_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var directoryAccountDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory(true) @@ -546,10 +609,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1092,6 +1155,27 @@ type groupProvisioningGroup_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } +var groupVaultVaultRecordAttrTypesRS = objectAttrsTypeRSGroupVaultVaultRecord(false) +var groupVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSGroupVaultVaultRecord(true) + +type groupVaultVaultRecordDataRS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var launchpadDisplayedLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(false) var launchpadDisplayedLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(true) @@ -1218,6 +1302,178 @@ type markItemMarkersDataRS struct { Markers types.List `tfsdk:"markers"` } +var nestedAuthInternalAccountAttrTypesRS = objectAttrsTypeRSNestedAuthInternalAccount(false) +var nestedAuthInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedAuthInternalAccount(true) + +type nestedAuthInternalAccountDataRS struct { + AccountDirectoryUUID types.String `tfsdk:"account_directory_uuid"` + UUID types.String `tfsdk:"uuid"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var nestedClientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSNestedClientOAuth2ClientPermission(false) +var nestedClientOAuth2ClientPermissionAttrTypesRSRecurse = objectAttrsTypeRSNestedClientOAuth2ClientPermission(true) + +type nestedClientOAuth2ClientPermissionDataRS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` +} + +var nestedGroupAccountGroupAttrTypesRS = objectAttrsTypeRSNestedGroupAccountGroup(false) +var nestedGroupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupAccountGroup(true) + +type nestedGroupAccountGroupDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAccountAttrTypesRS = objectAttrsTypeRSNestedGroupGroupAccount(false) +var nestedGroupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGroupAccount(true) + +type nestedGroupGroupAccountDataRS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAuditAttrTypesRS = objectAttrsTypeRSNestedGroupGroupAudit(false) +var nestedGroupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGroupAudit(true) + +type nestedGroupGroupAuditDataRS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var nestedOrganizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(false) +var nestedOrganizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(true) + +type nestedOrganizationAccountOrganizationalUnitDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedOrganizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(false) +var nestedOrganizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(true) + +type nestedOrganizationOrganizationalUnitAccountDataRS struct { + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` +} + +var nestedProvisioningGroupOnSystemAttrTypesRS = objectAttrsTypeRSNestedProvisioningGroupOnSystem(false) +var nestedProvisioningGroupOnSystemAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningGroupOnSystem(true) + +type nestedProvisioningGroupOnSystemDataRS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var nestedProvisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSNestedProvisioningProvisionedAccount(false) +var nestedProvisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningProvisionedAccount(true) + +type nestedProvisioningProvisionedAccountDataRS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + UID types.Int64 `tfsdk:"uid"` +} + +var nestedProvisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(false) +var nestedProvisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(true) + +type nestedProvisioningProvisionedSystemSyncLogDataRS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var nestedServiceaccountServiceAccountGroupAttrTypesRS = objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(false) +var nestedServiceaccountServiceAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(true) + +type nestedServiceaccountServiceAccountGroupDataRS struct { + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedWebhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSNestedWebhookWebhookDelivery(false) +var nestedWebhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSNestedWebhookWebhookDelivery(true) + +type nestedWebhookWebhookDeliveryDataRS struct { + WebhookUUID types.String `tfsdk:"webhook_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + var notificationCertificateExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationCertificateExpiredNotification(false) var notificationCertificateExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationCertificateExpiredNotification(true) @@ -1683,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -1957,43 +2213,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) @@ -2336,6 +2592,21 @@ type vaultMoveVaultRecord_shareDurationDataRS struct { Seconds types.Int64 `tfsdk:"seconds"` } +var vaultPasswordMetadataAttrTypesRS = objectAttrsTypeRSVaultPasswordMetadata(false) +var vaultPasswordMetadataAttrTypesRSRecurse = objectAttrsTypeRSVaultPasswordMetadata(true) + +type vaultPasswordMetadataDataRS struct { + Dictionary types.Bool `tfsdk:"dictionary"` + Duplicate types.Bool `tfsdk:"duplicate"` + Hash types.String `tfsdk:"hash"` + Length types.Int64 `tfsdk:"length"` + LowerCount types.Int64 `tfsdk:"lower_count"` + NumberCount types.Int64 `tfsdk:"number_count"` + SpecialCount types.Int64 `tfsdk:"special_count"` + Strength types.Int64 `tfsdk:"strength"` + UpperCount types.Int64 `tfsdk:"upper_count"` +} + var vaultVaultAttrTypesRS = objectAttrsTypeRSVaultVault(false) var vaultVaultAttrTypesRSRecurse = objectAttrsTypeRSVaultVault(true) @@ -2430,14 +2701,15 @@ var vaultVaultRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultVaultR var vaultVaultRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord_additionalObjects(true) type vaultVaultRecord_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile"` - ParentUUID types.String `tfsdk:"parent_uuid"` - Secret types.Object `tfsdk:"secret"` - ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` - Tile types.Object `tfsdk:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder"` + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + ParentUUID types.String `tfsdk:"parent_uuid"` + PasswordMetadata types.Object `tfsdk:"password_metadata"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` } var vaultVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultVaultRecovery(false) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index 468e7a4..ff37f4d 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -171,7 +171,7 @@ func findFirst[T keyhubmodel.Linkableable](ctx context.Context, wrapper interfac } func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -188,7 +188,7 @@ func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel. } func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -205,7 +205,7 @@ func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string } func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -222,7 +222,7 @@ func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *s } func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -239,7 +239,7 @@ func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) ( } func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -256,7 +256,7 @@ func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *st } func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -273,7 +273,7 @@ func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) } func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -298,7 +298,7 @@ func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel } func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -311,7 +311,7 @@ func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthA } func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -328,7 +328,7 @@ func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *str } func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -349,10 +349,22 @@ func errorReportToString(ctx context.Context, err error) string { if !ok { return err.Error() } - msg := fmt.Sprintf("Error %d from backend: %s", *report.GetCode(), *report.GetMessage()) + var msg string + if report.GetApplicationError() == nil { + msg = fmt.Sprintf("Error %d from backend: %s", *report.GetCode(), stringPointerToString(report.GetMessage())) + } else { + msg = fmt.Sprintf("Error %d (%s) from backend: %s", *report.GetCode(), *report.GetApplicationError(), stringPointerToString(report.GetMessage())) + } tflog.Info(ctx, msg) if report.GetStacktrace() != nil { tflog.Info(ctx, strings.Join(report.GetStacktrace(), "\n")) } return msg } + +func stringPointerToString(input *string) string { + if input != nil { + return *input + } + return "" +} diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 6679dba..eaeb53e 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -71,6 +71,29 @@ func objectAttrsTypeDSSegmentCount(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeDSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -379,6 +402,29 @@ func objectAttrsTypeDSCertificateCertificate_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeDSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -426,6 +472,7 @@ func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) ma objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse)} objectAttrs["vault_record_count"] = types.Int64Type return objectAttrs @@ -524,6 +571,29 @@ func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr return objectAttrs } +func objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["deleted_vault_holder_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -543,10 +613,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1075,6 +1145,29 @@ func objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeDSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1191,6 +1284,252 @@ func objectAttrsTypeDSMarkItemMarkers(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeDSNestedAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + } + objectAttrs["account_directory_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + 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["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + 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["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + 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["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["webhook_uuid"] = types.StringType + 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["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)} @@ -1638,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} return objectAttrs } @@ -1885,43 +2224,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} return objectAttrs } @@ -2142,6 +2481,7 @@ func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse boo objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} return objectAttrs } @@ -2227,6 +2567,20 @@ func objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse bool) map[strin return objectAttrs } +func objectAttrsTypeDSVaultPasswordMetadata(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["dictionary"] = types.BoolType + objectAttrs["duplicate"] = types.BoolType + objectAttrs["hash"] = types.StringType + objectAttrs["length"] = types.Int64Type + objectAttrs["lower_count"] = types.Int64Type + objectAttrs["number_count"] = types.Int64Type + objectAttrs["special_count"] = types.Int64Type + objectAttrs["strength"] = types.Int64Type + objectAttrs["upper_count"] = types.Int64Type + return objectAttrs +} + func objectAttrsTypeDSVaultVault(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -2314,6 +2668,7 @@ func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[strin objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(recurse)} objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(recurse)} objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(recurse)} objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse)} diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 47ca6dd..0f9907f 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -71,6 +71,28 @@ func objectAttrsTypeRSSegmentCount(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeRSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -348,6 +370,28 @@ func objectAttrsTypeRSCertificateCertificate_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeRSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -492,6 +536,28 @@ func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr return objectAttrs } +func objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["deleted_vault_holder_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -510,10 +576,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1024,6 +1090,28 @@ func objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeRSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1139,6 +1227,188 @@ func objectAttrsTypeRSMarkItemMarkers(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeRSNestedAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_directory_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["for_group_uuid"] = types.StringType + objectAttrs["for_system_uuid"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["webhook_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)} @@ -1565,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} return objectAttrs } @@ -1810,43 +2080,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} return objectAttrs } @@ -2154,6 +2424,20 @@ func objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse bool) map[strin return objectAttrs } +func objectAttrsTypeRSVaultPasswordMetadata(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["dictionary"] = types.BoolType + objectAttrs["duplicate"] = types.BoolType + objectAttrs["hash"] = types.StringType + objectAttrs["length"] = types.Int64Type + objectAttrs["lower_count"] = types.Int64Type + objectAttrs["number_count"] = types.Int64Type + objectAttrs["special_count"] = types.Int64Type + objectAttrs["strength"] = types.Int64Type + objectAttrs["upper_count"] = types.Int64Type + return objectAttrs +} + func objectAttrsTypeRSVaultVault(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -2242,6 +2526,7 @@ func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[strin objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} objectAttrs["delete_tile"] = types.BoolType objectAttrs["parent_uuid"] = types.StringType + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(recurse)} objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(recurse)} objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(recurse)} objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse)} diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 24561f1..a40f55e 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -121,6 +121,85 @@ func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribu } return schemaAttrs } +func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = 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", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -863,6 +942,85 @@ func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) } return schemaAttrs } +func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = 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", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -912,6 +1070,7 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch "audit", "groupclients", "groups", + "secret", "tile", "vaultRecordCount", ), @@ -1003,6 +1162,10 @@ func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool Attributes: dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse), Computed: true, } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + Computed: true, + } schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), Computed: true, @@ -1223,6 +1386,85 @@ func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string] schemaAttrs := make(map[string]dsschema.Attribute) return schemaAttrs } +func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["deleted_vault_holder_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = 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", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -1292,22 +1534,22 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), Computed: true, } schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), 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["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -2618,8 +2860,18 @@ func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsRestLink(recurse), @@ -2632,7 +2884,76 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[stri }, Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = 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", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(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["group"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), Computed: true, } @@ -2816,57 +3137,837 @@ func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dssc schemaAttrs["issue_time"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["not_before_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["version"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["level"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["markers"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["account_directory_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "activeLogin", + "audit", + "groups", + "pendingRecoveryRequests", + "settings", + "storedAttributes", + "vault", + ), + ), + }, + } + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["email"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["activation_code"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["first_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["telephone"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["for_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedGroupAccountGroup(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["account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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 dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["accounts"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["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", + ), + ), + }, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "provgroups", + "serviceAccounts", + ), + ), + }, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(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["provisioned_system_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["uid"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(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["provisioned_system_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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 dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + 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["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, } - schemaAttrs["license_key"] = dsschema.StringAttribute{ + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, Computed: true, } - schemaAttrs["not_before_time"] = dsschema.StringAttribute{ + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, Computed: true, } - schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ - Computed: true, + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, } - schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ - Computed: true, + schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), + Computed: true, } - schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ + schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["version"] = dsschema.Int64Attribute{ + schemaAttrs["request_headers"] = dsschema.StringAttribute{ Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["level"] = dsschema.StringAttribute{ + schemaAttrs["response"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + schemaAttrs["status"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), - Computed: true, + schemaAttrs["time"] = dsschema.Int64Attribute{ + Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["markers"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), - }, + schemaAttrs["trigger_time"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs @@ -3835,36 +4936,36 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Computed: true, } - schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Computed: true, } - schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Computed: true, } - schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Computed: true, } schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } return schemaAttrs @@ -4284,42 +5385,54 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Computed: true, + } + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + Computed: true, + } + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + Computed: true, + } + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Computed: true, } schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), Computed: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Computed: true, - } schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, @@ -4328,108 +5441,96 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Computed: true, } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - Computed: true, - } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - Computed: true, - } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), - Computed: true, - } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } - schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), Computed: true, } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Computed: true, } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), Computed: true, } schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } - schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Computed: true, } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } return schemaAttrs @@ -4657,6 +5758,7 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] stringvalidator.OneOf( "audit", "groups", + "secret", ), ), }, @@ -4810,6 +5912,10 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), Computed: true, } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { @@ -4961,6 +6067,37 @@ func dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[s } return schemaAttrs } +func dataSourceSchemaAttrsVaultPasswordMetadata(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["dictionary"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["duplicate"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["hash"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["length"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["lower_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["special_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["strength"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["upper_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsVaultVault(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -5034,6 +6171,7 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att stringvalidator.OneOf( "audit", "parent", + "passwordMetadata", "secret", "shareSummary", "shares", @@ -5166,6 +6304,10 @@ func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[s Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), Computed: true, } + schemaAttrs["password_metadata"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultPasswordMetadata(recurse), + Computed: true, + } schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), Computed: true, diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 03c965e..f7f3dbd 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -8,6 +8,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" @@ -87,13 +89,15 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -129,6 +133,72 @@ func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute } return schemaAttrs } +func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -141,70 +211,91 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["date_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_account"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_certificate"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_client"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_directory"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_group"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_group2"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_group_classification"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_organizational_unit"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_service_account"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_system"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_vault_record"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_webhook"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["parameter1"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["parameter2"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["parameter3"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["performed_by"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["security_level"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -238,13 +329,15 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, @@ -256,7 +349,8 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["validity"] = rsschema.StringAttribute{ Optional: true, @@ -359,13 +453,15 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, @@ -377,7 +473,8 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["validity"] = rsschema.StringAttribute{ Optional: true, @@ -632,19 +729,22 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["certificate_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -668,7 +768,8 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["key_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -692,19 +793,22 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["certificate_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -728,7 +832,8 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -740,6 +845,72 @@ func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) m } return schemaAttrs } +func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -752,16 +923,19 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -774,10 +948,12 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ Computed: true, @@ -818,16 +994,19 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -840,10 +1019,12 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -964,13 +1145,15 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1005,13 +1188,15 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1071,6 +1256,72 @@ func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rs schemaAttrs := make(map[string]rsschema.Attribute) return schemaAttrs } +func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -1083,16 +1334,19 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -1100,13 +1354,15 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Default: booldefault.StaticBool(false), } schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, @@ -1132,22 +1388,22 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), Optional: true, } schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), Optional: true, } - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), - Optional: true, - } schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), Optional: true, } + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1166,16 +1422,19 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -1183,13 +1442,15 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Default: booldefault.StaticBool(false), } schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -1214,13 +1475,15 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ Optional: true, @@ -1454,13 +1717,15 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -1655,13 +1920,15 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1707,13 +1974,15 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1759,13 +2028,15 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["months"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -1843,13 +2114,15 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -1941,13 +2214,15 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -1989,13 +2264,15 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -2048,13 +2325,15 @@ func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -2129,13 +2408,15 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -2338,13 +2619,15 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -2380,20 +2663,88 @@ func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) m } return schemaAttrs } -func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Required: true, + } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ Optional: true, } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -2440,13 +2791,15 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -2460,9 +2813,8 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema Default: int64default.StaticInt64(0), } schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["logo"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -2485,142 +2837,583 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema } return schemaAttrs } -func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTile_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 resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["title"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["uri"] = rsschema.StringAttribute{ + Optional: true, + } + 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["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["not_before_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["version"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["level"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["markers"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsMarkItemMarker(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["activation_code"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["first_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["last_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["telephone"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["end_date"] = 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 resourceSchemaAttrsNestedGroupGroupAccount(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["group_uuid"] = rsschema.StringAttribute{ + Required: 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["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["submitted_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedProvisioningProvisionedAccount(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["provisioned_system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uid"] = rsschema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), - }, - Optional: true, + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ + Required: true, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["title"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["errors"] = rsschema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["log"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["modifications"] = rsschema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } 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 { +func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(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, + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Optional: true, + } } - schemaAttrs["customer_contact"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["customer_domains"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["expiration_time"] = rsschema.StringAttribute{ + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["features"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["issue_time"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["license_key"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Optional: true, + } } - schemaAttrs["not_before_time"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ - Optional: true, + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ - Optional: true, + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ - Optional: true, + schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookPush(false), + Optional: true, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["version"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["request_headers"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["level"] = rsschema.StringAttribute{ + schemaAttrs["response"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + schemaAttrs["status"] = rsschema.Int64Attribute{ Optional: true, } - schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), - Optional: true, + schemaAttrs["time"] = rsschema.Int64Attribute{ + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["markers"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsMarkItemMarker(recurse), - }, + schemaAttrs["trigger_time"] = rsschema.StringAttribute{ Optional: true, } return schemaAttrs @@ -2822,19 +3615,22 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["depth"] = rsschema.Int64Attribute{ Computed: true, @@ -2900,19 +3696,22 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3055,13 +3854,15 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -3099,13 +3900,15 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -3213,13 +4016,15 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -3275,7 +4080,8 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] Required: true, } schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3385,13 +4191,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3405,10 +4213,12 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Optional: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -3448,36 +4258,36 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["username_prefix"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Optional: true, } - schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Optional: true, } - schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Optional: true, } - schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Optional: true, } schemaAttrs["provisioned_a_d"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } return schemaAttrs @@ -3498,13 +4308,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3518,10 +4330,12 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st Optional: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3545,25 +4359,31 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[s NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["errors"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } schemaAttrs["log"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["modifications"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3853,13 +4673,15 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -3874,50 +4696,64 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Optional: true, } schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Optional: true, + } + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Optional: true, + } + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + Optional: true, + } + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + Optional: true, + } + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Optional: true, } schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), Optional: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Optional: true, - } schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, @@ -3926,108 +4762,96 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Optional: true, } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), Optional: true, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - Optional: true, - } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - Optional: true, - } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), - Optional: true, - } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } - schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), Optional: true, } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Optional: true, } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), Optional: true, } schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } - schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Optional: true, } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } return schemaAttrs @@ -4238,13 +5062,15 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -4258,10 +5084,12 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs Required: true, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, @@ -4289,13 +5117,15 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -4345,13 +5175,15 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -4365,10 +5197,12 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str Required: true, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -4456,22 +5290,26 @@ func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschem NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["record_count"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } schemaAttrs["vault_deleted_vault_holder_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -4539,19 +5377,68 @@ func resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[str } return schemaAttrs } +func resourceSchemaAttrsVaultPasswordMetadata(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["dictionary"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["duplicate"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["hash"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["length"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["lower_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["number_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["special_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["strength"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["upper_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["access_available"] = rsschema.BoolAttribute{ Computed: true, @@ -4585,13 +5472,15 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -4602,13 +5491,16 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri Required: true, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -4647,13 +5539,15 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -4664,10 +5558,12 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema Required: true, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -4736,6 +5632,10 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ Computed: true, } + schemaAttrs["password_metadata"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultPasswordMetadata(recurse), + Computed: true, + } schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), Optional: true, @@ -4797,13 +5697,15 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -4872,7 +5774,8 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["verbose_payloads"] = rsschema.BoolAttribute{ Computed: true, @@ -4893,13 +5796,15 @@ func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhookPush(false), diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 43e7eaf..2353ef2 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -55,6 +55,25 @@ func fillDataStructFromTFObjectDSSegmentCount(data *segmentCountDataDS, obj type data.Name = obj.Attributes()["name"].(basetypes.StringValue) } +func fillDataStructFromTFObjectDSAccountVaultVaultRecord(data *accountVaultVaultRecordDataDS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(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.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -301,6 +320,25 @@ func fillDataStructFromTFObjectDSCertificateCertificate_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectDSClientApplicationVaultVaultRecord(data *clientApplicationVaultVaultRecordDataDS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(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.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -339,6 +377,7 @@ func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) } @@ -412,6 +451,25 @@ func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS func fillDataStructFromTFObjectDSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataDS, obj types.Object) { } +func fillDataStructFromTFObjectDSDeletedVaultHolderVaultVaultRecord(data *deletedVaultHolderVaultVaultRecordDataDS, obj types.Object) { + data.DeletedVaultHolderUUID = obj.Attributes()["deleted_vault_holder_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(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.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccountDirectoryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -428,10 +486,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.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -845,6 +903,25 @@ func fillDataStructFromTFObjectDSGroupProvisioningGroup_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectDSGroupVaultVaultRecord(data *groupVaultVaultRecordDataDS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(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.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -933,6 +1010,204 @@ func fillDataStructFromTFObjectDSMarkItemMarkers(data *markItemMarkersDataDS, ob data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) } +func fillDataStructFromTFObjectDSNestedAuthInternalAccount(data *nestedAuthInternalAccountDataDS, obj types.Object) { + data.AccountDirectoryUUID = obj.Attributes()["account_directory_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNestedClientOAuth2ClientPermission(data *nestedClientOAuth2ClientPermissionDataDS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + 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.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) + data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNestedGroupAccountGroup(data *nestedGroupAccountGroupDataDS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + 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.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSNestedGroupGroupAccount(data *nestedGroupGroupAccountDataDS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSNestedGroupGroupAudit(data *nestedGroupGroupAuditDataDS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNestedOrganizationAccountOrganizationalUnit(data *nestedOrganizationAccountOrganizationalUnitDataDS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + 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) +} + +func fillDataStructFromTFObjectDSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataDS, obj types.Object) { + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNestedProvisioningGroupOnSystem(data *nestedProvisioningGroupOnSystemDataDS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataDS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSNestedProvisioningProvisionedSystemSyncLog(data *nestedProvisioningProvisionedSystemSyncLogDataDS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + 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.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSNestedServiceaccountServiceAccountGroup(data *nestedServiceaccountServiceAccountGroupDataDS, obj types.Object) { + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataDS, obj types.Object) { + data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) + 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.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataDS, obj types.Object) { data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) @@ -1263,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1440,43 +1715,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_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.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_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.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { @@ -1631,6 +1906,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountStatus(data *servic func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataDS, obj types.Object) { @@ -1691,6 +1967,18 @@ func fillDataStructFromTFObjectDSVaultMoveVaultRecord_shareDuration(data *vaultM data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) } +func fillDataStructFromTFObjectDSVaultPasswordMetadata(data *vaultPasswordMetadataDataDS, obj types.Object) { + data.Dictionary = obj.Attributes()["dictionary"].(basetypes.BoolValue) + data.Duplicate = obj.Attributes()["duplicate"].(basetypes.BoolValue) + data.Hash = obj.Attributes()["hash"].(basetypes.StringValue) + data.Length = obj.Attributes()["length"].(basetypes.Int64Value) + data.LowerCount = obj.Attributes()["lower_count"].(basetypes.Int64Value) + data.NumberCount = obj.Attributes()["number_count"].(basetypes.Int64Value) + data.SpecialCount = obj.Attributes()["special_count"].(basetypes.Int64Value) + data.Strength = obj.Attributes()["strength"].(basetypes.Int64Value) + data.UpperCount = obj.Attributes()["upper_count"].(basetypes.Int64Value) +} + func fillDataStructFromTFObjectDSVaultVault(data *vaultVaultDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -1757,6 +2045,7 @@ func fillDataStructFromTFObjectDSVaultVaultRecordShareSummary(data *vaultVaultRe func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index e862d28..3777f29 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -55,6 +55,24 @@ func fillDataStructFromTFObjectRSSegmentCount(data *segmentCountDataRS, obj type data.Name = obj.Attributes()["name"].(basetypes.StringValue) } +func fillDataStructFromTFObjectRSAccountVaultVaultRecord(data *accountVaultVaultRecordDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -272,6 +290,24 @@ func fillDataStructFromTFObjectRSCertificateCertificate_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(data *clientApplicationVaultVaultRecordDataRS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientApplicationDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -382,6 +418,24 @@ func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS func fillDataStructFromTFObjectRSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataRS, obj types.Object) { } +func fillDataStructFromTFObjectRSDeletedVaultHolderVaultVaultRecord(data *deletedVaultHolderVaultVaultRecordDataRS, obj types.Object) { + data.DeletedVaultHolderUUID = obj.Attributes()["deleted_vault_holder_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccountDirectoryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -397,10 +451,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.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -796,6 +850,24 @@ func fillDataStructFromTFObjectRSGroupProvisioningGroup_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectRSGroupVaultVaultRecord(data *groupVaultVaultRecordDataRS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -883,6 +955,142 @@ func fillDataStructFromTFObjectRSMarkItemMarkers(data *markItemMarkersDataRS, ob data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) } +func fillDataStructFromTFObjectRSNestedAuthInternalAccount(data *nestedAuthInternalAccountDataRS, obj types.Object) { + data.AccountDirectoryUUID = obj.Attributes()["account_directory_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedClientOAuth2ClientPermission(data *nestedClientOAuth2ClientPermissionDataRS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedGroupAccountGroup(data *nestedGroupAccountGroupDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSNestedGroupGroupAccount(data *nestedGroupGroupAccountDataRS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSNestedGroupGroupAudit(data *nestedGroupGroupAuditDataRS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedOrganizationAccountOrganizationalUnit(data *nestedOrganizationAccountOrganizationalUnitDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataRS, obj types.Object) { + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedProvisioningGroupOnSystemDataRS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataRS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSNestedProvisioningProvisionedSystemSyncLog(data *nestedProvisioningProvisionedSystemSyncLogDataRS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSNestedServiceaccountServiceAccountGroup(data *nestedServiceaccountServiceAccountGroupDataRS, obj types.Object) { + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataRS, obj types.Object) { + data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataRS, obj types.Object) { data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) @@ -1192,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1367,43 +1575,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_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.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_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.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { @@ -1620,6 +1828,18 @@ func fillDataStructFromTFObjectRSVaultMoveVaultRecord_shareDuration(data *vaultM data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) } +func fillDataStructFromTFObjectRSVaultPasswordMetadata(data *vaultPasswordMetadataDataRS, obj types.Object) { + data.Dictionary = obj.Attributes()["dictionary"].(basetypes.BoolValue) + data.Duplicate = obj.Attributes()["duplicate"].(basetypes.BoolValue) + data.Hash = obj.Attributes()["hash"].(basetypes.StringValue) + data.Length = obj.Attributes()["length"].(basetypes.Int64Value) + data.LowerCount = obj.Attributes()["lower_count"].(basetypes.Int64Value) + data.NumberCount = obj.Attributes()["number_count"].(basetypes.Int64Value) + data.SpecialCount = obj.Attributes()["special_count"].(basetypes.Int64Value) + data.Strength = obj.Attributes()["strength"].(basetypes.Int64Value) + data.UpperCount = obj.Attributes()["upper_count"].(basetypes.Int64Value) +} + func fillDataStructFromTFObjectRSVaultVault(data *vaultVaultDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -1687,6 +1907,7 @@ func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultV data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index c2446df..12c1617 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -16,7 +16,7 @@ import ( func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -39,7 +39,7 @@ func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -74,7 +74,7 @@ func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ErrorReport_applicationErrorParametersable @@ -84,7 +84,7 @@ func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -98,7 +98,7 @@ func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -127,7 +127,7 @@ func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NonLinkableable @@ -137,7 +137,7 @@ func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -152,7 +152,7 @@ func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -163,9 +163,82 @@ func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types return tkh, diags } +func tfObjectToTKHDSAccountVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -232,7 +305,7 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -252,7 +325,7 @@ func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -268,7 +341,7 @@ func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -373,7 +446,7 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -399,7 +472,7 @@ func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -411,7 +484,7 @@ func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, o func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -431,7 +504,7 @@ func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -473,7 +546,7 @@ func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -486,7 +559,7 @@ func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -533,7 +606,7 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -554,7 +627,7 @@ func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -596,7 +669,7 @@ func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse b func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -622,7 +695,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable @@ -632,7 +705,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, r func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable @@ -642,7 +715,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable @@ -652,7 +725,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, re func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -774,7 +847,7 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -794,7 +867,7 @@ func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recu func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -812,7 +885,7 @@ func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -828,7 +901,7 @@ func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, o func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -857,7 +930,7 @@ func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -870,7 +943,7 @@ func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -890,7 +963,7 @@ func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse boo func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -958,7 +1031,7 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -978,7 +1051,7 @@ func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1032,7 +1105,7 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1046,9 +1119,82 @@ func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context return tkh, diags } +func tfObjectToTKHDSClientApplicationVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1108,7 +1254,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["o_auth2_client"].IsNull() { val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1116,7 +1262,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["ldap_client"].IsNull() { val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1124,7 +1270,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["saml2_client"].IsNull() { val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1141,7 +1287,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1161,7 +1307,7 @@ func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1208,7 +1354,7 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1229,6 +1375,11 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex diags.Append(d...) tkh.SetGroups(val) } + { + val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } { val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1240,7 +1391,7 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1264,7 +1415,7 @@ func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1303,7 +1454,7 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1356,7 +1507,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1376,7 +1527,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1434,7 +1585,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1454,7 +1605,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1470,7 +1621,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.C func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientOAuth2Client_attributesable @@ -1480,7 +1631,7 @@ func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse b func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1503,7 +1654,7 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientSaml2Client_attributesable @@ -1511,9 +1662,82 @@ func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bo return tkh, diags } +func tfObjectToTKHDSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1568,35 +1792,35 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + 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.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).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)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1612,7 +1836,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1632,7 +1856,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1672,7 +1896,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1692,7 +1916,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, r func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1737,7 +1961,7 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1757,7 +1981,7 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1783,7 +2007,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Cont func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1799,7 +2023,7 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1850,7 +2074,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.DirectoryMaintenanceDirectoryable @@ -1860,7 +2084,7 @@ func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse b func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1886,7 +2110,7 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1951,7 +2175,7 @@ func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1971,7 +2195,7 @@ func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1992,7 +2216,7 @@ func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, rec func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2013,7 +2237,7 @@ func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2127,7 +2351,7 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2211,7 +2435,7 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2231,7 +2455,7 @@ func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2243,7 +2467,7 @@ func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2260,7 +2484,7 @@ func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, o func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2276,7 +2500,7 @@ func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, rec func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2288,7 +2512,7 @@ func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2359,7 +2583,7 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2420,7 +2644,7 @@ func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2458,7 +2682,7 @@ func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2478,7 +2702,7 @@ func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2494,7 +2718,7 @@ func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recur func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2521,7 +2745,7 @@ func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2579,7 +2803,7 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2591,7 +2815,7 @@ func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bo func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2611,7 +2835,7 @@ func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2642,7 +2866,7 @@ func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2658,7 +2882,7 @@ func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2679,7 +2903,7 @@ func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Conte func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2736,7 +2960,7 @@ func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2756,7 +2980,7 @@ func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2772,7 +2996,7 @@ func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2809,7 +3033,7 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2829,7 +3053,7 @@ func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2845,7 +3069,7 @@ func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2862,7 +3086,7 @@ func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2882,7 +3106,7 @@ func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2914,7 +3138,7 @@ func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2934,7 +3158,7 @@ func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2963,7 +3187,7 @@ func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3109,7 +3333,7 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3135,7 +3359,7 @@ func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3182,7 +3406,7 @@ func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3202,7 +3426,7 @@ func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3216,14 +3440,14 @@ func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context return tkh, diags } -func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHDSGroupVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + 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)) @@ -3243,20 +3467,93 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse tkh.SetPermissions(val) } { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetColor(val) } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLogo(val) + tkh.SetShareEndTime(val) } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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 := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + 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 := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) } @@ -3267,7 +3564,7 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3287,7 +3584,7 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3344,7 +3641,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob 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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3352,7 +3649,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob 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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3360,7 +3657,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["manual_launchpad_tile"].IsNull() { val, d := tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3377,7 +3674,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3395,14 +3692,702 @@ func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r return tkh, diags } -func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { +func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + return tkh, diags +} + +func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNestedAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + 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)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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 := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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 := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHDSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable - tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + 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)) @@ -3421,184 +4406,230 @@ func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo diags.Append(d...) tkh.SetPermissions(val) } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) } - objAttrs := objVal.Attributes() - 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 + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if recurse { + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } -func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { +func tfObjectToTKHDSNestedProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LicenseKeyHubLicenseInfoable - tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + 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.SetCurrentLicenseStatus(val) + tkh.SetLinks(val) } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + 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.SetCustomerDomains(val) + tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetDetails(val) + tkh.SetLastActive(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetExpirationTime(val) + tkh.SetValidity(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) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + 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.SetFeatures(val) + tkh.SetLinks(val) } { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + 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.SetIssueTime(val) + tkh.SetPermissions(val) } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetNotBeforeTime(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 := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } -func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { +func tfObjectToTKHDSNestedServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkerable - tkh = keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + 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.SetLevel(val) + tkh.SetLinks(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + 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.SetMarkItemMarkerType(val) + tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetParameters(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - return tkh, diags -} - -func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } -func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { +func tfObjectToTKHDSNestedWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkersable - tkh = keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(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.SetMarkers(val) + 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 := tfObjectToTKHDSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3646,7 +4677,7 @@ func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Conte func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3674,7 +4705,7 @@ func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Conte func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3702,7 +4733,7 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Contex func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable @@ -3712,7 +4743,7 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx con func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable @@ -3722,7 +4753,7 @@ func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx contex func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3739,7 +4770,7 @@ func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, r func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3769,7 +4800,7 @@ func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Cont func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationNotificationable @@ -3779,7 +4810,7 @@ func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3799,7 +4830,7 @@ func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3816,7 +4847,7 @@ func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Conte func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3836,7 +4867,7 @@ func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context. func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3856,7 +4887,7 @@ func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3872,7 +4903,7 @@ func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3888,7 +4919,7 @@ func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Conte func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3926,7 +4957,7 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, r func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3946,7 +4977,7 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3962,7 +4993,7 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4012,7 +5043,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4066,7 +5097,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4086,7 +5117,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4102,7 +5133,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4122,7 +5153,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4153,7 +5184,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, re func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4173,7 +5204,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4189,7 +5220,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4236,7 +5267,7 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable @@ -4246,7 +5277,7 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4270,7 +5301,7 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, r func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4290,7 +5321,7 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Cont func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4311,7 +5342,7 @@ func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, re func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4367,7 +5398,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4387,7 +5418,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4426,7 +5457,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4448,7 +5479,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4474,7 +5505,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4516,7 +5547,7 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, rec func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4529,7 +5560,7 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4550,7 +5581,7 @@ func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4589,7 +5620,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4609,7 +5640,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4630,7 +5661,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx co func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4648,7 +5679,7 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4698,7 +5729,7 @@ func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4718,7 +5749,7 @@ func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4734,7 +5765,7 @@ func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4751,7 +5782,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4770,7 +5801,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4785,7 +5816,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recu func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4801,7 +5832,7 @@ func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, rec func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4825,7 +5856,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4842,7 +5873,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, re func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4907,67 +5938,67 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + 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.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).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 := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).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)) + 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.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).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["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + 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.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ProvisioningProvisionedAD)).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)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -4983,7 +6014,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5003,7 +6034,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Con func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5047,7 +6078,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, rec func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5067,7 +6098,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx conte func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5111,7 +6142,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, re func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5131,7 +6162,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx cont func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5147,7 +6178,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx c func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5194,7 +6225,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context. func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5208,7 +6239,7 @@ func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Co func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5230,7 +6261,7 @@ func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5242,7 +6273,7 @@ func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5258,7 +6289,7 @@ func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Co func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5274,7 +6305,7 @@ func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx con func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5290,7 +6321,7 @@ func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx cont func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5306,7 +6337,7 @@ func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Contex func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5319,7 +6350,7 @@ func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5336,7 +6367,7 @@ func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestAcceptModificationRequestParametersable @@ -5346,7 +6377,7 @@ func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Conte func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5363,7 +6394,7 @@ func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse boo func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5383,7 +6414,7 @@ func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recur func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5395,7 +6426,7 @@ func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5407,7 +6438,7 @@ func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recu func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5419,7 +6450,7 @@ func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable @@ -5429,7 +6460,7 @@ func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Cont func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5445,7 +6476,7 @@ func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantAccessRequestable @@ -5455,7 +6486,7 @@ func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantApplicationRequestable @@ -5465,7 +6496,7 @@ func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5488,7 +6519,7 @@ func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, rec func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5505,7 +6536,7 @@ func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurs func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5522,7 +6553,7 @@ func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5543,7 +6574,7 @@ func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinGroupRequestable @@ -5553,7 +6584,7 @@ func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, o func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinVaultRequestable @@ -5563,7 +6594,7 @@ func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, o func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5614,299 +6645,299 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).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)) + 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.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).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)) + 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.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.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)) + 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.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_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.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_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.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5922,7 +6953,7 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5942,7 +6973,7 @@ func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Contex func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5963,7 +6994,7 @@ func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Con func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestPasswordResetRequestable @@ -5973,7 +7004,7 @@ func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse boo func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6004,7 +7035,7 @@ func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recur func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6016,7 +7047,7 @@ func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6028,7 +7059,7 @@ func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6040,7 +7071,7 @@ func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, r func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestReviewAuditRequestable @@ -6050,7 +7081,7 @@ func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6066,7 +7097,7 @@ func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6090,7 +7121,7 @@ func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6114,7 +7145,7 @@ func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable @@ -6124,7 +7155,7 @@ func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context. func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable @@ -6134,7 +7165,7 @@ func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Conte func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferAuditorGroupRequestable @@ -6144,7 +7175,7 @@ func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recu func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6160,7 +7191,7 @@ func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable @@ -6170,7 +7201,7 @@ func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable @@ -6180,7 +7211,7 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx co func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable @@ -6190,7 +7221,7 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable @@ -6200,7 +7231,7 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6216,7 +7247,7 @@ func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx conte func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6259,7 +7290,7 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6271,7 +7302,7 @@ func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, rec func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6334,7 +7365,7 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6380,7 +7411,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6400,7 +7431,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6416,7 +7447,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx cont func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6436,7 +7467,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6474,7 +7505,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recu func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6494,7 +7525,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6506,7 +7537,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recu func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6522,12 +7553,17 @@ func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.C diags.Append(d...) tkh.SetGroups(val) } + { + val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } return tkh, diags } func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6549,7 +7585,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable @@ -6559,7 +7595,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable @@ -6569,7 +7605,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6581,7 +7617,7 @@ func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6600,7 +7636,7 @@ func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6643,7 +7679,7 @@ func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6663,7 +7699,7 @@ func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6684,7 +7720,7 @@ func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6702,7 +7738,7 @@ func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6735,7 +7771,7 @@ func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6746,9 +7782,29 @@ func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return tkh, diags } +func tfObjectToTKHDSVaultPasswordMetadata(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultPasswordMetadataable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultPasswordMetadataable + tkh = keyhubmodel.NewVaultPasswordMetadata() + tkh.SetDictionary(objAttrs["dictionary"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDuplicate(objAttrs["duplicate"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHash(objAttrs["hash"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLength(int64PToInt32P(objAttrs["length"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLowerCount(int64PToInt32P(objAttrs["lower_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNumberCount(int64PToInt32P(objAttrs["number_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSpecialCount(int64PToInt32P(objAttrs["special_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetStrength(int64PToInt32P(objAttrs["strength"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUpperCount(int64PToInt32P(objAttrs["upper_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6788,7 +7844,7 @@ func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.VaultVaultHolderable @@ -6798,7 +7854,7 @@ func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6871,7 +7927,7 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6891,7 +7947,7 @@ func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6932,7 +7988,7 @@ func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6952,7 +8008,7 @@ func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6967,7 +8023,7 @@ func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6984,7 +8040,7 @@ func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, obj func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7009,7 +8065,7 @@ func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bo func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7025,6 +8081,11 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu diags.Append(d...) tkh.SetParent(val) } + { + val, d := tfObjectToTKHDSVaultPasswordMetadata(ctx, recurse, objAttrs["password_metadata"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordMetadata(val) + } { val, d := tfObjectToTKHDSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) diags.Append(d...) @@ -7055,7 +8116,7 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7072,7 +8133,7 @@ func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7084,7 +8145,7 @@ func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7101,7 +8162,7 @@ func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7204,7 +8265,7 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7255,7 +8316,7 @@ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7275,7 +8336,7 @@ func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7291,7 +8352,7 @@ func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7311,7 +8372,7 @@ func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7329,7 +8390,7 @@ func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7429,7 +8490,7 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 1a0cb81..a096a00 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -16,7 +16,7 @@ import ( func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -39,7 +39,7 @@ func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -74,7 +74,7 @@ func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ErrorReport_applicationErrorParametersable @@ -84,7 +84,7 @@ func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -98,7 +98,7 @@ func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -127,7 +127,7 @@ func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NonLinkableable @@ -137,7 +137,7 @@ func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -152,7 +152,7 @@ func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -163,9 +163,82 @@ func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types return tkh, diags } +func tfObjectToTKHRSAccountVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -232,7 +305,7 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -252,7 +325,7 @@ func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -268,7 +341,7 @@ func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -373,7 +446,7 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -399,7 +472,7 @@ func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -411,7 +484,7 @@ func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, o func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -431,7 +504,7 @@ func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -473,7 +546,7 @@ func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -486,7 +559,7 @@ func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -533,7 +606,7 @@ func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVa func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -554,7 +627,7 @@ func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -599,7 +672,7 @@ func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse b func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -625,7 +698,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable @@ -635,7 +708,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, r func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable @@ -645,7 +718,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable @@ -655,7 +728,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, re func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -692,7 +765,7 @@ func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVa func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -712,7 +785,7 @@ func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recu func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -730,7 +803,7 @@ func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -746,7 +819,7 @@ func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, o func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -775,7 +848,7 @@ func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -788,7 +861,7 @@ func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -808,7 +881,7 @@ func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse boo func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -876,7 +949,7 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -896,7 +969,7 @@ func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -950,7 +1023,7 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -964,9 +1037,82 @@ func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context return tkh, diags } +func tfObjectToTKHRSClientApplicationVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1026,7 +1172,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["o_auth2_client"].IsNull() { val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1034,7 +1180,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["ldap_client"].IsNull() { val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1042,7 +1188,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["saml2_client"].IsNull() { val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1059,7 +1205,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1079,7 +1225,7 @@ func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1126,7 +1272,7 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1170,7 +1316,7 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1194,7 +1340,7 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1233,7 +1379,7 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1286,7 +1432,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1306,7 +1452,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1364,7 +1510,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1384,7 +1530,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1400,7 +1546,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.C func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientOAuth2Client_attributesable @@ -1410,7 +1556,7 @@ func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse b func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1433,7 +1579,7 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientSaml2Client_attributesable @@ -1441,9 +1587,82 @@ func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bo return tkh, diags } +func tfObjectToTKHRSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1498,35 +1717,35 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + 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.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).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)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1542,7 +1761,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1562,7 +1781,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1602,7 +1821,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1622,7 +1841,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, r func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1667,7 +1886,7 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1687,7 +1906,7 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1713,7 +1932,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Cont func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1729,7 +1948,7 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1780,7 +1999,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.DirectoryMaintenanceDirectoryable @@ -1790,7 +2009,7 @@ func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse b func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1816,7 +2035,7 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1869,7 +2088,7 @@ func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1889,7 +2108,7 @@ func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1910,7 +2129,7 @@ func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, rec func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1931,7 +2150,7 @@ func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2045,7 +2264,7 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2107,7 +2326,7 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2127,7 +2346,7 @@ func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2139,7 +2358,7 @@ func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2156,7 +2375,7 @@ func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, o func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2172,7 +2391,7 @@ func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, rec func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2184,7 +2403,7 @@ func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2255,7 +2474,7 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2316,7 +2535,7 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2354,7 +2573,7 @@ func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2374,7 +2593,7 @@ func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2390,7 +2609,7 @@ func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recur func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2417,7 +2636,7 @@ func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2475,7 +2694,7 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2487,7 +2706,7 @@ func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bo func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2507,7 +2726,7 @@ func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2538,7 +2757,7 @@ func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2554,7 +2773,7 @@ func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2575,7 +2794,7 @@ func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Conte func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2632,7 +2851,7 @@ func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2652,7 +2871,7 @@ func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2668,7 +2887,7 @@ func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2705,7 +2924,7 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2725,7 +2944,7 @@ func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2741,7 +2960,7 @@ func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2758,7 +2977,7 @@ func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2778,7 +2997,7 @@ func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2810,7 +3029,7 @@ func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2830,7 +3049,7 @@ func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2859,7 +3078,7 @@ func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3044,7 +3263,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3070,7 +3289,7 @@ func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3117,7 +3336,7 @@ func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3137,7 +3356,7 @@ func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3151,14 +3370,14 @@ func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context return tkh, diags } -func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHRSGroupVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + 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)) @@ -3178,31 +3397,104 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse tkh.SetPermissions(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetColor(val) } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLogo(val) + tkh.SetShareEndTime(val) } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetTile(val) + tkh.SetEndDate(val) } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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 := 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 := 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 := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3222,7 +3514,7 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3279,7 +3571,7 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob 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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3287,7 +3579,7 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob 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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3295,14 +3587,570 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["manual_launchpad_tile"].IsNull() { val, d := tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.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)) + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + return tkh, diags +} + +func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNestedAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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.(*keyhubmodel.AuthInternalAccount)).AuthAccount = *(val.(*keyhubmodel.AuthAccount)) + tkh.SetTypeEscaped(dtype) + } + } + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSNestedClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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 := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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.(*keyhubmodel.GroupAccountGroup)).GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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.(*keyhubmodel.GroupGroupAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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)) + 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 := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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.(*keyhubmodel.OrganizationAccountOrganizationalUnit)).OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + 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.(*keyhubmodel.OrganizationOrganizationalUnitAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3310,34 +4158,14 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob return tkh, diags } -func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - 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)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { +func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable - tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + 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)) @@ -3356,184 +4184,208 @@ func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo diags.Append(d...) tkh.SetPermissions(val) } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetOwner(val) } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - objAttrs := objVal.Attributes() - 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) { +func tfObjectToTKHRSNestedProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + 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 { + { + val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } -func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { +func tfObjectToTKHRSNestedProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - 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) - }) - diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) - } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCustomerDomains(val) - } + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + 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.SetDetails(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpirationTime(val) + tkh.SetLinks(val) } { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + 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.SetFeatures(val) + tkh.SetPermissions(val) } { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetIssueTime(val) + tkh.SetCreatedAt(val) } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetNotBeforeTime(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.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } -func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { +func tfObjectToTKHRSNestedServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkerable - tkh = keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + 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.SetLevel(val) + tkh.SetLinks(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + 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.SetMarkItemMarkerType(val) + tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetParameters(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } -func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { +func tfObjectToTKHRSNestedWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkersable - tkh = keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + 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.SetMarkers(val) + 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 := tfObjectToTKHRSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3581,7 +4433,7 @@ func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Conte func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3609,7 +4461,7 @@ func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Conte func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3637,7 +4489,7 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Contex func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable @@ -3647,7 +4499,7 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx con func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable @@ -3657,7 +4509,7 @@ func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx contex func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3674,7 +4526,7 @@ func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, r func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3704,7 +4556,7 @@ func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Cont func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationNotificationable @@ -3714,7 +4566,7 @@ func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3734,7 +4586,7 @@ func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3751,7 +4603,7 @@ func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Conte func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3771,7 +4623,7 @@ func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context. func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3791,7 +4643,7 @@ func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3807,7 +4659,7 @@ func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3823,7 +4675,7 @@ func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Conte func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3850,7 +4702,7 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, r func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3870,7 +4722,7 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3886,7 +4738,7 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3936,7 +4788,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3968,7 +4820,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, r func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3988,7 +4840,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4004,7 +4856,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4024,7 +4876,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4055,7 +4907,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, re func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4075,7 +4927,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4099,7 +4951,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4146,7 +4998,7 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable @@ -4156,7 +5008,7 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4180,7 +5032,7 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, r func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4200,7 +5052,7 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Cont func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4221,7 +5073,7 @@ func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, re func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4277,7 +5129,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4297,7 +5149,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4336,7 +5188,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4358,7 +5210,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4390,7 +5242,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4432,7 +5284,7 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, rec func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4445,7 +5297,7 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4466,7 +5318,7 @@ func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4505,7 +5357,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4525,7 +5377,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4549,7 +5401,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx co func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4567,7 +5419,7 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4595,7 +5447,7 @@ func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4615,7 +5467,7 @@ func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4631,7 +5483,7 @@ func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4648,7 +5500,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4667,7 +5519,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4682,7 +5534,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recu func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4698,7 +5550,7 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4722,7 +5574,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4739,7 +5591,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, re func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4804,67 +5656,67 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + 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.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).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)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).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)) + 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.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).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)) + 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.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).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)) + 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.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ProvisioningProvisionedAD)).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)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -4880,7 +5732,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4900,7 +5752,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Con func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4944,7 +5796,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, rec func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4964,7 +5816,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx conte func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5008,7 +5860,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, re func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5028,7 +5880,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx cont func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5044,7 +5896,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx c func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5094,7 +5946,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context. func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5108,7 +5960,7 @@ func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Co func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5130,7 +5982,7 @@ func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5142,7 +5994,7 @@ func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5158,7 +6010,7 @@ func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Co func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5174,7 +6026,7 @@ func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx con func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5190,7 +6042,7 @@ func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx cont func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5206,7 +6058,7 @@ func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Contex func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5219,7 +6071,7 @@ func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5236,7 +6088,7 @@ func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestAcceptModificationRequestParametersable @@ -5246,7 +6098,7 @@ func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Conte func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5263,7 +6115,7 @@ func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse boo func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5283,7 +6135,7 @@ func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recur func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5295,7 +6147,7 @@ func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5307,7 +6159,7 @@ func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recu func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5319,7 +6171,7 @@ func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable @@ -5329,7 +6181,7 @@ func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Cont func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5345,7 +6197,7 @@ func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantAccessRequestable @@ -5355,7 +6207,7 @@ func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantApplicationRequestable @@ -5365,7 +6217,7 @@ func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5388,7 +6240,7 @@ func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, rec func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5405,7 +6257,7 @@ func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurs func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5422,7 +6274,7 @@ func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5443,7 +6295,7 @@ func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinGroupRequestable @@ -5453,7 +6305,7 @@ func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, o func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinVaultRequestable @@ -5463,7 +6315,7 @@ func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, o func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5514,299 +6366,299 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).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)) + 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.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).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)) + 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.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_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.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).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() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_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.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["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.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5822,7 +6674,7 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5842,7 +6694,7 @@ func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Contex func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5868,7 +6720,7 @@ func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Con func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5882,7 +6734,7 @@ func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse boo func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5913,7 +6765,7 @@ func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recur func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5925,7 +6777,7 @@ func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5937,7 +6789,7 @@ func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5949,7 +6801,7 @@ func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, r func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestReviewAuditRequestable @@ -5959,7 +6811,7 @@ func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5975,7 +6827,7 @@ func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5999,7 +6851,7 @@ func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6023,7 +6875,7 @@ func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable @@ -6033,7 +6885,7 @@ func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context. func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable @@ -6043,7 +6895,7 @@ func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Conte func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferAuditorGroupRequestable @@ -6053,7 +6905,7 @@ func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recu func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6069,7 +6921,7 @@ func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable @@ -6079,7 +6931,7 @@ func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable @@ -6089,7 +6941,7 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx co func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable @@ -6099,7 +6951,7 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable @@ -6109,7 +6961,7 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6125,7 +6977,7 @@ func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx conte func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6168,7 +7020,7 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6180,7 +7032,7 @@ func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, rec func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6243,7 +7095,7 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6289,7 +7141,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6309,7 +7161,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6325,7 +7177,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx cont func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6345,7 +7197,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6383,7 +7235,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recu func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6403,7 +7255,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6415,7 +7267,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recu func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6444,7 +7296,7 @@ func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.C func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6466,7 +7318,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable @@ -6476,7 +7328,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable @@ -6486,7 +7338,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6498,7 +7350,7 @@ func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6517,7 +7369,7 @@ func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6560,7 +7412,7 @@ func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6580,7 +7432,7 @@ func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6601,7 +7453,7 @@ func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6619,7 +7471,7 @@ func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6652,7 +7504,7 @@ func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6663,9 +7515,29 @@ func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return tkh, diags } +func tfObjectToTKHRSVaultPasswordMetadata(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultPasswordMetadataable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultPasswordMetadataable + tkh = keyhubmodel.NewVaultPasswordMetadata() + tkh.SetDictionary(objAttrs["dictionary"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDuplicate(objAttrs["duplicate"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHash(objAttrs["hash"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLength(int64PToInt32P(objAttrs["length"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLowerCount(int64PToInt32P(objAttrs["lower_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNumberCount(int64PToInt32P(objAttrs["number_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSpecialCount(int64PToInt32P(objAttrs["special_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetStrength(int64PToInt32P(objAttrs["strength"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUpperCount(int64PToInt32P(objAttrs["upper_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6705,7 +7577,7 @@ func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.VaultVaultHolderable @@ -6715,7 +7587,7 @@ func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6788,7 +7660,7 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6808,7 +7680,7 @@ func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6849,7 +7721,7 @@ func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6869,7 +7741,7 @@ func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6885,7 +7757,7 @@ func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6902,7 +7774,7 @@ func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, obj func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6927,7 +7799,7 @@ func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bo func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6944,6 +7816,11 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu diags.Append(d...) tkh.SetParent(val) } + { + val, d := tfObjectToTKHRSVaultPasswordMetadata(ctx, recurse, objAttrs["password_metadata"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordMetadata(val) + } { val, d := tfObjectToTKHRSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) diags.Append(d...) @@ -6980,7 +7857,7 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6997,7 +7874,7 @@ func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7009,7 +7886,7 @@ func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7026,7 +7903,7 @@ func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7129,7 +8006,7 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7180,7 +8057,7 @@ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7200,7 +8077,7 @@ func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7216,7 +8093,7 @@ func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7236,7 +8113,7 @@ func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7254,7 +8131,7 @@ func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7354,7 +8231,7 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index edf6fe8..55a6d6c 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -221,6 +221,72 @@ func tkhToTFObjectDSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) return objVal, diags } +func tkhToTFObjectDSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = accountVaultVaultRecordAttrTypesDSRecurse + } else { + attrs = accountVaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + 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["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1196,6 +1262,72 @@ func tkhToTFObjectDSCertificateCertificate_additionalObjects(recurse bool, tkh k return objVal, diags } +func tkhToTFObjectDSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientApplicationVaultVaultRecordAttrTypesDSRecurse + } else { + attrs = clientApplicationVaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + 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["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1394,6 +1526,11 @@ func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh diags.Append(d...) obj["groups"] = val } + { + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } { val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) diags.Append(d...) @@ -1754,6 +1891,72 @@ func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.C return objVal, diags } +func tkhToTFObjectDSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesDSRecurse + } else { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["deleted_vault_holder_uuid"] = types.StringNull() + { + 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["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1815,10 +2018,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1826,18 +2029,18 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["o_id_c_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) obj["l_d_a_p_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3748,19 +3951,27 @@ func tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(recurse bool, tkh k return objVal, diags } -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse + attrs = groupVaultVaultRecordAttrTypesDSRecurse } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDS + attrs = groupVaultVaultRecordAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3781,40 +3992,98 @@ func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmode diags.Append(d...) obj["permissions"] = val } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val + obj["types"] = val } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse + attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS + attrs = launchpadDisplayedLaunchpadTileAttrTypesDS + } + 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 := 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 + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + 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 := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -3948,7 +4217,775 @@ func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyh return val }) diags.Append(d...) - obj["items"] = val + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTilePrimerAttrTypesDS + } + 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 := 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 + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTile_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 + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadManualLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS + } + 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 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 + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val + } + { + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["details"] = val + } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) + { + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["features"] = val + } + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkerAttrTypesDSRecurse + } else { + attrs = markItemMarkerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + { + val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarker_parametersAttrTypesDSRecurse + } else { + attrs = markItemMarker_parametersAttrTypesDS + } + 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 tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkersAttrTypesDSRecurse + } else { + attrs = markItemMarkersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedAuthInternalAccountAttrTypesDSRecurse + } else { + attrs = nestedAuthInternalAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_directory_uuid"] = types.StringNull() + { + 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["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + { + 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) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedClientOAuth2ClientPermissionAttrTypesDSRecurse + } else { + attrs = nestedClientOAuth2ClientPermissionAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + 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 := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) + diags.Append(d...) + obj["for_group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + diags.Append(d...) + obj["for_system"] = val + } + obj["value"] = stringerToTF(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupAccountGroupAttrTypesDSRecurse + } else { + attrs = nestedGroupAccountGroupAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + 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["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupGroupAccountAttrTypesDSRecurse + } else { + attrs = nestedGroupGroupAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() + { + 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["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupGroupAuditAttrTypesDSRecurse + } else { + attrs = nestedGroupGroupAuditAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() + { + 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) + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesDSRecurse + } else { + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + 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["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesDSRecurse + } else { + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["organizational_unit_uuid"] = types.StringNull() + { + 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["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedProvisioningGroupOnSystemAttrTypesDSRecurse + } else { + attrs = nestedProvisioningGroupOnSystemAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() + { + 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["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3956,19 +4993,27 @@ func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse + attrs = nestedProvisioningProvisionedAccountAttrTypesDSRecurse } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesDS + attrs = nestedProvisioningProvisionedAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3989,220 +5034,176 @@ func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.L diags.Append(d...) obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesDSRecurse } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDS + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesDS } 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 - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadManualLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - obj := make(map[string]attr.Value) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS + obj["provisioned_system_uuid"] = types.StringNull() + { + 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) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + 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())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse + attrs = nestedServiceaccountServiceAccountGroupAttrTypesDSRecurse } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS + attrs = nestedServiceaccountServiceAccountGroupAttrTypesDS } 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 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 - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } + obj["service_account_uuid"] = types.StringNull() { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + 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["details"] = val + obj["links"] = val } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + 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["features"] = val - } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkerAttrTypesDSRecurse - } else { - attrs = markItemMarkerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) - { - val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val + obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["additional"] = types.ListNull(types.StringType) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = markItemMarker_parametersAttrTypesDSRecurse + attrs = nestedWebhookWebhookDeliveryAttrTypesDSRecurse } else { - attrs = markItemMarker_parametersAttrTypesDS + attrs = nestedWebhookWebhookDeliveryAttrTypesDS } 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 tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = markItemMarkersAttrTypesDSRecurse - } else { - attrs = markItemMarkersAttrTypesDS + { + val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["webhook_uuid"] = types.StringNull() + { + 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 } - - obj := make(map[string]attr.Value) { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) + 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["markers"] = val + obj["permissions"] = val + } + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) + diags.Append(d...) + obj["payload"] = val } + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5877,16 +6878,22 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) @@ -5895,22 +6902,16 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) @@ -5919,10 +6920,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6808,16 +7809,40 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_provisioned_system_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) @@ -6826,28 +7851,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["review_audit_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) @@ -6855,12 +7880,6 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["abstract_organizational_unit_modification_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) @@ -6874,28 +7893,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["setup_nested_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -6904,28 +7923,10 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_service_account_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) @@ -6934,58 +7935,58 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["remove_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -6994,40 +7995,40 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["enable_technical_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7848,6 +8849,11 @@ func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, diags.Append(d...) obj["groups"] = val } + { + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8160,6 +9166,34 @@ func tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubm return objVal, diags } +func tkhToTFObjectDSVaultPasswordMetadata(recurse bool, tkh keyhubmodel.VaultPasswordMetadataable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultPasswordMetadataAttrTypesDSRecurse + } else { + attrs = vaultPasswordMetadataAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["dictionary"] = types.BoolPointerValue(tkh.GetDictionary()) + obj["duplicate"] = types.BoolPointerValue(tkh.GetDuplicate()) + obj["hash"] = types.StringPointerValue(tkh.GetHash()) + obj["length"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLength())) + obj["lower_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLowerCount())) + obj["number_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNumberCount())) + obj["special_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetSpecialCount())) + obj["strength"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStrength())) + obj["upper_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUpperCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -8497,6 +9531,11 @@ func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm diags.Append(d...) obj["parent"] = val } + { + val, d := tkhToTFObjectDSVaultPasswordMetadata(recurse, tkh.GetPasswordMetadata()) + diags.Append(d...) + obj["password_metadata"] = val + } { val, d := tkhToTFObjectDSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index f1a56f3..ec5be40 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -221,6 +221,71 @@ func tkhToTFObjectRSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) return objVal, diags } +func tkhToTFObjectRSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = accountVaultVaultRecordAttrTypesRSRecurse + } else { + attrs = accountVaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + 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["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1122,6 +1187,71 @@ func tkhToTFObjectRSCertificateCertificate_additionalObjects(recurse bool, tkh k return objVal, diags } +func tkhToTFObjectRSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientApplicationVaultVaultRecordAttrTypesRSRecurse + } else { + attrs = clientApplicationVaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + 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["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1647,6 +1777,71 @@ func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.C return objVal, diags } +func tkhToTFObjectRSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesRSRecurse + } else { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["deleted_vault_holder_uuid"] = types.StringNull() + { + 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["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1699,10 +1894,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1710,18 +1905,18 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["o_id_c_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) obj["l_d_a_p_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3504,19 +3699,27 @@ func tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(recurse bool, tkh k return objVal, diags } -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse + attrs = groupVaultVaultRecordAttrTypesRSRecurse } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRS + attrs = groupVaultVaultRecordAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3537,36 +3740,37 @@ func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmode diags.Append(d...) obj["permissions"] = val } - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val + obj["types"] = val } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse + attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS + attrs = launchpadDisplayedLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -3574,19 +3778,75 @@ func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse, tkh) + 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["items"] = val + obj["links"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags + { + 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["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + 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 := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS + } + 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.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(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 tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { @@ -3695,19 +3955,433 @@ func tkhToTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTilePrimerAttrTypesRS + } + 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 + }) + 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 + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTile_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 tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadManualLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS + } + 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 tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val + } + { + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["details"] = val + } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) + { + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["features"] = val + } + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkerAttrTypesRSRecurse + } else { + attrs = markItemMarkerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + { + val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarker_parametersAttrTypesRSRecurse + } else { + attrs = markItemMarker_parametersAttrTypesRS + } + 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 tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkersAttrTypesRSRecurse + } else { + attrs = markItemMarkersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedAuthInternalAccountAttrTypesRSRecurse + } else { + attrs = nestedAuthInternalAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_directory_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedClientOAuth2ClientPermissionAttrTypesRSRecurse + } else { + attrs = nestedClientOAuth2ClientPermissionAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + 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["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupAccountGroupAttrTypesRSRecurse + } else { + attrs = nestedGroupAccountGroupAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupGroupAccountAttrTypesRSRecurse + } else { + attrs = nestedGroupGroupAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse + attrs = nestedGroupGroupAuditAttrTypesRSRecurse } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesRS + attrs = nestedGroupGroupAuditAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3728,220 +4402,325 @@ func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.L diags.Append(d...) obj["permissions"] = val } + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesRSRecurse } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRS + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesRS } 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 + if recurse { + { + val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } + obj["account_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesRSRecurse } else { - attrs = launchpadManualLaunchpadTileAttrTypesRS + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + if recurse { + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["organizational_unit_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse + attrs = nestedProvisioningGroupOnSystemAttrTypesRSRecurse } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS + attrs = nestedProvisioningGroupOnSystemAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() + { + 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["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse + attrs = nestedProvisioningProvisionedAccountAttrTypesRSRecurse } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS + attrs = nestedProvisioningProvisionedAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesRSRecurse } else { - attrs = licenseKeyHubLicenseInfoAttrTypesRS + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } + obj["provisioned_system_uuid"] = types.StringNull() { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + 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["details"] = val + obj["links"] = val } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + 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["features"] = val + obj["permissions"] = val } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + 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 tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = markItemMarkerAttrTypesRSRecurse + attrs = nestedServiceaccountServiceAccountGroupAttrTypesRSRecurse } else { - attrs = markItemMarkerAttrTypesRS + attrs = nestedServiceaccountServiceAccountGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + if recurse { + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["service_account_uuid"] = types.StringNull() { - val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + 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["parameters"] = val + 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["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = markItemMarker_parametersAttrTypesRSRecurse + attrs = nestedWebhookWebhookDeliveryAttrTypesRSRecurse } else { - attrs = markItemMarker_parametersAttrTypesRS + attrs = nestedWebhookWebhookDeliveryAttrTypesRS } 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 tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = markItemMarkersAttrTypesRSRecurse - } else { - attrs = markItemMarkersAttrTypesRS + { + val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["webhook_uuid"] = types.StringNull() + { + 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 } - - obj := make(map[string]attr.Value) { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) + 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["markers"] = val + obj["permissions"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookPush(false, tkh.GetPayload()) + diags.Append(d...) + obj["payload"] = val } + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5479,16 +6258,22 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) @@ -5497,22 +6282,16 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) @@ -5521,10 +6300,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6370,16 +7149,40 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_provisioned_system_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) @@ -6388,28 +7191,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["review_audit_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) @@ -6417,12 +7220,6 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["abstract_organizational_unit_modification_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) @@ -6436,28 +7233,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["setup_nested_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -6466,28 +7263,10 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_service_account_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) @@ -6496,58 +7275,58 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["remove_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -6556,40 +7335,40 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["enable_technical_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7682,6 +8461,34 @@ func tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubm return objVal, diags } +func tkhToTFObjectRSVaultPasswordMetadata(recurse bool, tkh keyhubmodel.VaultPasswordMetadataable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultPasswordMetadataAttrTypesRSRecurse + } else { + attrs = vaultPasswordMetadataAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["dictionary"] = types.BoolPointerValue(tkh.GetDictionary()) + obj["duplicate"] = types.BoolPointerValue(tkh.GetDuplicate()) + obj["hash"] = types.StringPointerValue(tkh.GetHash()) + obj["length"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLength())) + obj["lower_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLowerCount())) + obj["number_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNumberCount())) + obj["special_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetSpecialCount())) + obj["strength"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStrength())) + obj["upper_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUpperCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -8014,6 +8821,11 @@ func tkhToTFObjectRSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm } obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) + { + val, d := tkhToTFObjectRSVaultPasswordMetadata(recurse, tkh.GetPasswordMetadata()) + diags.Append(d...) + obj["password_metadata"] = val + } { val, d := tkhToTFObjectRSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) diags.Append(d...) diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go index d5a52a3..062b340 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/group_resource.go @@ -34,7 +34,7 @@ type groupResource struct { } func (r *groupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_group" + resp.TypeName = ProviderName + "_group" } func (r *groupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 836a4ce..86a8232 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -29,6 +29,8 @@ type KeyHubProvider struct { version string } +const ProviderName = "keyhubpreview" + // KeyHubProviderModel describes the provider data model. type KeyHubProviderModel struct { Issuer types.String `tfsdk:"issuer"` @@ -37,8 +39,9 @@ type KeyHubProviderModel struct { } func (p *KeyHubProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse) { - resp.TypeName = "keyhubpreview" + resp.TypeName = ProviderName resp.Version = p.version + tflog.Info(ctx, "Provider name set to "+resp.TypeName) } func (p *KeyHubProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) { @@ -149,7 +152,7 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe ctx = tflog.MaskFieldValuesWithFieldKeys(ctx, "keyhub_clientsecret") tflog.Info(ctx, "Connecting to Topicus KeyHub") - adapter, err := keyhub.NewKeyHubRequestAdapter(http.DefaultClient, issuer, clientid, clientsecret) + adapter, err := keyhub.NewKeyHubRequestAdapter(&http.Client{}, issuer, clientid, clientsecret) if err != nil { resp.Diagnostics.AddError( "Unable to create Topicus KeyHub API client", @@ -170,6 +173,7 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe func (p *KeyHubProvider) Resources(ctx context.Context) []func() resource.Resource { return []func() resource.Resource{ NewGroupResource, + NewVaultRecordResource, } } diff --git a/internal/provider/resource-vaultrecord.go b/internal/provider/resource-vaultrecord.go new file mode 100644 index 0000000..0f84fb7 --- /dev/null +++ b/internal/provider/resource-vaultrecord.go @@ -0,0 +1,262 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubgroup "github.com/topicuskeyhub/sdk-go/group" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubvaultrecord "github.com/topicuskeyhub/sdk-go/vaultrecord" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &vaultRecordResource{} + _ resource.ResourceWithImportState = &vaultRecordResource{} + _ resource.ResourceWithConfigure = &vaultRecordResource{} +) + +func NewVaultRecordResource() resource.Resource { + return &vaultRecordResource{} +} + +// groupResource defines the resource implementation. +type vaultRecordResource struct { + client *keyhub.KeyHubClient +} + +func (r *vaultRecordResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = ProviderName + "_vaultrecord" + tflog.Info(ctx, "Registred resource "+resp.TypeName) +} + +func (r *vaultRecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: resourceSchemaAttrsGroupVaultVaultRecord(true), + } +} + +func (r *vaultRecordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *vaultRecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkhGroup, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Creating Topicus KeyHub vaultrecord") + newWrapper := keyhubmodels.NewVaultVaultRecordLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.VaultVaultRecordable{newTkh}) + wrapper, err := r.client.Group().ByGroupidInt64(*tkhGroup.GetLinks()[0].GetId()).Vault().Record().Post( + ctx, newWrapper, &keyhubgroup.ItemVaultRecordRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubgroup.ItemVaultRecordRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vaultrecord", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf = fillGroupUuid(ctx, tf, data) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + + tflog.Info(ctx, "Created a new Topicus KeyHub vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *vaultRecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + uuid := data.UUID.ValueString() + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Reading vaultrecord from Topicus KeyHub by UUID") + wrapper, err := r.client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vaultrecord", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf = fillGroupUuid(ctx, tf, data) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *vaultRecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkhGroup, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Updating Topicus KeyHub vaultrecord") + tkh, err := r.client.Group().ByGroupidInt64(*tkhGroup.GetLinks()[0].GetId()).Vault().Record().ByIdInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( + ctx, newTkh, &keyhubgroup.ItemVaultRecordRecordItemRequestBuilderPutRequestConfiguration{ + QueryParameters: &keyhubgroup.ItemVaultRecordRecordItemRequestBuilderPutQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf = fillGroupUuid(ctx, tf, data) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + tflog.Info(ctx, "Updated a Topicus KeyHub vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *vaultRecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data groupGroupDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Deleting vaultrecord from Topicus KeyHub") + err := r.client.Group().ByGroupidInt64(-1).Vault().Record().ByIdInt64(-1).WithUrl(getSelfLink(data.Links).Href.ValueString()).Delete(ctx, nil) + if !isHttpStatusCodeOk(ctx, 404, err, &resp.Diagnostics) { + return + } + tflog.Info(ctx, "Deleted vaultrecord from Topicus KeyHub") +} + +func (r *vaultRecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) +} + +func getSelfLink(linksAttr basetypes.ListValue) restLinkDataRS { + var links restLinkDataRS + fillDataStructFromTFObjectRSRestLink(&links, linksAttr.Elements()[0].(basetypes.ObjectValue)) + return links +} + +func isHttpStatusCodeOk(ctx context.Context, status int32, err error, diags *diag.Diagnostics) bool { + if err != nil { + report, ok := err.(keyhubmodels.ErrorReportable) + if !ok || *report.GetCode() != status { + diags.AddError("Client Error", fmt.Sprintf("Unexpected status code: %s", errorReportToString(ctx, err))) + return false + } + } + return true +} + +func fillGroupUuid(ctx context.Context, tf basetypes.ObjectValue, data groupVaultVaultRecordDataRS) basetypes.ObjectValue { + obj := tf.Attributes() + obj["group_uuid"] = types.StringValue(data.GroupUUID.ValueString()) + return types.ObjectValueMust(tf.AttributeTypes(ctx), obj) +} + +func collectAdditional(additionalObjects basetypes.ObjectValue) []string { + ret := make([]string, 0) + for name, attr := range additionalObjects.Attributes() { + if !attr.IsNull() && !attr.IsUnknown() { + ret = append(ret, name) + } + } + return ret +}