package Google::Cloud::BigQuery::V2::EncryptionConfig::Types;

use strict;
use warnings;

use Type::Library -base;
use Type::Utils -all;
use Types::Standard -types;

declare 'EncryptionConfiguration',
    as InstanceOf['Google::Cloud::BigQuery::V2::EncryptionConfig::EncryptionConfiguration'];

coerce 'EncryptionConfiguration',
    from HashRef, via { 'Google::Cloud::BigQuery::V2::EncryptionConfig::EncryptionConfiguration'->new($_) };

declare 'RepeatedEncryptionConfiguration',
    as ArrayRef[EncryptionConfiguration()];

coerce 'RepeatedEncryptionConfiguration',
    from ArrayRef[HashRef], via { [ map { 'Google::Cloud::BigQuery::V2::EncryptionConfig::EncryptionConfiguration'->new($_) } @$_ ] };

declare 'MapStringEncryptionConfiguration',
    as HashRef[EncryptionConfiguration()];

1;
