| 1 | package Google::Cloud::Securitycenter::V2::Process::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 'Process', | ||
| 11 | as InstanceOf['Google::Cloud::Securitycenter::V2::Process::Process']; | ||
| 12 | |||
| 13 | coerce 'Process', | ||
| 14 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Process::Process'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedProcess', | ||
| 17 | as ArrayRef[Process()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedProcess', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Process::Process'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringProcess', | ||
| 23 | as HashRef[Process()]; | ||
| 24 | |||
| 25 | declare 'EnvironmentVariable', | ||
| 26 | as InstanceOf['Google::Cloud::Securitycenter::V2::Process::EnvironmentVariable']; | ||
| 27 | |||
| 28 | coerce 'EnvironmentVariable', | ||
| 29 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Process::EnvironmentVariable'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedEnvironmentVariable', | ||
| 32 | as ArrayRef[EnvironmentVariable()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedEnvironmentVariable', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Process::EnvironmentVariable'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringEnvironmentVariable', | ||
| 38 | as HashRef[EnvironmentVariable()]; | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |