Firestore/Admin/V1/Index/Types.pm untested

filter: Statementstmt 0.0% 0 / 141 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 146 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Firestore::Admin::V1::Index::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 'Index',
11 as InstanceOf['Google::Firestore::Admin::V1::Index::Index'];
12  
13 coerce 'Index',
14 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index'->new($_) };
15  
16 declare 'RepeatedIndex',
17 as ArrayRef[Index()];
18  
19 coerce 'RepeatedIndex',
20 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index'->new($_) } @$_ ] };
21  
22 declare 'MapStringIndex',
23 as HashRef[Index()];
24  
25 declare 'QueryScope',
26 as (Int | Str);
27  
28 declare 'ApiScope',
29 as (Int | Str);
30  
31 declare 'State',
32 as (Int | Str);
33  
34 declare 'Density',
35 as (Int | Str);
36  
37 declare 'IndexField',
38 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::IndexField'];
39  
40 coerce 'IndexField',
41 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::IndexField'->new($_) };
42  
43 declare 'RepeatedIndexField',
44 as ArrayRef[IndexField()];
45  
46 coerce 'RepeatedIndexField',
47 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::IndexField'->new($_) } @$_ ] };
48  
49 declare 'MapStringIndexField',
50 as HashRef[IndexField()];
51  
52 declare 'Order',
53 as (Int | Str);
54  
55 declare 'ArrayConfig',
56 as (Int | Str);
57  
58 declare 'VectorConfig',
59 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::IndexField::VectorConfig'];
60  
61 coerce 'VectorConfig',
62 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::IndexField::VectorConfig'->new($_) };
63  
64 declare 'RepeatedVectorConfig',
65 as ArrayRef[VectorConfig()];
66  
67 coerce 'RepeatedVectorConfig',
68 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::IndexField::VectorConfig'->new($_) } @$_ ] };
69  
70 declare 'MapStringVectorConfig',
71 as HashRef[VectorConfig()];
72  
73 declare 'FlatIndex',
74 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::IndexField::VectorConfig::FlatIndex'];
75  
76 coerce 'FlatIndex',
77 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::IndexField::VectorConfig::FlatIndex'->new($_) };
78  
79 declare 'RepeatedFlatIndex',
80 as ArrayRef[FlatIndex()];
81  
82 coerce 'RepeatedFlatIndex',
83 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::IndexField::VectorConfig::FlatIndex'->new($_) } @$_ ] };
84  
85 declare 'MapStringFlatIndex',
86 as HashRef[FlatIndex()];
87  
88 declare 'SearchConfig',
89 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig'];
90  
91 coerce 'SearchConfig',
92 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig'->new($_) };
93  
94 declare 'RepeatedSearchConfig',
95 as ArrayRef[SearchConfig()];
96  
97 coerce 'RepeatedSearchConfig',
98 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig'->new($_) } @$_ ] };
99  
100 declare 'MapStringSearchConfig',
101 as HashRef[SearchConfig()];
102  
103 declare 'TextIndexType',
104 as (Int | Str);
105  
106 declare 'TextMatchType',
107 as (Int | Str);
108  
109 declare 'SearchTextIndexSpec',
110 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchTextIndexSpec'];
111  
112 coerce 'SearchTextIndexSpec',
113 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchTextIndexSpec'->new($_) };
114  
115 declare 'RepeatedSearchTextIndexSpec',
116 as ArrayRef[SearchTextIndexSpec()];
117  
118 coerce 'RepeatedSearchTextIndexSpec',
119 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchTextIndexSpec'->new($_) } @$_ ] };
120  
121 declare 'MapStringSearchTextIndexSpec',
122 as HashRef[SearchTextIndexSpec()];
123  
124 declare 'SearchTextSpec',
125 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchTextSpec'];
126  
127 coerce 'SearchTextSpec',
128 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchTextSpec'->new($_) };
129  
130 declare 'RepeatedSearchTextSpec',
131 as ArrayRef[SearchTextSpec()];
132  
133 coerce 'RepeatedSearchTextSpec',
134 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchTextSpec'->new($_) } @$_ ] };
135  
136 declare 'MapStringSearchTextSpec',
137 as HashRef[SearchTextSpec()];
138  
139 declare 'SearchGeoSpec',
140 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchGeoSpec'];
141  
142 coerce 'SearchGeoSpec',
143 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchGeoSpec'->new($_) };
144  
145 declare 'RepeatedSearchGeoSpec',
146 as ArrayRef[SearchGeoSpec()];
147  
148 coerce 'RepeatedSearchGeoSpec',
149 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::IndexField::SearchConfig::SearchGeoSpec'->new($_) } @$_ ] };
150  
151 declare 'MapStringSearchGeoSpec',
152 as HashRef[SearchGeoSpec()];
153  
154 declare 'SearchIndexOptions',
155 as InstanceOf['Google::Firestore::Admin::V1::Index::Index::SearchIndexOptions'];
156  
157 coerce 'SearchIndexOptions',
158 from HashRef, via { 'Google::Firestore::Admin::V1::Index::Index::SearchIndexOptions'->new($_) };
159  
160 declare 'RepeatedSearchIndexOptions',
161 as ArrayRef[SearchIndexOptions()];
162  
163 coerce 'RepeatedSearchIndexOptions',
164 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Index::Index::SearchIndexOptions'->new($_) } @$_ ] };
165  
166 declare 'MapStringSearchIndexOptions',
167 as HashRef[SearchIndexOptions()];
168  
169 1;
170  
171 __END__