| 1 | package Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::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 'OSPolicyComplianceState', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'OSPolicyResourceConfigStep', | ||
| 14 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceConfigStep']; | ||
| 15 | |||
| 16 | coerce 'OSPolicyResourceConfigStep', | ||
| 17 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceConfigStep'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedOSPolicyResourceConfigStep', | ||
| 20 | as ArrayRef[OSPolicyResourceConfigStep()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedOSPolicyResourceConfigStep', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceConfigStep'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringOSPolicyResourceConfigStep', | ||
| 26 | as HashRef[OSPolicyResourceConfigStep()]; | ||
| 27 | |||
| 28 | declare 'Type', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Outcome', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'OSPolicyResourceCompliance', | ||
| 35 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceCompliance']; | ||
| 36 | |||
| 37 | coerce 'OSPolicyResourceCompliance', | ||
| 38 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceCompliance'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedOSPolicyResourceCompliance', | ||
| 41 | as ArrayRef[OSPolicyResourceCompliance()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedOSPolicyResourceCompliance', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceCompliance'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringOSPolicyResourceCompliance', | ||
| 47 | as HashRef[OSPolicyResourceCompliance()]; | ||
| 48 | |||
| 49 | declare 'ExecResourceOutput', | ||
| 50 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceCompliance::ExecResourceOutput']; | ||
| 51 | |||
| 52 | coerce 'ExecResourceOutput', | ||
| 53 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceCompliance::ExecResourceOutput'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedExecResourceOutput', | ||
| 56 | as ArrayRef[ExecResourceOutput()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedExecResourceOutput', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::ConfigCommon::OSPolicyResourceCompliance::ExecResourceOutput'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringExecResourceOutput', | ||
| 62 | as HashRef[ExecResourceOutput()]; | ||
| 63 | |||
| 64 | 1; | ||
| 65 | |||
| 66 | __END__ |