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