| 1 | package Google::Monitoring::V3::Metric::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 'Point', | ||
| 11 | as InstanceOf['Google::Monitoring::V3::Metric::Point']; | ||
| 12 | |||
| 13 | coerce 'Point', | ||
| 14 | from HashRef, via { 'Google::Monitoring::V3::Metric::Point'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedPoint', | ||
| 17 | as ArrayRef[Point()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedPoint', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::Point'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringPoint', | ||
| 23 | as HashRef[Point()]; | ||
| 24 | |||
| 25 | declare 'TimeSeries', | ||
| 26 | as InstanceOf['Google::Monitoring::V3::Metric::TimeSeries']; | ||
| 27 | |||
| 28 | coerce 'TimeSeries', | ||
| 29 | from HashRef, via { 'Google::Monitoring::V3::Metric::TimeSeries'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedTimeSeries', | ||
| 32 | as ArrayRef[TimeSeries()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedTimeSeries', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::TimeSeries'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringTimeSeries', | ||
| 38 | as HashRef[TimeSeries()]; | ||
| 39 | |||
| 40 | declare 'TimeSeriesDescriptor', | ||
| 41 | as InstanceOf['Google::Monitoring::V3::Metric::TimeSeriesDescriptor']; | ||
| 42 | |||
| 43 | coerce 'TimeSeriesDescriptor', | ||
| 44 | from HashRef, via { 'Google::Monitoring::V3::Metric::TimeSeriesDescriptor'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTimeSeriesDescriptor', | ||
| 47 | as ArrayRef[TimeSeriesDescriptor()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTimeSeriesDescriptor', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::TimeSeriesDescriptor'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTimeSeriesDescriptor', | ||
| 53 | as HashRef[TimeSeriesDescriptor()]; | ||
| 54 | |||
| 55 | declare 'ValueDescriptor', | ||
| 56 | as InstanceOf['Google::Monitoring::V3::Metric::TimeSeriesDescriptor::ValueDescriptor']; | ||
| 57 | |||
| 58 | coerce 'ValueDescriptor', | ||
| 59 | from HashRef, via { 'Google::Monitoring::V3::Metric::TimeSeriesDescriptor::ValueDescriptor'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedValueDescriptor', | ||
| 62 | as ArrayRef[ValueDescriptor()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedValueDescriptor', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::TimeSeriesDescriptor::ValueDescriptor'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringValueDescriptor', | ||
| 68 | as HashRef[ValueDescriptor()]; | ||
| 69 | |||
| 70 | declare 'TimeSeriesData', | ||
| 71 | as InstanceOf['Google::Monitoring::V3::Metric::TimeSeriesData']; | ||
| 72 | |||
| 73 | coerce 'TimeSeriesData', | ||
| 74 | from HashRef, via { 'Google::Monitoring::V3::Metric::TimeSeriesData'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedTimeSeriesData', | ||
| 77 | as ArrayRef[TimeSeriesData()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedTimeSeriesData', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::TimeSeriesData'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringTimeSeriesData', | ||
| 83 | as HashRef[TimeSeriesData()]; | ||
| 84 | |||
| 85 | declare 'PointData', | ||
| 86 | as InstanceOf['Google::Monitoring::V3::Metric::TimeSeriesData::PointData']; | ||
| 87 | |||
| 88 | coerce 'PointData', | ||
| 89 | from HashRef, via { 'Google::Monitoring::V3::Metric::TimeSeriesData::PointData'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedPointData', | ||
| 92 | as ArrayRef[PointData()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedPointData', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::TimeSeriesData::PointData'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringPointData', | ||
| 98 | as HashRef[PointData()]; | ||
| 99 | |||
| 100 | declare 'LabelValue', | ||
| 101 | as InstanceOf['Google::Monitoring::V3::Metric::LabelValue']; | ||
| 102 | |||
| 103 | coerce 'LabelValue', | ||
| 104 | from HashRef, via { 'Google::Monitoring::V3::Metric::LabelValue'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedLabelValue', | ||
| 107 | as ArrayRef[LabelValue()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedLabelValue', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::LabelValue'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringLabelValue', | ||
| 113 | as HashRef[LabelValue()]; | ||
| 114 | |||
| 115 | declare 'QueryError', | ||
| 116 | as InstanceOf['Google::Monitoring::V3::Metric::QueryError']; | ||
| 117 | |||
| 118 | coerce 'QueryError', | ||
| 119 | from HashRef, via { 'Google::Monitoring::V3::Metric::QueryError'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedQueryError', | ||
| 122 | as ArrayRef[QueryError()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedQueryError', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::QueryError'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringQueryError', | ||
| 128 | as HashRef[QueryError()]; | ||
| 129 | |||
| 130 | declare 'TextLocator', | ||
| 131 | as InstanceOf['Google::Monitoring::V3::Metric::TextLocator']; | ||
| 132 | |||
| 133 | coerce 'TextLocator', | ||
| 134 | from HashRef, via { 'Google::Monitoring::V3::Metric::TextLocator'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedTextLocator', | ||
| 137 | as ArrayRef[TextLocator()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedTextLocator', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::TextLocator'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringTextLocator', | ||
| 143 | as HashRef[TextLocator()]; | ||
| 144 | |||
| 145 | declare 'Position', | ||
| 146 | as InstanceOf['Google::Monitoring::V3::Metric::TextLocator::Position']; | ||
| 147 | |||
| 148 | coerce 'Position', | ||
| 149 | from HashRef, via { 'Google::Monitoring::V3::Metric::TextLocator::Position'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedPosition', | ||
| 152 | as ArrayRef[Position()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedPosition', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Metric::TextLocator::Position'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringPosition', | ||
| 158 | as HashRef[Position()]; | ||
| 159 | |||
| 160 | 1; | ||
| 161 | |||
| 162 | __END__ |