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