« Spanner/Admin/Database/V1/Common.pm
↑ Summary
Spanner/Admin/Database/V1/SpannerDatabaseAdmin/Types.pm »
| 1 | package Google::Spanner::Admin::Database::V1::Common::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'DatabaseDialect', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'OperationProgress', | ||
| 14 | as InstanceOf['Google::Spanner::Admin::Database::V1::Common::OperationProgress']; | ||
| 15 | |||
| 16 | coerce 'OperationProgress', | ||
| 17 | from HashRef, via { 'Google::Spanner::Admin::Database::V1::Common::OperationProgress'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedOperationProgress', | ||
| 20 | as ArrayRef[OperationProgress()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedOperationProgress', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Admin::Database::V1::Common::OperationProgress'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringOperationProgress', | ||
| 26 | as HashRef[OperationProgress()]; | ||
| 27 | |||
| 28 | declare 'EncryptionConfig', | ||
| 29 | as InstanceOf['Google::Spanner::Admin::Database::V1::Common::EncryptionConfig']; | ||
| 30 | |||
| 31 | coerce 'EncryptionConfig', | ||
| 32 | from HashRef, via { 'Google::Spanner::Admin::Database::V1::Common::EncryptionConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedEncryptionConfig', | ||
| 35 | as ArrayRef[EncryptionConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedEncryptionConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Admin::Database::V1::Common::EncryptionConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringEncryptionConfig', | ||
| 41 | as HashRef[EncryptionConfig()]; | ||
| 42 | |||
| 43 | declare 'EncryptionInfo', | ||
| 44 | as InstanceOf['Google::Spanner::Admin::Database::V1::Common::EncryptionInfo']; | ||
| 45 | |||
| 46 | coerce 'EncryptionInfo', | ||
| 47 | from HashRef, via { 'Google::Spanner::Admin::Database::V1::Common::EncryptionInfo'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedEncryptionInfo', | ||
| 50 | as ArrayRef[EncryptionInfo()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedEncryptionInfo', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Admin::Database::V1::Common::EncryptionInfo'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringEncryptionInfo', | ||
| 56 | as HashRef[EncryptionInfo()]; | ||
| 57 | |||
| 58 | declare 'Type', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | 1; | ||
| 62 | |||
| 63 | __END__ |