| 1 | package Google::Cloud::Networksecurity::V1::SecurityProfileGroup::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 'SecurityProfileGroup', | ||
| 11 | as InstanceOf['Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfileGroup']; | ||
| 12 | |||
| 13 | coerce 'SecurityProfileGroup', | ||
| 14 | from HashRef, via { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfileGroup'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSecurityProfileGroup', | ||
| 17 | as ArrayRef[SecurityProfileGroup()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSecurityProfileGroup', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfileGroup'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSecurityProfileGroup', | ||
| 23 | as HashRef[SecurityProfileGroup()]; | ||
| 24 | |||
| 25 | declare 'LabelsEntry', | ||
| 26 | as InstanceOf['Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfileGroup::LabelsEntry']; | ||
| 27 | |||
| 28 | coerce 'LabelsEntry', | ||
| 29 | from HashRef, via { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfileGroup::LabelsEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedLabelsEntry', | ||
| 32 | as ArrayRef[LabelsEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedLabelsEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfileGroup::LabelsEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringLabelsEntry', | ||
| 38 | as HashRef[LabelsEntry()]; | ||
| 39 | |||
| 40 | declare 'SecurityProfile', | ||
| 41 | as InstanceOf['Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfile']; | ||
| 42 | |||
| 43 | coerce 'SecurityProfile', | ||
| 44 | from HashRef, via { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfile'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedSecurityProfile', | ||
| 47 | as ArrayRef[SecurityProfile()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedSecurityProfile', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfile'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringSecurityProfile', | ||
| 53 | as HashRef[SecurityProfile()]; | ||
| 54 | |||
| 55 | declare 'ProfileType', | ||
| 56 | as (Int | Str); | ||
| 57 | |||
| 58 | declare 'LabelsEntry', | ||
| 59 | as InstanceOf['Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfile::LabelsEntry']; | ||
| 60 | |||
| 61 | coerce 'LabelsEntry', | ||
| 62 | from HashRef, via { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfile::LabelsEntry'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedLabelsEntry', | ||
| 65 | as ArrayRef[LabelsEntry()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedLabelsEntry', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networksecurity::V1::SecurityProfileGroup::SecurityProfile::LabelsEntry'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringLabelsEntry', | ||
| 71 | as HashRef[LabelsEntry()]; | ||
| 72 | |||
| 73 | 1; | ||
| 74 | |||
| 75 | __END__ |