OLD | NEW |
1 library googleapis_beta.dlp.v2beta1.test; | 1 library googleapis_beta.dlp.v2beta1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | |
5 import "dart:async" as async; | 4 import "dart:async" as async; |
6 import "dart:convert" as convert; | 5 import "dart:convert" as convert; |
7 | 6 |
8 import 'package:http/http.dart' as http; | 7 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | |
10 import 'package:test/test.dart' as unittest; | 8 import 'package:test/test.dart' as unittest; |
11 | 9 |
12 import 'package:googleapis_beta/dlp/v2beta1.dart' as api; | 10 import 'package:googleapis_beta/dlp/v2beta1.dart' as api; |
13 | 11 |
14 class HttpServerMock extends http.BaseClient { | 12 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 13 core.Function _callback; |
16 core.bool _expectJson; | 14 core.bool _expectJson; |
17 | 15 |
18 void register(core.Function callback, core.bool expectJson) { | 16 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 17 _callback = callback; |
20 _expectJson = expectJson; | 18 _expectJson = expectJson; |
21 } | 19 } |
22 | 20 |
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { | 21 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
24 if (_expectJson) { | 22 if (_expectJson) { |
25 return request.finalize() | 23 return request |
| 24 .finalize() |
26 .transform(convert.UTF8.decoder) | 25 .transform(convert.UTF8.decoder) |
27 .join('') | 26 .join('') |
28 .then((core.String jsonString) { | 27 .then((core.String jsonString) { |
29 if (jsonString.isEmpty) { | 28 if (jsonString.isEmpty) { |
30 return _callback(request, null); | 29 return _callback(request, null); |
31 } else { | 30 } else { |
32 return _callback(request, convert.JSON.decode(jsonString)); | 31 return _callback(request, convert.JSON.decode(jsonString)); |
33 } | 32 } |
34 }); | 33 }); |
35 } else { | 34 } else { |
36 var stream = request.finalize(); | 35 var stream = request.finalize(); |
37 if (stream == null) { | 36 if (stream == null) { |
38 return _callback(request, []); | 37 return _callback(request, []); |
39 } else { | 38 } else { |
40 return stream.toBytes().then((data) { | 39 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 40 return _callback(request, data); |
42 }); | 41 }); |
43 } | 42 } |
44 } | 43 } |
45 } | 44 } |
46 } | 45 } |
47 | 46 |
48 http.StreamedResponse stringResponse( | 47 http.StreamedResponse stringResponse(core.int status, |
49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 48 core.Map<core.String, core.String> headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 49 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 50 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 51 } |
53 | 52 |
54 core.int buildCounterGoogleLongrunningCancelOperationRequest = 0; | 53 core.int buildCounterGoogleLongrunningCancelOperationRequest = 0; |
55 buildGoogleLongrunningCancelOperationRequest() { | 54 buildGoogleLongrunningCancelOperationRequest() { |
56 var o = new api.GoogleLongrunningCancelOperationRequest(); | 55 var o = new api.GoogleLongrunningCancelOperationRequest(); |
57 buildCounterGoogleLongrunningCancelOperationRequest++; | 56 buildCounterGoogleLongrunningCancelOperationRequest++; |
58 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) { | 57 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {} |
59 } | |
60 buildCounterGoogleLongrunningCancelOperationRequest--; | 58 buildCounterGoogleLongrunningCancelOperationRequest--; |
61 return o; | 59 return o; |
62 } | 60 } |
63 | 61 |
64 checkGoogleLongrunningCancelOperationRequest(api.GoogleLongrunningCancelOperatio
nRequest o) { | 62 checkGoogleLongrunningCancelOperationRequest( |
| 63 api.GoogleLongrunningCancelOperationRequest o) { |
65 buildCounterGoogleLongrunningCancelOperationRequest++; | 64 buildCounterGoogleLongrunningCancelOperationRequest++; |
66 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) { | 65 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {} |
67 } | |
68 buildCounterGoogleLongrunningCancelOperationRequest--; | 66 buildCounterGoogleLongrunningCancelOperationRequest--; |
69 } | 67 } |
70 | 68 |
71 buildUnnamed3310() { | 69 buildUnnamed3303() { |
72 var o = new core.List<api.GoogleLongrunningOperation>(); | 70 var o = new core.List<api.GoogleLongrunningOperation>(); |
73 o.add(buildGoogleLongrunningOperation()); | 71 o.add(buildGoogleLongrunningOperation()); |
74 o.add(buildGoogleLongrunningOperation()); | 72 o.add(buildGoogleLongrunningOperation()); |
75 return o; | 73 return o; |
76 } | 74 } |
77 | 75 |
78 checkUnnamed3310(core.List<api.GoogleLongrunningOperation> o) { | 76 checkUnnamed3303(core.List<api.GoogleLongrunningOperation> o) { |
79 unittest.expect(o, unittest.hasLength(2)); | 77 unittest.expect(o, unittest.hasLength(2)); |
80 checkGoogleLongrunningOperation(o[0]); | 78 checkGoogleLongrunningOperation(o[0]); |
81 checkGoogleLongrunningOperation(o[1]); | 79 checkGoogleLongrunningOperation(o[1]); |
82 } | 80 } |
83 | 81 |
84 core.int buildCounterGoogleLongrunningListOperationsResponse = 0; | 82 core.int buildCounterGoogleLongrunningListOperationsResponse = 0; |
85 buildGoogleLongrunningListOperationsResponse() { | 83 buildGoogleLongrunningListOperationsResponse() { |
86 var o = new api.GoogleLongrunningListOperationsResponse(); | 84 var o = new api.GoogleLongrunningListOperationsResponse(); |
87 buildCounterGoogleLongrunningListOperationsResponse++; | 85 buildCounterGoogleLongrunningListOperationsResponse++; |
88 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { | 86 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { |
89 o.nextPageToken = "foo"; | 87 o.nextPageToken = "foo"; |
90 o.operations = buildUnnamed3310(); | 88 o.operations = buildUnnamed3303(); |
91 } | 89 } |
92 buildCounterGoogleLongrunningListOperationsResponse--; | 90 buildCounterGoogleLongrunningListOperationsResponse--; |
93 return o; | 91 return o; |
94 } | 92 } |
95 | 93 |
96 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations
Response o) { | 94 checkGoogleLongrunningListOperationsResponse( |
| 95 api.GoogleLongrunningListOperationsResponse o) { |
97 buildCounterGoogleLongrunningListOperationsResponse++; | 96 buildCounterGoogleLongrunningListOperationsResponse++; |
98 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { | 97 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { |
99 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 98 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
100 checkUnnamed3310(o.operations); | 99 checkUnnamed3303(o.operations); |
101 } | 100 } |
102 buildCounterGoogleLongrunningListOperationsResponse--; | 101 buildCounterGoogleLongrunningListOperationsResponse--; |
103 } | 102 } |
104 | 103 |
105 buildUnnamed3311() { | 104 buildUnnamed3304() { |
106 var o = new core.Map<core.String, core.Object>(); | 105 var o = new core.Map<core.String, core.Object>(); |
107 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 106 o["x"] = { |
108 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 107 'list': [1, 2, 3], |
| 108 'bool': true, |
| 109 'string': 'foo' |
| 110 }; |
| 111 o["y"] = { |
| 112 'list': [1, 2, 3], |
| 113 'bool': true, |
| 114 'string': 'foo' |
| 115 }; |
109 return o; | 116 return o; |
110 } | 117 } |
111 | 118 |
112 checkUnnamed3311(core.Map<core.String, core.Object> o) { | 119 checkUnnamed3304(core.Map<core.String, core.Object> o) { |
113 unittest.expect(o, unittest.hasLength(2)); | 120 unittest.expect(o, unittest.hasLength(2)); |
114 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 121 var casted1 = (o["x"]) as core.Map; |
115 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 122 unittest.expect(casted1, unittest.hasLength(3)); |
| 123 unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); |
| 124 unittest.expect(casted1["bool"], unittest.equals(true)); |
| 125 unittest.expect(casted1["string"], unittest.equals('foo')); |
| 126 var casted2 = (o["y"]) as core.Map; |
| 127 unittest.expect(casted2, unittest.hasLength(3)); |
| 128 unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); |
| 129 unittest.expect(casted2["bool"], unittest.equals(true)); |
| 130 unittest.expect(casted2["string"], unittest.equals('foo')); |
116 } | 131 } |
117 | 132 |
118 buildUnnamed3312() { | 133 buildUnnamed3305() { |
119 var o = new core.Map<core.String, core.Object>(); | 134 var o = new core.Map<core.String, core.Object>(); |
120 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 135 o["x"] = { |
121 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 136 'list': [1, 2, 3], |
| 137 'bool': true, |
| 138 'string': 'foo' |
| 139 }; |
| 140 o["y"] = { |
| 141 'list': [1, 2, 3], |
| 142 'bool': true, |
| 143 'string': 'foo' |
| 144 }; |
122 return o; | 145 return o; |
123 } | 146 } |
124 | 147 |
125 checkUnnamed3312(core.Map<core.String, core.Object> o) { | 148 checkUnnamed3305(core.Map<core.String, core.Object> o) { |
126 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
127 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 150 var casted3 = (o["x"]) as core.Map; |
128 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 151 unittest.expect(casted3, unittest.hasLength(3)); |
| 152 unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); |
| 153 unittest.expect(casted3["bool"], unittest.equals(true)); |
| 154 unittest.expect(casted3["string"], unittest.equals('foo')); |
| 155 var casted4 = (o["y"]) as core.Map; |
| 156 unittest.expect(casted4, unittest.hasLength(3)); |
| 157 unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); |
| 158 unittest.expect(casted4["bool"], unittest.equals(true)); |
| 159 unittest.expect(casted4["string"], unittest.equals('foo')); |
129 } | 160 } |
130 | 161 |
131 core.int buildCounterGoogleLongrunningOperation = 0; | 162 core.int buildCounterGoogleLongrunningOperation = 0; |
132 buildGoogleLongrunningOperation() { | 163 buildGoogleLongrunningOperation() { |
133 var o = new api.GoogleLongrunningOperation(); | 164 var o = new api.GoogleLongrunningOperation(); |
134 buildCounterGoogleLongrunningOperation++; | 165 buildCounterGoogleLongrunningOperation++; |
135 if (buildCounterGoogleLongrunningOperation < 3) { | 166 if (buildCounterGoogleLongrunningOperation < 3) { |
136 o.done = true; | 167 o.done = true; |
137 o.error = buildGoogleRpcStatus(); | 168 o.error = buildGoogleRpcStatus(); |
138 o.metadata = buildUnnamed3311(); | 169 o.metadata = buildUnnamed3304(); |
139 o.name = "foo"; | 170 o.name = "foo"; |
140 o.response = buildUnnamed3312(); | 171 o.response = buildUnnamed3305(); |
141 } | 172 } |
142 buildCounterGoogleLongrunningOperation--; | 173 buildCounterGoogleLongrunningOperation--; |
143 return o; | 174 return o; |
144 } | 175 } |
145 | 176 |
146 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { | 177 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { |
147 buildCounterGoogleLongrunningOperation++; | 178 buildCounterGoogleLongrunningOperation++; |
148 if (buildCounterGoogleLongrunningOperation < 3) { | 179 if (buildCounterGoogleLongrunningOperation < 3) { |
149 unittest.expect(o.done, unittest.isTrue); | 180 unittest.expect(o.done, unittest.isTrue); |
150 checkGoogleRpcStatus(o.error); | 181 checkGoogleRpcStatus(o.error); |
151 checkUnnamed3311(o.metadata); | 182 checkUnnamed3304(o.metadata); |
152 unittest.expect(o.name, unittest.equals('foo')); | 183 unittest.expect(o.name, unittest.equals('foo')); |
153 checkUnnamed3312(o.response); | 184 checkUnnamed3305(o.response); |
154 } | 185 } |
155 buildCounterGoogleLongrunningOperation--; | 186 buildCounterGoogleLongrunningOperation--; |
156 } | 187 } |
157 | 188 |
158 buildUnnamed3313() { | 189 buildUnnamed3306() { |
159 var o = new core.List<api.GooglePrivacyDlpV2beta1FieldId>(); | 190 var o = new core.List<api.GooglePrivacyDlpV2beta1FieldId>(); |
160 o.add(buildGooglePrivacyDlpV2beta1FieldId()); | 191 o.add(buildGooglePrivacyDlpV2beta1FieldId()); |
161 o.add(buildGooglePrivacyDlpV2beta1FieldId()); | 192 o.add(buildGooglePrivacyDlpV2beta1FieldId()); |
162 return o; | 193 return o; |
163 } | 194 } |
164 | 195 |
165 checkUnnamed3313(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) { | 196 checkUnnamed3306(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) { |
166 unittest.expect(o, unittest.hasLength(2)); | 197 unittest.expect(o, unittest.hasLength(2)); |
167 checkGooglePrivacyDlpV2beta1FieldId(o[0]); | 198 checkGooglePrivacyDlpV2beta1FieldId(o[0]); |
168 checkGooglePrivacyDlpV2beta1FieldId(o[1]); | 199 checkGooglePrivacyDlpV2beta1FieldId(o[1]); |
169 } | 200 } |
170 | 201 |
171 core.int buildCounterGooglePrivacyDlpV2beta1BigQueryOptions = 0; | 202 core.int buildCounterGooglePrivacyDlpV2beta1BigQueryOptions = 0; |
172 buildGooglePrivacyDlpV2beta1BigQueryOptions() { | 203 buildGooglePrivacyDlpV2beta1BigQueryOptions() { |
173 var o = new api.GooglePrivacyDlpV2beta1BigQueryOptions(); | 204 var o = new api.GooglePrivacyDlpV2beta1BigQueryOptions(); |
174 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions++; | 205 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions++; |
175 if (buildCounterGooglePrivacyDlpV2beta1BigQueryOptions < 3) { | 206 if (buildCounterGooglePrivacyDlpV2beta1BigQueryOptions < 3) { |
176 o.identifyingFields = buildUnnamed3313(); | 207 o.identifyingFields = buildUnnamed3306(); |
177 o.tableReference = buildGooglePrivacyDlpV2beta1BigQueryTable(); | 208 o.tableReference = buildGooglePrivacyDlpV2beta1BigQueryTable(); |
178 } | 209 } |
179 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions--; | 210 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions--; |
180 return o; | 211 return o; |
181 } | 212 } |
182 | 213 |
183 checkGooglePrivacyDlpV2beta1BigQueryOptions(api.GooglePrivacyDlpV2beta1BigQueryO
ptions o) { | 214 checkGooglePrivacyDlpV2beta1BigQueryOptions( |
| 215 api.GooglePrivacyDlpV2beta1BigQueryOptions o) { |
184 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions++; | 216 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions++; |
185 if (buildCounterGooglePrivacyDlpV2beta1BigQueryOptions < 3) { | 217 if (buildCounterGooglePrivacyDlpV2beta1BigQueryOptions < 3) { |
186 checkUnnamed3313(o.identifyingFields); | 218 checkUnnamed3306(o.identifyingFields); |
187 checkGooglePrivacyDlpV2beta1BigQueryTable(o.tableReference); | 219 checkGooglePrivacyDlpV2beta1BigQueryTable(o.tableReference); |
188 } | 220 } |
189 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions--; | 221 buildCounterGooglePrivacyDlpV2beta1BigQueryOptions--; |
190 } | 222 } |
191 | 223 |
192 core.int buildCounterGooglePrivacyDlpV2beta1BigQueryTable = 0; | 224 core.int buildCounterGooglePrivacyDlpV2beta1BigQueryTable = 0; |
193 buildGooglePrivacyDlpV2beta1BigQueryTable() { | 225 buildGooglePrivacyDlpV2beta1BigQueryTable() { |
194 var o = new api.GooglePrivacyDlpV2beta1BigQueryTable(); | 226 var o = new api.GooglePrivacyDlpV2beta1BigQueryTable(); |
195 buildCounterGooglePrivacyDlpV2beta1BigQueryTable++; | 227 buildCounterGooglePrivacyDlpV2beta1BigQueryTable++; |
196 if (buildCounterGooglePrivacyDlpV2beta1BigQueryTable < 3) { | 228 if (buildCounterGooglePrivacyDlpV2beta1BigQueryTable < 3) { |
197 o.datasetId = "foo"; | 229 o.datasetId = "foo"; |
198 o.projectId = "foo"; | 230 o.projectId = "foo"; |
199 o.tableId = "foo"; | 231 o.tableId = "foo"; |
200 } | 232 } |
201 buildCounterGooglePrivacyDlpV2beta1BigQueryTable--; | 233 buildCounterGooglePrivacyDlpV2beta1BigQueryTable--; |
202 return o; | 234 return o; |
203 } | 235 } |
204 | 236 |
205 checkGooglePrivacyDlpV2beta1BigQueryTable(api.GooglePrivacyDlpV2beta1BigQueryTab
le o) { | 237 checkGooglePrivacyDlpV2beta1BigQueryTable( |
| 238 api.GooglePrivacyDlpV2beta1BigQueryTable o) { |
206 buildCounterGooglePrivacyDlpV2beta1BigQueryTable++; | 239 buildCounterGooglePrivacyDlpV2beta1BigQueryTable++; |
207 if (buildCounterGooglePrivacyDlpV2beta1BigQueryTable < 3) { | 240 if (buildCounterGooglePrivacyDlpV2beta1BigQueryTable < 3) { |
208 unittest.expect(o.datasetId, unittest.equals('foo')); | 241 unittest.expect(o.datasetId, unittest.equals('foo')); |
209 unittest.expect(o.projectId, unittest.equals('foo')); | 242 unittest.expect(o.projectId, unittest.equals('foo')); |
210 unittest.expect(o.tableId, unittest.equals('foo')); | 243 unittest.expect(o.tableId, unittest.equals('foo')); |
211 } | 244 } |
212 buildCounterGooglePrivacyDlpV2beta1BigQueryTable--; | 245 buildCounterGooglePrivacyDlpV2beta1BigQueryTable--; |
213 } | 246 } |
214 | 247 |
215 core.int buildCounterGooglePrivacyDlpV2beta1CategoryDescription = 0; | 248 core.int buildCounterGooglePrivacyDlpV2beta1CategoryDescription = 0; |
216 buildGooglePrivacyDlpV2beta1CategoryDescription() { | 249 buildGooglePrivacyDlpV2beta1CategoryDescription() { |
217 var o = new api.GooglePrivacyDlpV2beta1CategoryDescription(); | 250 var o = new api.GooglePrivacyDlpV2beta1CategoryDescription(); |
218 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++; | 251 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++; |
219 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) { | 252 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) { |
220 o.displayName = "foo"; | 253 o.displayName = "foo"; |
221 o.name = "foo"; | 254 o.name = "foo"; |
222 } | 255 } |
223 buildCounterGooglePrivacyDlpV2beta1CategoryDescription--; | 256 buildCounterGooglePrivacyDlpV2beta1CategoryDescription--; |
224 return o; | 257 return o; |
225 } | 258 } |
226 | 259 |
227 checkGooglePrivacyDlpV2beta1CategoryDescription(api.GooglePrivacyDlpV2beta1Categ
oryDescription o) { | 260 checkGooglePrivacyDlpV2beta1CategoryDescription( |
| 261 api.GooglePrivacyDlpV2beta1CategoryDescription o) { |
228 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++; | 262 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++; |
229 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) { | 263 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) { |
230 unittest.expect(o.displayName, unittest.equals('foo')); | 264 unittest.expect(o.displayName, unittest.equals('foo')); |
231 unittest.expect(o.name, unittest.equals('foo')); | 265 unittest.expect(o.name, unittest.equals('foo')); |
232 } | 266 } |
233 buildCounterGooglePrivacyDlpV2beta1CategoryDescription--; | 267 buildCounterGooglePrivacyDlpV2beta1CategoryDescription--; |
234 } | 268 } |
235 | 269 |
236 core.int buildCounterGooglePrivacyDlpV2beta1CloudStorageKey = 0; | 270 core.int buildCounterGooglePrivacyDlpV2beta1CloudStorageKey = 0; |
237 buildGooglePrivacyDlpV2beta1CloudStorageKey() { | 271 buildGooglePrivacyDlpV2beta1CloudStorageKey() { |
238 var o = new api.GooglePrivacyDlpV2beta1CloudStorageKey(); | 272 var o = new api.GooglePrivacyDlpV2beta1CloudStorageKey(); |
239 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey++; | 273 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey++; |
240 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageKey < 3) { | 274 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageKey < 3) { |
241 o.filePath = "foo"; | 275 o.filePath = "foo"; |
242 o.startOffset = "foo"; | 276 o.startOffset = "foo"; |
243 } | 277 } |
244 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey--; | 278 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey--; |
245 return o; | 279 return o; |
246 } | 280 } |
247 | 281 |
248 checkGooglePrivacyDlpV2beta1CloudStorageKey(api.GooglePrivacyDlpV2beta1CloudStor
ageKey o) { | 282 checkGooglePrivacyDlpV2beta1CloudStorageKey( |
| 283 api.GooglePrivacyDlpV2beta1CloudStorageKey o) { |
249 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey++; | 284 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey++; |
250 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageKey < 3) { | 285 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageKey < 3) { |
251 unittest.expect(o.filePath, unittest.equals('foo')); | 286 unittest.expect(o.filePath, unittest.equals('foo')); |
252 unittest.expect(o.startOffset, unittest.equals('foo')); | 287 unittest.expect(o.startOffset, unittest.equals('foo')); |
253 } | 288 } |
254 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey--; | 289 buildCounterGooglePrivacyDlpV2beta1CloudStorageKey--; |
255 } | 290 } |
256 | 291 |
257 core.int buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions = 0; | 292 core.int buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions = 0; |
258 buildGooglePrivacyDlpV2beta1CloudStorageOptions() { | 293 buildGooglePrivacyDlpV2beta1CloudStorageOptions() { |
259 var o = new api.GooglePrivacyDlpV2beta1CloudStorageOptions(); | 294 var o = new api.GooglePrivacyDlpV2beta1CloudStorageOptions(); |
260 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions++; | 295 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions++; |
261 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions < 3) { | 296 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions < 3) { |
262 o.fileSet = buildGooglePrivacyDlpV2beta1FileSet(); | 297 o.fileSet = buildGooglePrivacyDlpV2beta1FileSet(); |
263 } | 298 } |
264 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions--; | 299 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions--; |
265 return o; | 300 return o; |
266 } | 301 } |
267 | 302 |
268 checkGooglePrivacyDlpV2beta1CloudStorageOptions(api.GooglePrivacyDlpV2beta1Cloud
StorageOptions o) { | 303 checkGooglePrivacyDlpV2beta1CloudStorageOptions( |
| 304 api.GooglePrivacyDlpV2beta1CloudStorageOptions o) { |
269 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions++; | 305 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions++; |
270 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions < 3) { | 306 if (buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions < 3) { |
271 checkGooglePrivacyDlpV2beta1FileSet(o.fileSet); | 307 checkGooglePrivacyDlpV2beta1FileSet(o.fileSet); |
272 } | 308 } |
273 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions--; | 309 buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions--; |
274 } | 310 } |
275 | 311 |
276 core.int buildCounterGooglePrivacyDlpV2beta1CloudStoragePath = 0; | 312 core.int buildCounterGooglePrivacyDlpV2beta1CloudStoragePath = 0; |
277 buildGooglePrivacyDlpV2beta1CloudStoragePath() { | 313 buildGooglePrivacyDlpV2beta1CloudStoragePath() { |
278 var o = new api.GooglePrivacyDlpV2beta1CloudStoragePath(); | 314 var o = new api.GooglePrivacyDlpV2beta1CloudStoragePath(); |
279 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath++; | 315 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath++; |
280 if (buildCounterGooglePrivacyDlpV2beta1CloudStoragePath < 3) { | 316 if (buildCounterGooglePrivacyDlpV2beta1CloudStoragePath < 3) { |
281 o.path = "foo"; | 317 o.path = "foo"; |
282 } | 318 } |
283 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath--; | 319 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath--; |
284 return o; | 320 return o; |
285 } | 321 } |
286 | 322 |
287 checkGooglePrivacyDlpV2beta1CloudStoragePath(api.GooglePrivacyDlpV2beta1CloudSto
ragePath o) { | 323 checkGooglePrivacyDlpV2beta1CloudStoragePath( |
| 324 api.GooglePrivacyDlpV2beta1CloudStoragePath o) { |
288 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath++; | 325 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath++; |
289 if (buildCounterGooglePrivacyDlpV2beta1CloudStoragePath < 3) { | 326 if (buildCounterGooglePrivacyDlpV2beta1CloudStoragePath < 3) { |
290 unittest.expect(o.path, unittest.equals('foo')); | 327 unittest.expect(o.path, unittest.equals('foo')); |
291 } | 328 } |
292 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath--; | 329 buildCounterGooglePrivacyDlpV2beta1CloudStoragePath--; |
293 } | 330 } |
294 | 331 |
295 core.int buildCounterGooglePrivacyDlpV2beta1Color = 0; | 332 core.int buildCounterGooglePrivacyDlpV2beta1Color = 0; |
296 buildGooglePrivacyDlpV2beta1Color() { | 333 buildGooglePrivacyDlpV2beta1Color() { |
297 var o = new api.GooglePrivacyDlpV2beta1Color(); | 334 var o = new api.GooglePrivacyDlpV2beta1Color(); |
(...skipping 24 matching lines...) Expand all Loading... |
322 if (buildCounterGooglePrivacyDlpV2beta1ContentItem < 3) { | 359 if (buildCounterGooglePrivacyDlpV2beta1ContentItem < 3) { |
323 o.data = "foo"; | 360 o.data = "foo"; |
324 o.table = buildGooglePrivacyDlpV2beta1Table(); | 361 o.table = buildGooglePrivacyDlpV2beta1Table(); |
325 o.type = "foo"; | 362 o.type = "foo"; |
326 o.value = "foo"; | 363 o.value = "foo"; |
327 } | 364 } |
328 buildCounterGooglePrivacyDlpV2beta1ContentItem--; | 365 buildCounterGooglePrivacyDlpV2beta1ContentItem--; |
329 return o; | 366 return o; |
330 } | 367 } |
331 | 368 |
332 checkGooglePrivacyDlpV2beta1ContentItem(api.GooglePrivacyDlpV2beta1ContentItem o
) { | 369 checkGooglePrivacyDlpV2beta1ContentItem( |
| 370 api.GooglePrivacyDlpV2beta1ContentItem o) { |
333 buildCounterGooglePrivacyDlpV2beta1ContentItem++; | 371 buildCounterGooglePrivacyDlpV2beta1ContentItem++; |
334 if (buildCounterGooglePrivacyDlpV2beta1ContentItem < 3) { | 372 if (buildCounterGooglePrivacyDlpV2beta1ContentItem < 3) { |
335 unittest.expect(o.data, unittest.equals('foo')); | 373 unittest.expect(o.data, unittest.equals('foo')); |
336 checkGooglePrivacyDlpV2beta1Table(o.table); | 374 checkGooglePrivacyDlpV2beta1Table(o.table); |
337 unittest.expect(o.type, unittest.equals('foo')); | 375 unittest.expect(o.type, unittest.equals('foo')); |
338 unittest.expect(o.value, unittest.equals('foo')); | 376 unittest.expect(o.value, unittest.equals('foo')); |
339 } | 377 } |
340 buildCounterGooglePrivacyDlpV2beta1ContentItem--; | 378 buildCounterGooglePrivacyDlpV2beta1ContentItem--; |
341 } | 379 } |
342 | 380 |
343 core.int buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest = 0; | 381 core.int buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest = 0; |
344 buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest() { | 382 buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest() { |
345 var o = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest(); | 383 var o = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest(); |
346 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest++; | 384 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest++; |
347 if (buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest < 3) { | 385 if (buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest < 3) { |
348 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); | 386 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); |
349 o.operationConfig = buildGooglePrivacyDlpV2beta1OperationConfig(); | 387 o.operationConfig = buildGooglePrivacyDlpV2beta1OperationConfig(); |
350 o.outputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); | 388 o.outputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); |
351 o.storageConfig = buildGooglePrivacyDlpV2beta1StorageConfig(); | 389 o.storageConfig = buildGooglePrivacyDlpV2beta1StorageConfig(); |
352 } | 390 } |
353 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest--; | 391 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest--; |
354 return o; | 392 return o; |
355 } | 393 } |
356 | 394 |
357 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(api.GooglePrivacyDlpV2
beta1CreateInspectOperationRequest o) { | 395 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest( |
| 396 api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest o) { |
358 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest++; | 397 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest++; |
359 if (buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest < 3) { | 398 if (buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest < 3) { |
360 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); | 399 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); |
361 checkGooglePrivacyDlpV2beta1OperationConfig(o.operationConfig); | 400 checkGooglePrivacyDlpV2beta1OperationConfig(o.operationConfig); |
362 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.outputConfig); | 401 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.outputConfig); |
363 checkGooglePrivacyDlpV2beta1StorageConfig(o.storageConfig); | 402 checkGooglePrivacyDlpV2beta1StorageConfig(o.storageConfig); |
364 } | 403 } |
365 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest--; | 404 buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest--; |
366 } | 405 } |
367 | 406 |
368 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreKey = 0; | 407 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreKey = 0; |
369 buildGooglePrivacyDlpV2beta1DatastoreKey() { | 408 buildGooglePrivacyDlpV2beta1DatastoreKey() { |
370 var o = new api.GooglePrivacyDlpV2beta1DatastoreKey(); | 409 var o = new api.GooglePrivacyDlpV2beta1DatastoreKey(); |
371 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++; | 410 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++; |
372 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) { | 411 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) { |
373 o.entityKey = buildGooglePrivacyDlpV2beta1Key(); | 412 o.entityKey = buildGooglePrivacyDlpV2beta1Key(); |
374 } | 413 } |
375 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--; | 414 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--; |
376 return o; | 415 return o; |
377 } | 416 } |
378 | 417 |
379 checkGooglePrivacyDlpV2beta1DatastoreKey(api.GooglePrivacyDlpV2beta1DatastoreKey
o) { | 418 checkGooglePrivacyDlpV2beta1DatastoreKey( |
| 419 api.GooglePrivacyDlpV2beta1DatastoreKey o) { |
380 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++; | 420 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++; |
381 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) { | 421 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) { |
382 checkGooglePrivacyDlpV2beta1Key(o.entityKey); | 422 checkGooglePrivacyDlpV2beta1Key(o.entityKey); |
383 } | 423 } |
384 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--; | 424 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--; |
385 } | 425 } |
386 | 426 |
387 buildUnnamed3314() { | 427 buildUnnamed3307() { |
388 var o = new core.List<api.GooglePrivacyDlpV2beta1Projection>(); | 428 var o = new core.List<api.GooglePrivacyDlpV2beta1Projection>(); |
389 o.add(buildGooglePrivacyDlpV2beta1Projection()); | 429 o.add(buildGooglePrivacyDlpV2beta1Projection()); |
390 o.add(buildGooglePrivacyDlpV2beta1Projection()); | 430 o.add(buildGooglePrivacyDlpV2beta1Projection()); |
391 return o; | 431 return o; |
392 } | 432 } |
393 | 433 |
394 checkUnnamed3314(core.List<api.GooglePrivacyDlpV2beta1Projection> o) { | 434 checkUnnamed3307(core.List<api.GooglePrivacyDlpV2beta1Projection> o) { |
395 unittest.expect(o, unittest.hasLength(2)); | 435 unittest.expect(o, unittest.hasLength(2)); |
396 checkGooglePrivacyDlpV2beta1Projection(o[0]); | 436 checkGooglePrivacyDlpV2beta1Projection(o[0]); |
397 checkGooglePrivacyDlpV2beta1Projection(o[1]); | 437 checkGooglePrivacyDlpV2beta1Projection(o[1]); |
398 } | 438 } |
399 | 439 |
400 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreOptions = 0; | 440 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreOptions = 0; |
401 buildGooglePrivacyDlpV2beta1DatastoreOptions() { | 441 buildGooglePrivacyDlpV2beta1DatastoreOptions() { |
402 var o = new api.GooglePrivacyDlpV2beta1DatastoreOptions(); | 442 var o = new api.GooglePrivacyDlpV2beta1DatastoreOptions(); |
403 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; | 443 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; |
404 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { | 444 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { |
405 o.kind = buildGooglePrivacyDlpV2beta1KindExpression(); | 445 o.kind = buildGooglePrivacyDlpV2beta1KindExpression(); |
406 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); | 446 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); |
407 o.projection = buildUnnamed3314(); | 447 o.projection = buildUnnamed3307(); |
408 } | 448 } |
409 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; | 449 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; |
410 return o; | 450 return o; |
411 } | 451 } |
412 | 452 |
413 checkGooglePrivacyDlpV2beta1DatastoreOptions(api.GooglePrivacyDlpV2beta1Datastor
eOptions o) { | 453 checkGooglePrivacyDlpV2beta1DatastoreOptions( |
| 454 api.GooglePrivacyDlpV2beta1DatastoreOptions o) { |
414 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; | 455 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; |
415 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { | 456 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { |
416 checkGooglePrivacyDlpV2beta1KindExpression(o.kind); | 457 checkGooglePrivacyDlpV2beta1KindExpression(o.kind); |
417 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); | 458 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); |
418 checkUnnamed3314(o.projection); | 459 checkUnnamed3307(o.projection); |
419 } | 460 } |
420 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; | 461 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; |
421 } | 462 } |
422 | 463 |
423 core.int buildCounterGooglePrivacyDlpV2beta1FieldId = 0; | 464 core.int buildCounterGooglePrivacyDlpV2beta1FieldId = 0; |
424 buildGooglePrivacyDlpV2beta1FieldId() { | 465 buildGooglePrivacyDlpV2beta1FieldId() { |
425 var o = new api.GooglePrivacyDlpV2beta1FieldId(); | 466 var o = new api.GooglePrivacyDlpV2beta1FieldId(); |
426 buildCounterGooglePrivacyDlpV2beta1FieldId++; | 467 buildCounterGooglePrivacyDlpV2beta1FieldId++; |
427 if (buildCounterGooglePrivacyDlpV2beta1FieldId < 3) { | 468 if (buildCounterGooglePrivacyDlpV2beta1FieldId < 3) { |
428 o.columnName = "foo"; | 469 o.columnName = "foo"; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 if (buildCounterGooglePrivacyDlpV2beta1ImageLocation < 3) { | 533 if (buildCounterGooglePrivacyDlpV2beta1ImageLocation < 3) { |
493 o.height = 42; | 534 o.height = 42; |
494 o.left = 42; | 535 o.left = 42; |
495 o.top = 42; | 536 o.top = 42; |
496 o.width = 42; | 537 o.width = 42; |
497 } | 538 } |
498 buildCounterGooglePrivacyDlpV2beta1ImageLocation--; | 539 buildCounterGooglePrivacyDlpV2beta1ImageLocation--; |
499 return o; | 540 return o; |
500 } | 541 } |
501 | 542 |
502 checkGooglePrivacyDlpV2beta1ImageLocation(api.GooglePrivacyDlpV2beta1ImageLocati
on o) { | 543 checkGooglePrivacyDlpV2beta1ImageLocation( |
| 544 api.GooglePrivacyDlpV2beta1ImageLocation o) { |
503 buildCounterGooglePrivacyDlpV2beta1ImageLocation++; | 545 buildCounterGooglePrivacyDlpV2beta1ImageLocation++; |
504 if (buildCounterGooglePrivacyDlpV2beta1ImageLocation < 3) { | 546 if (buildCounterGooglePrivacyDlpV2beta1ImageLocation < 3) { |
505 unittest.expect(o.height, unittest.equals(42)); | 547 unittest.expect(o.height, unittest.equals(42)); |
506 unittest.expect(o.left, unittest.equals(42)); | 548 unittest.expect(o.left, unittest.equals(42)); |
507 unittest.expect(o.top, unittest.equals(42)); | 549 unittest.expect(o.top, unittest.equals(42)); |
508 unittest.expect(o.width, unittest.equals(42)); | 550 unittest.expect(o.width, unittest.equals(42)); |
509 } | 551 } |
510 buildCounterGooglePrivacyDlpV2beta1ImageLocation--; | 552 buildCounterGooglePrivacyDlpV2beta1ImageLocation--; |
511 } | 553 } |
512 | 554 |
513 core.int buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig = 0; | 555 core.int buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig = 0; |
514 buildGooglePrivacyDlpV2beta1ImageRedactionConfig() { | 556 buildGooglePrivacyDlpV2beta1ImageRedactionConfig() { |
515 var o = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig(); | 557 var o = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig(); |
516 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig++; | 558 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig++; |
517 if (buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig < 3) { | 559 if (buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig < 3) { |
518 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); | 560 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); |
519 o.redactAllText = true; | 561 o.redactAllText = true; |
520 o.redactionColor = buildGooglePrivacyDlpV2beta1Color(); | 562 o.redactionColor = buildGooglePrivacyDlpV2beta1Color(); |
521 } | 563 } |
522 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig--; | 564 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig--; |
523 return o; | 565 return o; |
524 } | 566 } |
525 | 567 |
526 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(api.GooglePrivacyDlpV2beta1Imag
eRedactionConfig o) { | 568 checkGooglePrivacyDlpV2beta1ImageRedactionConfig( |
| 569 api.GooglePrivacyDlpV2beta1ImageRedactionConfig o) { |
527 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig++; | 570 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig++; |
528 if (buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig < 3) { | 571 if (buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig < 3) { |
529 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); | 572 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); |
530 unittest.expect(o.redactAllText, unittest.isTrue); | 573 unittest.expect(o.redactAllText, unittest.isTrue); |
531 checkGooglePrivacyDlpV2beta1Color(o.redactionColor); | 574 checkGooglePrivacyDlpV2beta1Color(o.redactionColor); |
532 } | 575 } |
533 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig--; | 576 buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig--; |
534 } | 577 } |
535 | 578 |
536 core.int buildCounterGooglePrivacyDlpV2beta1InfoType = 0; | 579 core.int buildCounterGooglePrivacyDlpV2beta1InfoType = 0; |
537 buildGooglePrivacyDlpV2beta1InfoType() { | 580 buildGooglePrivacyDlpV2beta1InfoType() { |
538 var o = new api.GooglePrivacyDlpV2beta1InfoType(); | 581 var o = new api.GooglePrivacyDlpV2beta1InfoType(); |
539 buildCounterGooglePrivacyDlpV2beta1InfoType++; | 582 buildCounterGooglePrivacyDlpV2beta1InfoType++; |
540 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) { | 583 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) { |
541 o.name = "foo"; | 584 o.name = "foo"; |
542 } | 585 } |
543 buildCounterGooglePrivacyDlpV2beta1InfoType--; | 586 buildCounterGooglePrivacyDlpV2beta1InfoType--; |
544 return o; | 587 return o; |
545 } | 588 } |
546 | 589 |
547 checkGooglePrivacyDlpV2beta1InfoType(api.GooglePrivacyDlpV2beta1InfoType o) { | 590 checkGooglePrivacyDlpV2beta1InfoType(api.GooglePrivacyDlpV2beta1InfoType o) { |
548 buildCounterGooglePrivacyDlpV2beta1InfoType++; | 591 buildCounterGooglePrivacyDlpV2beta1InfoType++; |
549 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) { | 592 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) { |
550 unittest.expect(o.name, unittest.equals('foo')); | 593 unittest.expect(o.name, unittest.equals('foo')); |
551 } | 594 } |
552 buildCounterGooglePrivacyDlpV2beta1InfoType--; | 595 buildCounterGooglePrivacyDlpV2beta1InfoType--; |
553 } | 596 } |
554 | 597 |
555 buildUnnamed3315() { | 598 buildUnnamed3308() { |
556 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); | 599 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); |
557 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 600 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
558 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 601 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
559 return o; | 602 return o; |
560 } | 603 } |
561 | 604 |
562 checkUnnamed3315(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { | 605 checkUnnamed3308(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { |
563 unittest.expect(o, unittest.hasLength(2)); | 606 unittest.expect(o, unittest.hasLength(2)); |
564 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); | 607 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); |
565 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); | 608 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); |
566 } | 609 } |
567 | 610 |
568 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription = 0; | 611 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription = 0; |
569 buildGooglePrivacyDlpV2beta1InfoTypeDescription() { | 612 buildGooglePrivacyDlpV2beta1InfoTypeDescription() { |
570 var o = new api.GooglePrivacyDlpV2beta1InfoTypeDescription(); | 613 var o = new api.GooglePrivacyDlpV2beta1InfoTypeDescription(); |
571 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; | 614 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; |
572 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { | 615 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { |
573 o.categories = buildUnnamed3315(); | 616 o.categories = buildUnnamed3308(); |
574 o.displayName = "foo"; | 617 o.displayName = "foo"; |
575 o.name = "foo"; | 618 o.name = "foo"; |
576 } | 619 } |
577 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; | 620 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; |
578 return o; | 621 return o; |
579 } | 622 } |
580 | 623 |
581 checkGooglePrivacyDlpV2beta1InfoTypeDescription(api.GooglePrivacyDlpV2beta1InfoT
ypeDescription o) { | 624 checkGooglePrivacyDlpV2beta1InfoTypeDescription( |
| 625 api.GooglePrivacyDlpV2beta1InfoTypeDescription o) { |
582 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; | 626 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; |
583 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { | 627 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { |
584 checkUnnamed3315(o.categories); | 628 checkUnnamed3308(o.categories); |
585 unittest.expect(o.displayName, unittest.equals('foo')); | 629 unittest.expect(o.displayName, unittest.equals('foo')); |
586 unittest.expect(o.name, unittest.equals('foo')); | 630 unittest.expect(o.name, unittest.equals('foo')); |
587 } | 631 } |
588 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; | 632 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; |
589 } | 633 } |
590 | 634 |
591 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit = 0; | 635 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit = 0; |
592 buildGooglePrivacyDlpV2beta1InfoTypeLimit() { | 636 buildGooglePrivacyDlpV2beta1InfoTypeLimit() { |
593 var o = new api.GooglePrivacyDlpV2beta1InfoTypeLimit(); | 637 var o = new api.GooglePrivacyDlpV2beta1InfoTypeLimit(); |
594 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit++; | 638 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit++; |
595 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit < 3) { | 639 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit < 3) { |
596 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); | 640 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); |
597 o.maxFindings = 42; | 641 o.maxFindings = 42; |
598 } | 642 } |
599 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit--; | 643 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit--; |
600 return o; | 644 return o; |
601 } | 645 } |
602 | 646 |
603 checkGooglePrivacyDlpV2beta1InfoTypeLimit(api.GooglePrivacyDlpV2beta1InfoTypeLim
it o) { | 647 checkGooglePrivacyDlpV2beta1InfoTypeLimit( |
| 648 api.GooglePrivacyDlpV2beta1InfoTypeLimit o) { |
604 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit++; | 649 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit++; |
605 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit < 3) { | 650 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit < 3) { |
606 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); | 651 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); |
607 unittest.expect(o.maxFindings, unittest.equals(42)); | 652 unittest.expect(o.maxFindings, unittest.equals(42)); |
608 } | 653 } |
609 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit--; | 654 buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit--; |
610 } | 655 } |
611 | 656 |
612 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics = 0; | 657 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics = 0; |
613 buildGooglePrivacyDlpV2beta1InfoTypeStatistics() { | 658 buildGooglePrivacyDlpV2beta1InfoTypeStatistics() { |
614 var o = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics(); | 659 var o = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics(); |
615 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; | 660 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; |
616 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { | 661 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { |
617 o.count = "foo"; | 662 o.count = "foo"; |
618 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); | 663 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); |
619 } | 664 } |
620 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; | 665 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; |
621 return o; | 666 return o; |
622 } | 667 } |
623 | 668 |
624 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(api.GooglePrivacyDlpV2beta1InfoTy
peStatistics o) { | 669 checkGooglePrivacyDlpV2beta1InfoTypeStatistics( |
| 670 api.GooglePrivacyDlpV2beta1InfoTypeStatistics o) { |
625 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; | 671 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; |
626 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { | 672 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { |
627 unittest.expect(o.count, unittest.equals('foo')); | 673 unittest.expect(o.count, unittest.equals('foo')); |
628 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); | 674 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); |
629 } | 675 } |
630 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; | 676 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; |
631 } | 677 } |
632 | 678 |
633 buildUnnamed3316() { | 679 buildUnnamed3309() { |
634 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeLimit>(); | 680 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeLimit>(); |
635 o.add(buildGooglePrivacyDlpV2beta1InfoTypeLimit()); | 681 o.add(buildGooglePrivacyDlpV2beta1InfoTypeLimit()); |
636 o.add(buildGooglePrivacyDlpV2beta1InfoTypeLimit()); | 682 o.add(buildGooglePrivacyDlpV2beta1InfoTypeLimit()); |
637 return o; | 683 return o; |
638 } | 684 } |
639 | 685 |
640 checkUnnamed3316(core.List<api.GooglePrivacyDlpV2beta1InfoTypeLimit> o) { | 686 checkUnnamed3309(core.List<api.GooglePrivacyDlpV2beta1InfoTypeLimit> o) { |
641 unittest.expect(o, unittest.hasLength(2)); | 687 unittest.expect(o, unittest.hasLength(2)); |
642 checkGooglePrivacyDlpV2beta1InfoTypeLimit(o[0]); | 688 checkGooglePrivacyDlpV2beta1InfoTypeLimit(o[0]); |
643 checkGooglePrivacyDlpV2beta1InfoTypeLimit(o[1]); | 689 checkGooglePrivacyDlpV2beta1InfoTypeLimit(o[1]); |
644 } | 690 } |
645 | 691 |
646 buildUnnamed3317() { | 692 buildUnnamed3310() { |
647 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoType>(); | 693 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoType>(); |
648 o.add(buildGooglePrivacyDlpV2beta1InfoType()); | 694 o.add(buildGooglePrivacyDlpV2beta1InfoType()); |
649 o.add(buildGooglePrivacyDlpV2beta1InfoType()); | 695 o.add(buildGooglePrivacyDlpV2beta1InfoType()); |
650 return o; | 696 return o; |
651 } | 697 } |
652 | 698 |
653 checkUnnamed3317(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) { | 699 checkUnnamed3310(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) { |
654 unittest.expect(o, unittest.hasLength(2)); | 700 unittest.expect(o, unittest.hasLength(2)); |
655 checkGooglePrivacyDlpV2beta1InfoType(o[0]); | 701 checkGooglePrivacyDlpV2beta1InfoType(o[0]); |
656 checkGooglePrivacyDlpV2beta1InfoType(o[1]); | 702 checkGooglePrivacyDlpV2beta1InfoType(o[1]); |
657 } | 703 } |
658 | 704 |
659 core.int buildCounterGooglePrivacyDlpV2beta1InspectConfig = 0; | 705 core.int buildCounterGooglePrivacyDlpV2beta1InspectConfig = 0; |
660 buildGooglePrivacyDlpV2beta1InspectConfig() { | 706 buildGooglePrivacyDlpV2beta1InspectConfig() { |
661 var o = new api.GooglePrivacyDlpV2beta1InspectConfig(); | 707 var o = new api.GooglePrivacyDlpV2beta1InspectConfig(); |
662 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; | 708 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; |
663 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { | 709 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { |
664 o.excludeTypes = true; | 710 o.excludeTypes = true; |
665 o.includeQuote = true; | 711 o.includeQuote = true; |
666 o.infoTypeLimits = buildUnnamed3316(); | 712 o.infoTypeLimits = buildUnnamed3309(); |
667 o.infoTypes = buildUnnamed3317(); | 713 o.infoTypes = buildUnnamed3310(); |
668 o.maxFindings = 42; | 714 o.maxFindings = 42; |
669 o.minLikelihood = "foo"; | 715 o.minLikelihood = "foo"; |
670 } | 716 } |
671 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; | 717 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; |
672 return o; | 718 return o; |
673 } | 719 } |
674 | 720 |
675 checkGooglePrivacyDlpV2beta1InspectConfig(api.GooglePrivacyDlpV2beta1InspectConf
ig o) { | 721 checkGooglePrivacyDlpV2beta1InspectConfig( |
| 722 api.GooglePrivacyDlpV2beta1InspectConfig o) { |
676 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; | 723 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; |
677 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { | 724 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { |
678 unittest.expect(o.excludeTypes, unittest.isTrue); | 725 unittest.expect(o.excludeTypes, unittest.isTrue); |
679 unittest.expect(o.includeQuote, unittest.isTrue); | 726 unittest.expect(o.includeQuote, unittest.isTrue); |
680 checkUnnamed3316(o.infoTypeLimits); | 727 checkUnnamed3309(o.infoTypeLimits); |
681 checkUnnamed3317(o.infoTypes); | 728 checkUnnamed3310(o.infoTypes); |
682 unittest.expect(o.maxFindings, unittest.equals(42)); | 729 unittest.expect(o.maxFindings, unittest.equals(42)); |
683 unittest.expect(o.minLikelihood, unittest.equals('foo')); | 730 unittest.expect(o.minLikelihood, unittest.equals('foo')); |
684 } | 731 } |
685 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; | 732 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; |
686 } | 733 } |
687 | 734 |
688 buildUnnamed3318() { | 735 buildUnnamed3311() { |
689 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); | 736 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); |
690 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 737 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
691 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 738 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
692 return o; | 739 return o; |
693 } | 740 } |
694 | 741 |
695 checkUnnamed3318(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { | 742 checkUnnamed3311(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { |
696 unittest.expect(o, unittest.hasLength(2)); | 743 unittest.expect(o, unittest.hasLength(2)); |
697 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); | 744 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); |
698 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); | 745 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); |
699 } | 746 } |
700 | 747 |
701 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentRequest = 0; | 748 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentRequest = 0; |
702 buildGooglePrivacyDlpV2beta1InspectContentRequest() { | 749 buildGooglePrivacyDlpV2beta1InspectContentRequest() { |
703 var o = new api.GooglePrivacyDlpV2beta1InspectContentRequest(); | 750 var o = new api.GooglePrivacyDlpV2beta1InspectContentRequest(); |
704 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; | 751 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; |
705 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { | 752 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { |
706 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); | 753 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); |
707 o.items = buildUnnamed3318(); | 754 o.items = buildUnnamed3311(); |
708 } | 755 } |
709 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; | 756 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; |
710 return o; | 757 return o; |
711 } | 758 } |
712 | 759 |
713 checkGooglePrivacyDlpV2beta1InspectContentRequest(api.GooglePrivacyDlpV2beta1Ins
pectContentRequest o) { | 760 checkGooglePrivacyDlpV2beta1InspectContentRequest( |
| 761 api.GooglePrivacyDlpV2beta1InspectContentRequest o) { |
714 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; | 762 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; |
715 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { | 763 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { |
716 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); | 764 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); |
717 checkUnnamed3318(o.items); | 765 checkUnnamed3311(o.items); |
718 } | 766 } |
719 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; | 767 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; |
720 } | 768 } |
721 | 769 |
722 buildUnnamed3319() { | 770 buildUnnamed3312() { |
723 var o = new core.List<api.GooglePrivacyDlpV2beta1InspectResult>(); | 771 var o = new core.List<api.GooglePrivacyDlpV2beta1InspectResult>(); |
724 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); | 772 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); |
725 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); | 773 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); |
726 return o; | 774 return o; |
727 } | 775 } |
728 | 776 |
729 checkUnnamed3319(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) { | 777 checkUnnamed3312(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) { |
730 unittest.expect(o, unittest.hasLength(2)); | 778 unittest.expect(o, unittest.hasLength(2)); |
731 checkGooglePrivacyDlpV2beta1InspectResult(o[0]); | 779 checkGooglePrivacyDlpV2beta1InspectResult(o[0]); |
732 checkGooglePrivacyDlpV2beta1InspectResult(o[1]); | 780 checkGooglePrivacyDlpV2beta1InspectResult(o[1]); |
733 } | 781 } |
734 | 782 |
735 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentResponse = 0; | 783 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentResponse = 0; |
736 buildGooglePrivacyDlpV2beta1InspectContentResponse() { | 784 buildGooglePrivacyDlpV2beta1InspectContentResponse() { |
737 var o = new api.GooglePrivacyDlpV2beta1InspectContentResponse(); | 785 var o = new api.GooglePrivacyDlpV2beta1InspectContentResponse(); |
738 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; | 786 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; |
739 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { | 787 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { |
740 o.results = buildUnnamed3319(); | 788 o.results = buildUnnamed3312(); |
741 } | 789 } |
742 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; | 790 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; |
743 return o; | 791 return o; |
744 } | 792 } |
745 | 793 |
746 checkGooglePrivacyDlpV2beta1InspectContentResponse(api.GooglePrivacyDlpV2beta1In
spectContentResponse o) { | 794 checkGooglePrivacyDlpV2beta1InspectContentResponse( |
| 795 api.GooglePrivacyDlpV2beta1InspectContentResponse o) { |
747 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; | 796 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; |
748 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { | 797 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { |
749 checkUnnamed3319(o.results); | 798 checkUnnamed3312(o.results); |
750 } | 799 } |
751 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; | 800 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; |
752 } | 801 } |
753 | 802 |
754 buildUnnamed3320() { | 803 buildUnnamed3313() { |
755 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics>(); | 804 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics>(); |
756 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); | 805 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); |
757 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); | 806 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); |
758 return o; | 807 return o; |
759 } | 808 } |
760 | 809 |
761 checkUnnamed3320(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) { | 810 checkUnnamed3313(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) { |
762 unittest.expect(o, unittest.hasLength(2)); | 811 unittest.expect(o, unittest.hasLength(2)); |
763 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[0]); | 812 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[0]); |
764 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[1]); | 813 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[1]); |
765 } | 814 } |
766 | 815 |
767 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata = 0; | 816 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata = 0; |
768 buildGooglePrivacyDlpV2beta1InspectOperationMetadata() { | 817 buildGooglePrivacyDlpV2beta1InspectOperationMetadata() { |
769 var o = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata(); | 818 var o = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata(); |
770 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; | 819 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; |
771 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { | 820 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { |
772 o.createTime = "foo"; | 821 o.createTime = "foo"; |
773 o.infoTypeStats = buildUnnamed3320(); | 822 o.infoTypeStats = buildUnnamed3313(); |
774 o.processedBytes = "foo"; | 823 o.processedBytes = "foo"; |
775 o.requestInspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); | 824 o.requestInspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); |
776 o.requestOutputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); | 825 o.requestOutputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); |
777 o.requestStorageConfig = buildGooglePrivacyDlpV2beta1StorageConfig(); | 826 o.requestStorageConfig = buildGooglePrivacyDlpV2beta1StorageConfig(); |
778 o.totalEstimatedBytes = "foo"; | 827 o.totalEstimatedBytes = "foo"; |
779 } | 828 } |
780 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; | 829 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; |
781 return o; | 830 return o; |
782 } | 831 } |
783 | 832 |
784 checkGooglePrivacyDlpV2beta1InspectOperationMetadata(api.GooglePrivacyDlpV2beta1
InspectOperationMetadata o) { | 833 checkGooglePrivacyDlpV2beta1InspectOperationMetadata( |
| 834 api.GooglePrivacyDlpV2beta1InspectOperationMetadata o) { |
785 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; | 835 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; |
786 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { | 836 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { |
787 unittest.expect(o.createTime, unittest.equals('foo')); | 837 unittest.expect(o.createTime, unittest.equals('foo')); |
788 checkUnnamed3320(o.infoTypeStats); | 838 checkUnnamed3313(o.infoTypeStats); |
789 unittest.expect(o.processedBytes, unittest.equals('foo')); | 839 unittest.expect(o.processedBytes, unittest.equals('foo')); |
790 checkGooglePrivacyDlpV2beta1InspectConfig(o.requestInspectConfig); | 840 checkGooglePrivacyDlpV2beta1InspectConfig(o.requestInspectConfig); |
791 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.requestOutputConfig); | 841 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.requestOutputConfig); |
792 checkGooglePrivacyDlpV2beta1StorageConfig(o.requestStorageConfig); | 842 checkGooglePrivacyDlpV2beta1StorageConfig(o.requestStorageConfig); |
793 unittest.expect(o.totalEstimatedBytes, unittest.equals('foo')); | 843 unittest.expect(o.totalEstimatedBytes, unittest.equals('foo')); |
794 } | 844 } |
795 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; | 845 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; |
796 } | 846 } |
797 | 847 |
798 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationResult = 0; | 848 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationResult = 0; |
799 buildGooglePrivacyDlpV2beta1InspectOperationResult() { | 849 buildGooglePrivacyDlpV2beta1InspectOperationResult() { |
800 var o = new api.GooglePrivacyDlpV2beta1InspectOperationResult(); | 850 var o = new api.GooglePrivacyDlpV2beta1InspectOperationResult(); |
801 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; | 851 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; |
802 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { | 852 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { |
803 o.name = "foo"; | 853 o.name = "foo"; |
804 } | 854 } |
805 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; | 855 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; |
806 return o; | 856 return o; |
807 } | 857 } |
808 | 858 |
809 checkGooglePrivacyDlpV2beta1InspectOperationResult(api.GooglePrivacyDlpV2beta1In
spectOperationResult o) { | 859 checkGooglePrivacyDlpV2beta1InspectOperationResult( |
| 860 api.GooglePrivacyDlpV2beta1InspectOperationResult o) { |
810 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; | 861 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; |
811 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { | 862 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { |
812 unittest.expect(o.name, unittest.equals('foo')); | 863 unittest.expect(o.name, unittest.equals('foo')); |
813 } | 864 } |
814 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; | 865 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; |
815 } | 866 } |
816 | 867 |
817 buildUnnamed3321() { | 868 buildUnnamed3314() { |
818 var o = new core.List<api.GooglePrivacyDlpV2beta1Finding>(); | 869 var o = new core.List<api.GooglePrivacyDlpV2beta1Finding>(); |
819 o.add(buildGooglePrivacyDlpV2beta1Finding()); | 870 o.add(buildGooglePrivacyDlpV2beta1Finding()); |
820 o.add(buildGooglePrivacyDlpV2beta1Finding()); | 871 o.add(buildGooglePrivacyDlpV2beta1Finding()); |
821 return o; | 872 return o; |
822 } | 873 } |
823 | 874 |
824 checkUnnamed3321(core.List<api.GooglePrivacyDlpV2beta1Finding> o) { | 875 checkUnnamed3314(core.List<api.GooglePrivacyDlpV2beta1Finding> o) { |
825 unittest.expect(o, unittest.hasLength(2)); | 876 unittest.expect(o, unittest.hasLength(2)); |
826 checkGooglePrivacyDlpV2beta1Finding(o[0]); | 877 checkGooglePrivacyDlpV2beta1Finding(o[0]); |
827 checkGooglePrivacyDlpV2beta1Finding(o[1]); | 878 checkGooglePrivacyDlpV2beta1Finding(o[1]); |
828 } | 879 } |
829 | 880 |
830 core.int buildCounterGooglePrivacyDlpV2beta1InspectResult = 0; | 881 core.int buildCounterGooglePrivacyDlpV2beta1InspectResult = 0; |
831 buildGooglePrivacyDlpV2beta1InspectResult() { | 882 buildGooglePrivacyDlpV2beta1InspectResult() { |
832 var o = new api.GooglePrivacyDlpV2beta1InspectResult(); | 883 var o = new api.GooglePrivacyDlpV2beta1InspectResult(); |
833 buildCounterGooglePrivacyDlpV2beta1InspectResult++; | 884 buildCounterGooglePrivacyDlpV2beta1InspectResult++; |
834 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { | 885 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { |
835 o.findings = buildUnnamed3321(); | 886 o.findings = buildUnnamed3314(); |
836 o.findingsTruncated = true; | 887 o.findingsTruncated = true; |
837 } | 888 } |
838 buildCounterGooglePrivacyDlpV2beta1InspectResult--; | 889 buildCounterGooglePrivacyDlpV2beta1InspectResult--; |
839 return o; | 890 return o; |
840 } | 891 } |
841 | 892 |
842 checkGooglePrivacyDlpV2beta1InspectResult(api.GooglePrivacyDlpV2beta1InspectResu
lt o) { | 893 checkGooglePrivacyDlpV2beta1InspectResult( |
| 894 api.GooglePrivacyDlpV2beta1InspectResult o) { |
843 buildCounterGooglePrivacyDlpV2beta1InspectResult++; | 895 buildCounterGooglePrivacyDlpV2beta1InspectResult++; |
844 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { | 896 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { |
845 checkUnnamed3321(o.findings); | 897 checkUnnamed3314(o.findings); |
846 unittest.expect(o.findingsTruncated, unittest.isTrue); | 898 unittest.expect(o.findingsTruncated, unittest.isTrue); |
847 } | 899 } |
848 buildCounterGooglePrivacyDlpV2beta1InspectResult--; | 900 buildCounterGooglePrivacyDlpV2beta1InspectResult--; |
849 } | 901 } |
850 | 902 |
851 buildUnnamed3322() { | 903 buildUnnamed3315() { |
852 var o = new core.List<api.GooglePrivacyDlpV2beta1PathElement>(); | 904 var o = new core.List<api.GooglePrivacyDlpV2beta1PathElement>(); |
853 o.add(buildGooglePrivacyDlpV2beta1PathElement()); | 905 o.add(buildGooglePrivacyDlpV2beta1PathElement()); |
854 o.add(buildGooglePrivacyDlpV2beta1PathElement()); | 906 o.add(buildGooglePrivacyDlpV2beta1PathElement()); |
855 return o; | 907 return o; |
856 } | 908 } |
857 | 909 |
858 checkUnnamed3322(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) { | 910 checkUnnamed3315(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) { |
859 unittest.expect(o, unittest.hasLength(2)); | 911 unittest.expect(o, unittest.hasLength(2)); |
860 checkGooglePrivacyDlpV2beta1PathElement(o[0]); | 912 checkGooglePrivacyDlpV2beta1PathElement(o[0]); |
861 checkGooglePrivacyDlpV2beta1PathElement(o[1]); | 913 checkGooglePrivacyDlpV2beta1PathElement(o[1]); |
862 } | 914 } |
863 | 915 |
864 core.int buildCounterGooglePrivacyDlpV2beta1Key = 0; | 916 core.int buildCounterGooglePrivacyDlpV2beta1Key = 0; |
865 buildGooglePrivacyDlpV2beta1Key() { | 917 buildGooglePrivacyDlpV2beta1Key() { |
866 var o = new api.GooglePrivacyDlpV2beta1Key(); | 918 var o = new api.GooglePrivacyDlpV2beta1Key(); |
867 buildCounterGooglePrivacyDlpV2beta1Key++; | 919 buildCounterGooglePrivacyDlpV2beta1Key++; |
868 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { | 920 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { |
869 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); | 921 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); |
870 o.path = buildUnnamed3322(); | 922 o.path = buildUnnamed3315(); |
871 } | 923 } |
872 buildCounterGooglePrivacyDlpV2beta1Key--; | 924 buildCounterGooglePrivacyDlpV2beta1Key--; |
873 return o; | 925 return o; |
874 } | 926 } |
875 | 927 |
876 checkGooglePrivacyDlpV2beta1Key(api.GooglePrivacyDlpV2beta1Key o) { | 928 checkGooglePrivacyDlpV2beta1Key(api.GooglePrivacyDlpV2beta1Key o) { |
877 buildCounterGooglePrivacyDlpV2beta1Key++; | 929 buildCounterGooglePrivacyDlpV2beta1Key++; |
878 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { | 930 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { |
879 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); | 931 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); |
880 checkUnnamed3322(o.path); | 932 checkUnnamed3315(o.path); |
881 } | 933 } |
882 buildCounterGooglePrivacyDlpV2beta1Key--; | 934 buildCounterGooglePrivacyDlpV2beta1Key--; |
883 } | 935 } |
884 | 936 |
885 core.int buildCounterGooglePrivacyDlpV2beta1KindExpression = 0; | 937 core.int buildCounterGooglePrivacyDlpV2beta1KindExpression = 0; |
886 buildGooglePrivacyDlpV2beta1KindExpression() { | 938 buildGooglePrivacyDlpV2beta1KindExpression() { |
887 var o = new api.GooglePrivacyDlpV2beta1KindExpression(); | 939 var o = new api.GooglePrivacyDlpV2beta1KindExpression(); |
888 buildCounterGooglePrivacyDlpV2beta1KindExpression++; | 940 buildCounterGooglePrivacyDlpV2beta1KindExpression++; |
889 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { | 941 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { |
890 o.name = "foo"; | 942 o.name = "foo"; |
891 } | 943 } |
892 buildCounterGooglePrivacyDlpV2beta1KindExpression--; | 944 buildCounterGooglePrivacyDlpV2beta1KindExpression--; |
893 return o; | 945 return o; |
894 } | 946 } |
895 | 947 |
896 checkGooglePrivacyDlpV2beta1KindExpression(api.GooglePrivacyDlpV2beta1KindExpres
sion o) { | 948 checkGooglePrivacyDlpV2beta1KindExpression( |
| 949 api.GooglePrivacyDlpV2beta1KindExpression o) { |
897 buildCounterGooglePrivacyDlpV2beta1KindExpression++; | 950 buildCounterGooglePrivacyDlpV2beta1KindExpression++; |
898 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { | 951 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { |
899 unittest.expect(o.name, unittest.equals('foo')); | 952 unittest.expect(o.name, unittest.equals('foo')); |
900 } | 953 } |
901 buildCounterGooglePrivacyDlpV2beta1KindExpression--; | 954 buildCounterGooglePrivacyDlpV2beta1KindExpression--; |
902 } | 955 } |
903 | 956 |
904 buildUnnamed3323() { | 957 buildUnnamed3316() { |
905 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription>(); | 958 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription>(); |
906 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); | 959 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); |
907 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); | 960 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); |
908 return o; | 961 return o; |
909 } | 962 } |
910 | 963 |
911 checkUnnamed3323(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) { | 964 checkUnnamed3316(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) { |
912 unittest.expect(o, unittest.hasLength(2)); | 965 unittest.expect(o, unittest.hasLength(2)); |
913 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[0]); | 966 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[0]); |
914 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[1]); | 967 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[1]); |
915 } | 968 } |
916 | 969 |
917 core.int buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse = 0; | 970 core.int buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse = 0; |
918 buildGooglePrivacyDlpV2beta1ListInfoTypesResponse() { | 971 buildGooglePrivacyDlpV2beta1ListInfoTypesResponse() { |
919 var o = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse(); | 972 var o = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse(); |
920 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; | 973 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; |
921 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { | 974 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { |
922 o.infoTypes = buildUnnamed3323(); | 975 o.infoTypes = buildUnnamed3316(); |
923 } | 976 } |
924 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; | 977 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; |
925 return o; | 978 return o; |
926 } | 979 } |
927 | 980 |
928 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(api.GooglePrivacyDlpV2beta1Lis
tInfoTypesResponse o) { | 981 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse( |
| 982 api.GooglePrivacyDlpV2beta1ListInfoTypesResponse o) { |
929 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; | 983 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; |
930 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { | 984 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { |
931 checkUnnamed3323(o.infoTypes); | 985 checkUnnamed3316(o.infoTypes); |
932 } | 986 } |
933 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; | 987 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; |
934 } | 988 } |
935 | 989 |
936 core.int buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse = 0; | 990 core.int buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse = 0; |
937 buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse() { | 991 buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse() { |
938 var o = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse(); | 992 var o = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse(); |
939 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; | 993 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; |
940 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { | 994 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { |
941 o.nextPageToken = "foo"; | 995 o.nextPageToken = "foo"; |
942 o.result = buildGooglePrivacyDlpV2beta1InspectResult(); | 996 o.result = buildGooglePrivacyDlpV2beta1InspectResult(); |
943 } | 997 } |
944 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; | 998 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; |
945 return o; | 999 return o; |
946 } | 1000 } |
947 | 1001 |
948 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(api.GooglePrivacyDlpV2be
ta1ListInspectFindingsResponse o) { | 1002 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse( |
| 1003 api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse o) { |
949 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; | 1004 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; |
950 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { | 1005 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { |
951 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1006 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
952 checkGooglePrivacyDlpV2beta1InspectResult(o.result); | 1007 checkGooglePrivacyDlpV2beta1InspectResult(o.result); |
953 } | 1008 } |
954 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; | 1009 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; |
955 } | 1010 } |
956 | 1011 |
957 buildUnnamed3324() { | 1012 buildUnnamed3317() { |
958 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); | 1013 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); |
959 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 1014 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
960 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 1015 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
961 return o; | 1016 return o; |
962 } | 1017 } |
963 | 1018 |
964 checkUnnamed3324(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { | 1019 checkUnnamed3317(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { |
965 unittest.expect(o, unittest.hasLength(2)); | 1020 unittest.expect(o, unittest.hasLength(2)); |
966 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); | 1021 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); |
967 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); | 1022 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); |
968 } | 1023 } |
969 | 1024 |
970 core.int buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse = 0; | 1025 core.int buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse = 0; |
971 buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse() { | 1026 buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse() { |
972 var o = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); | 1027 var o = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); |
973 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; | 1028 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; |
974 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { | 1029 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { |
975 o.categories = buildUnnamed3324(); | 1030 o.categories = buildUnnamed3317(); |
976 } | 1031 } |
977 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; | 1032 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; |
978 return o; | 1033 return o; |
979 } | 1034 } |
980 | 1035 |
981 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(api.GooglePrivacyDlpV2bet
a1ListRootCategoriesResponse o) { | 1036 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse( |
| 1037 api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse o) { |
982 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; | 1038 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; |
983 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { | 1039 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { |
984 checkUnnamed3324(o.categories); | 1040 checkUnnamed3317(o.categories); |
985 } | 1041 } |
986 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; | 1042 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; |
987 } | 1043 } |
988 | 1044 |
989 buildUnnamed3325() { | 1045 buildUnnamed3318() { |
990 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageLocation>(); | 1046 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageLocation>(); |
991 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); | 1047 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); |
992 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); | 1048 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); |
993 return o; | 1049 return o; |
994 } | 1050 } |
995 | 1051 |
996 checkUnnamed3325(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) { | 1052 checkUnnamed3318(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) { |
997 unittest.expect(o, unittest.hasLength(2)); | 1053 unittest.expect(o, unittest.hasLength(2)); |
998 checkGooglePrivacyDlpV2beta1ImageLocation(o[0]); | 1054 checkGooglePrivacyDlpV2beta1ImageLocation(o[0]); |
999 checkGooglePrivacyDlpV2beta1ImageLocation(o[1]); | 1055 checkGooglePrivacyDlpV2beta1ImageLocation(o[1]); |
1000 } | 1056 } |
1001 | 1057 |
1002 core.int buildCounterGooglePrivacyDlpV2beta1Location = 0; | 1058 core.int buildCounterGooglePrivacyDlpV2beta1Location = 0; |
1003 buildGooglePrivacyDlpV2beta1Location() { | 1059 buildGooglePrivacyDlpV2beta1Location() { |
1004 var o = new api.GooglePrivacyDlpV2beta1Location(); | 1060 var o = new api.GooglePrivacyDlpV2beta1Location(); |
1005 buildCounterGooglePrivacyDlpV2beta1Location++; | 1061 buildCounterGooglePrivacyDlpV2beta1Location++; |
1006 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { | 1062 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { |
1007 o.byteRange = buildGooglePrivacyDlpV2beta1Range(); | 1063 o.byteRange = buildGooglePrivacyDlpV2beta1Range(); |
1008 o.codepointRange = buildGooglePrivacyDlpV2beta1Range(); | 1064 o.codepointRange = buildGooglePrivacyDlpV2beta1Range(); |
1009 o.fieldId = buildGooglePrivacyDlpV2beta1FieldId(); | 1065 o.fieldId = buildGooglePrivacyDlpV2beta1FieldId(); |
1010 o.imageBoxes = buildUnnamed3325(); | 1066 o.imageBoxes = buildUnnamed3318(); |
1011 o.recordKey = buildGooglePrivacyDlpV2beta1RecordKey(); | 1067 o.recordKey = buildGooglePrivacyDlpV2beta1RecordKey(); |
1012 o.tableLocation = buildGooglePrivacyDlpV2beta1TableLocation(); | 1068 o.tableLocation = buildGooglePrivacyDlpV2beta1TableLocation(); |
1013 } | 1069 } |
1014 buildCounterGooglePrivacyDlpV2beta1Location--; | 1070 buildCounterGooglePrivacyDlpV2beta1Location--; |
1015 return o; | 1071 return o; |
1016 } | 1072 } |
1017 | 1073 |
1018 checkGooglePrivacyDlpV2beta1Location(api.GooglePrivacyDlpV2beta1Location o) { | 1074 checkGooglePrivacyDlpV2beta1Location(api.GooglePrivacyDlpV2beta1Location o) { |
1019 buildCounterGooglePrivacyDlpV2beta1Location++; | 1075 buildCounterGooglePrivacyDlpV2beta1Location++; |
1020 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { | 1076 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { |
1021 checkGooglePrivacyDlpV2beta1Range(o.byteRange); | 1077 checkGooglePrivacyDlpV2beta1Range(o.byteRange); |
1022 checkGooglePrivacyDlpV2beta1Range(o.codepointRange); | 1078 checkGooglePrivacyDlpV2beta1Range(o.codepointRange); |
1023 checkGooglePrivacyDlpV2beta1FieldId(o.fieldId); | 1079 checkGooglePrivacyDlpV2beta1FieldId(o.fieldId); |
1024 checkUnnamed3325(o.imageBoxes); | 1080 checkUnnamed3318(o.imageBoxes); |
1025 checkGooglePrivacyDlpV2beta1RecordKey(o.recordKey); | 1081 checkGooglePrivacyDlpV2beta1RecordKey(o.recordKey); |
1026 checkGooglePrivacyDlpV2beta1TableLocation(o.tableLocation); | 1082 checkGooglePrivacyDlpV2beta1TableLocation(o.tableLocation); |
1027 } | 1083 } |
1028 buildCounterGooglePrivacyDlpV2beta1Location--; | 1084 buildCounterGooglePrivacyDlpV2beta1Location--; |
1029 } | 1085 } |
1030 | 1086 |
1031 core.int buildCounterGooglePrivacyDlpV2beta1OperationConfig = 0; | 1087 core.int buildCounterGooglePrivacyDlpV2beta1OperationConfig = 0; |
1032 buildGooglePrivacyDlpV2beta1OperationConfig() { | 1088 buildGooglePrivacyDlpV2beta1OperationConfig() { |
1033 var o = new api.GooglePrivacyDlpV2beta1OperationConfig(); | 1089 var o = new api.GooglePrivacyDlpV2beta1OperationConfig(); |
1034 buildCounterGooglePrivacyDlpV2beta1OperationConfig++; | 1090 buildCounterGooglePrivacyDlpV2beta1OperationConfig++; |
1035 if (buildCounterGooglePrivacyDlpV2beta1OperationConfig < 3) { | 1091 if (buildCounterGooglePrivacyDlpV2beta1OperationConfig < 3) { |
1036 o.maxItemFindings = "foo"; | 1092 o.maxItemFindings = "foo"; |
1037 } | 1093 } |
1038 buildCounterGooglePrivacyDlpV2beta1OperationConfig--; | 1094 buildCounterGooglePrivacyDlpV2beta1OperationConfig--; |
1039 return o; | 1095 return o; |
1040 } | 1096 } |
1041 | 1097 |
1042 checkGooglePrivacyDlpV2beta1OperationConfig(api.GooglePrivacyDlpV2beta1Operation
Config o) { | 1098 checkGooglePrivacyDlpV2beta1OperationConfig( |
| 1099 api.GooglePrivacyDlpV2beta1OperationConfig o) { |
1043 buildCounterGooglePrivacyDlpV2beta1OperationConfig++; | 1100 buildCounterGooglePrivacyDlpV2beta1OperationConfig++; |
1044 if (buildCounterGooglePrivacyDlpV2beta1OperationConfig < 3) { | 1101 if (buildCounterGooglePrivacyDlpV2beta1OperationConfig < 3) { |
1045 unittest.expect(o.maxItemFindings, unittest.equals('foo')); | 1102 unittest.expect(o.maxItemFindings, unittest.equals('foo')); |
1046 } | 1103 } |
1047 buildCounterGooglePrivacyDlpV2beta1OperationConfig--; | 1104 buildCounterGooglePrivacyDlpV2beta1OperationConfig--; |
1048 } | 1105 } |
1049 | 1106 |
1050 core.int buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig = 0; | 1107 core.int buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig = 0; |
1051 buildGooglePrivacyDlpV2beta1OutputStorageConfig() { | 1108 buildGooglePrivacyDlpV2beta1OutputStorageConfig() { |
1052 var o = new api.GooglePrivacyDlpV2beta1OutputStorageConfig(); | 1109 var o = new api.GooglePrivacyDlpV2beta1OutputStorageConfig(); |
1053 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++; | 1110 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++; |
1054 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) { | 1111 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) { |
1055 o.storagePath = buildGooglePrivacyDlpV2beta1CloudStoragePath(); | 1112 o.storagePath = buildGooglePrivacyDlpV2beta1CloudStoragePath(); |
1056 o.table = buildGooglePrivacyDlpV2beta1BigQueryTable(); | 1113 o.table = buildGooglePrivacyDlpV2beta1BigQueryTable(); |
1057 } | 1114 } |
1058 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig--; | 1115 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig--; |
1059 return o; | 1116 return o; |
1060 } | 1117 } |
1061 | 1118 |
1062 checkGooglePrivacyDlpV2beta1OutputStorageConfig(api.GooglePrivacyDlpV2beta1Outpu
tStorageConfig o) { | 1119 checkGooglePrivacyDlpV2beta1OutputStorageConfig( |
| 1120 api.GooglePrivacyDlpV2beta1OutputStorageConfig o) { |
1063 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++; | 1121 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++; |
1064 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) { | 1122 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) { |
1065 checkGooglePrivacyDlpV2beta1CloudStoragePath(o.storagePath); | 1123 checkGooglePrivacyDlpV2beta1CloudStoragePath(o.storagePath); |
1066 checkGooglePrivacyDlpV2beta1BigQueryTable(o.table); | 1124 checkGooglePrivacyDlpV2beta1BigQueryTable(o.table); |
1067 } | 1125 } |
1068 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig--; | 1126 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig--; |
1069 } | 1127 } |
1070 | 1128 |
1071 core.int buildCounterGooglePrivacyDlpV2beta1PartitionId = 0; | 1129 core.int buildCounterGooglePrivacyDlpV2beta1PartitionId = 0; |
1072 buildGooglePrivacyDlpV2beta1PartitionId() { | 1130 buildGooglePrivacyDlpV2beta1PartitionId() { |
1073 var o = new api.GooglePrivacyDlpV2beta1PartitionId(); | 1131 var o = new api.GooglePrivacyDlpV2beta1PartitionId(); |
1074 buildCounterGooglePrivacyDlpV2beta1PartitionId++; | 1132 buildCounterGooglePrivacyDlpV2beta1PartitionId++; |
1075 if (buildCounterGooglePrivacyDlpV2beta1PartitionId < 3) { | 1133 if (buildCounterGooglePrivacyDlpV2beta1PartitionId < 3) { |
1076 o.namespaceId = "foo"; | 1134 o.namespaceId = "foo"; |
1077 o.projectId = "foo"; | 1135 o.projectId = "foo"; |
1078 } | 1136 } |
1079 buildCounterGooglePrivacyDlpV2beta1PartitionId--; | 1137 buildCounterGooglePrivacyDlpV2beta1PartitionId--; |
1080 return o; | 1138 return o; |
1081 } | 1139 } |
1082 | 1140 |
1083 checkGooglePrivacyDlpV2beta1PartitionId(api.GooglePrivacyDlpV2beta1PartitionId o
) { | 1141 checkGooglePrivacyDlpV2beta1PartitionId( |
| 1142 api.GooglePrivacyDlpV2beta1PartitionId o) { |
1084 buildCounterGooglePrivacyDlpV2beta1PartitionId++; | 1143 buildCounterGooglePrivacyDlpV2beta1PartitionId++; |
1085 if (buildCounterGooglePrivacyDlpV2beta1PartitionId < 3) { | 1144 if (buildCounterGooglePrivacyDlpV2beta1PartitionId < 3) { |
1086 unittest.expect(o.namespaceId, unittest.equals('foo')); | 1145 unittest.expect(o.namespaceId, unittest.equals('foo')); |
1087 unittest.expect(o.projectId, unittest.equals('foo')); | 1146 unittest.expect(o.projectId, unittest.equals('foo')); |
1088 } | 1147 } |
1089 buildCounterGooglePrivacyDlpV2beta1PartitionId--; | 1148 buildCounterGooglePrivacyDlpV2beta1PartitionId--; |
1090 } | 1149 } |
1091 | 1150 |
1092 core.int buildCounterGooglePrivacyDlpV2beta1PathElement = 0; | 1151 core.int buildCounterGooglePrivacyDlpV2beta1PathElement = 0; |
1093 buildGooglePrivacyDlpV2beta1PathElement() { | 1152 buildGooglePrivacyDlpV2beta1PathElement() { |
1094 var o = new api.GooglePrivacyDlpV2beta1PathElement(); | 1153 var o = new api.GooglePrivacyDlpV2beta1PathElement(); |
1095 buildCounterGooglePrivacyDlpV2beta1PathElement++; | 1154 buildCounterGooglePrivacyDlpV2beta1PathElement++; |
1096 if (buildCounterGooglePrivacyDlpV2beta1PathElement < 3) { | 1155 if (buildCounterGooglePrivacyDlpV2beta1PathElement < 3) { |
1097 o.id = "foo"; | 1156 o.id = "foo"; |
1098 o.kind = "foo"; | 1157 o.kind = "foo"; |
1099 o.name = "foo"; | 1158 o.name = "foo"; |
1100 } | 1159 } |
1101 buildCounterGooglePrivacyDlpV2beta1PathElement--; | 1160 buildCounterGooglePrivacyDlpV2beta1PathElement--; |
1102 return o; | 1161 return o; |
1103 } | 1162 } |
1104 | 1163 |
1105 checkGooglePrivacyDlpV2beta1PathElement(api.GooglePrivacyDlpV2beta1PathElement o
) { | 1164 checkGooglePrivacyDlpV2beta1PathElement( |
| 1165 api.GooglePrivacyDlpV2beta1PathElement o) { |
1106 buildCounterGooglePrivacyDlpV2beta1PathElement++; | 1166 buildCounterGooglePrivacyDlpV2beta1PathElement++; |
1107 if (buildCounterGooglePrivacyDlpV2beta1PathElement < 3) { | 1167 if (buildCounterGooglePrivacyDlpV2beta1PathElement < 3) { |
1108 unittest.expect(o.id, unittest.equals('foo')); | 1168 unittest.expect(o.id, unittest.equals('foo')); |
1109 unittest.expect(o.kind, unittest.equals('foo')); | 1169 unittest.expect(o.kind, unittest.equals('foo')); |
1110 unittest.expect(o.name, unittest.equals('foo')); | 1170 unittest.expect(o.name, unittest.equals('foo')); |
1111 } | 1171 } |
1112 buildCounterGooglePrivacyDlpV2beta1PathElement--; | 1172 buildCounterGooglePrivacyDlpV2beta1PathElement--; |
1113 } | 1173 } |
1114 | 1174 |
1115 core.int buildCounterGooglePrivacyDlpV2beta1Projection = 0; | 1175 core.int buildCounterGooglePrivacyDlpV2beta1Projection = 0; |
1116 buildGooglePrivacyDlpV2beta1Projection() { | 1176 buildGooglePrivacyDlpV2beta1Projection() { |
1117 var o = new api.GooglePrivacyDlpV2beta1Projection(); | 1177 var o = new api.GooglePrivacyDlpV2beta1Projection(); |
1118 buildCounterGooglePrivacyDlpV2beta1Projection++; | 1178 buildCounterGooglePrivacyDlpV2beta1Projection++; |
1119 if (buildCounterGooglePrivacyDlpV2beta1Projection < 3) { | 1179 if (buildCounterGooglePrivacyDlpV2beta1Projection < 3) { |
1120 o.property = buildGooglePrivacyDlpV2beta1PropertyReference(); | 1180 o.property = buildGooglePrivacyDlpV2beta1PropertyReference(); |
1121 } | 1181 } |
1122 buildCounterGooglePrivacyDlpV2beta1Projection--; | 1182 buildCounterGooglePrivacyDlpV2beta1Projection--; |
1123 return o; | 1183 return o; |
1124 } | 1184 } |
1125 | 1185 |
1126 checkGooglePrivacyDlpV2beta1Projection(api.GooglePrivacyDlpV2beta1Projection o)
{ | 1186 checkGooglePrivacyDlpV2beta1Projection( |
| 1187 api.GooglePrivacyDlpV2beta1Projection o) { |
1127 buildCounterGooglePrivacyDlpV2beta1Projection++; | 1188 buildCounterGooglePrivacyDlpV2beta1Projection++; |
1128 if (buildCounterGooglePrivacyDlpV2beta1Projection < 3) { | 1189 if (buildCounterGooglePrivacyDlpV2beta1Projection < 3) { |
1129 checkGooglePrivacyDlpV2beta1PropertyReference(o.property); | 1190 checkGooglePrivacyDlpV2beta1PropertyReference(o.property); |
1130 } | 1191 } |
1131 buildCounterGooglePrivacyDlpV2beta1Projection--; | 1192 buildCounterGooglePrivacyDlpV2beta1Projection--; |
1132 } | 1193 } |
1133 | 1194 |
1134 core.int buildCounterGooglePrivacyDlpV2beta1PropertyReference = 0; | 1195 core.int buildCounterGooglePrivacyDlpV2beta1PropertyReference = 0; |
1135 buildGooglePrivacyDlpV2beta1PropertyReference() { | 1196 buildGooglePrivacyDlpV2beta1PropertyReference() { |
1136 var o = new api.GooglePrivacyDlpV2beta1PropertyReference(); | 1197 var o = new api.GooglePrivacyDlpV2beta1PropertyReference(); |
1137 buildCounterGooglePrivacyDlpV2beta1PropertyReference++; | 1198 buildCounterGooglePrivacyDlpV2beta1PropertyReference++; |
1138 if (buildCounterGooglePrivacyDlpV2beta1PropertyReference < 3) { | 1199 if (buildCounterGooglePrivacyDlpV2beta1PropertyReference < 3) { |
1139 o.name = "foo"; | 1200 o.name = "foo"; |
1140 } | 1201 } |
1141 buildCounterGooglePrivacyDlpV2beta1PropertyReference--; | 1202 buildCounterGooglePrivacyDlpV2beta1PropertyReference--; |
1142 return o; | 1203 return o; |
1143 } | 1204 } |
1144 | 1205 |
1145 checkGooglePrivacyDlpV2beta1PropertyReference(api.GooglePrivacyDlpV2beta1Propert
yReference o) { | 1206 checkGooglePrivacyDlpV2beta1PropertyReference( |
| 1207 api.GooglePrivacyDlpV2beta1PropertyReference o) { |
1146 buildCounterGooglePrivacyDlpV2beta1PropertyReference++; | 1208 buildCounterGooglePrivacyDlpV2beta1PropertyReference++; |
1147 if (buildCounterGooglePrivacyDlpV2beta1PropertyReference < 3) { | 1209 if (buildCounterGooglePrivacyDlpV2beta1PropertyReference < 3) { |
1148 unittest.expect(o.name, unittest.equals('foo')); | 1210 unittest.expect(o.name, unittest.equals('foo')); |
1149 } | 1211 } |
1150 buildCounterGooglePrivacyDlpV2beta1PropertyReference--; | 1212 buildCounterGooglePrivacyDlpV2beta1PropertyReference--; |
1151 } | 1213 } |
1152 | 1214 |
1153 core.int buildCounterGooglePrivacyDlpV2beta1Range = 0; | 1215 core.int buildCounterGooglePrivacyDlpV2beta1Range = 0; |
1154 buildGooglePrivacyDlpV2beta1Range() { | 1216 buildGooglePrivacyDlpV2beta1Range() { |
1155 var o = new api.GooglePrivacyDlpV2beta1Range(); | 1217 var o = new api.GooglePrivacyDlpV2beta1Range(); |
(...skipping 29 matching lines...) Expand all Loading... |
1185 | 1247 |
1186 checkGooglePrivacyDlpV2beta1RecordKey(api.GooglePrivacyDlpV2beta1RecordKey o) { | 1248 checkGooglePrivacyDlpV2beta1RecordKey(api.GooglePrivacyDlpV2beta1RecordKey o) { |
1187 buildCounterGooglePrivacyDlpV2beta1RecordKey++; | 1249 buildCounterGooglePrivacyDlpV2beta1RecordKey++; |
1188 if (buildCounterGooglePrivacyDlpV2beta1RecordKey < 3) { | 1250 if (buildCounterGooglePrivacyDlpV2beta1RecordKey < 3) { |
1189 checkGooglePrivacyDlpV2beta1CloudStorageKey(o.cloudStorageKey); | 1251 checkGooglePrivacyDlpV2beta1CloudStorageKey(o.cloudStorageKey); |
1190 checkGooglePrivacyDlpV2beta1DatastoreKey(o.datastoreKey); | 1252 checkGooglePrivacyDlpV2beta1DatastoreKey(o.datastoreKey); |
1191 } | 1253 } |
1192 buildCounterGooglePrivacyDlpV2beta1RecordKey--; | 1254 buildCounterGooglePrivacyDlpV2beta1RecordKey--; |
1193 } | 1255 } |
1194 | 1256 |
1195 buildUnnamed3326() { | 1257 buildUnnamed3319() { |
1196 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig>(); | 1258 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig>(); |
1197 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); | 1259 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); |
1198 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); | 1260 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); |
1199 return o; | 1261 return o; |
1200 } | 1262 } |
1201 | 1263 |
1202 checkUnnamed3326(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) { | 1264 checkUnnamed3319(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) { |
1203 unittest.expect(o, unittest.hasLength(2)); | 1265 unittest.expect(o, unittest.hasLength(2)); |
1204 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[0]); | 1266 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[0]); |
1205 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[1]); | 1267 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[1]); |
1206 } | 1268 } |
1207 | 1269 |
1208 buildUnnamed3327() { | 1270 buildUnnamed3320() { |
1209 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); | 1271 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); |
1210 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1272 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1211 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1273 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1212 return o; | 1274 return o; |
1213 } | 1275 } |
1214 | 1276 |
1215 checkUnnamed3327(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { | 1277 checkUnnamed3320(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { |
1216 unittest.expect(o, unittest.hasLength(2)); | 1278 unittest.expect(o, unittest.hasLength(2)); |
1217 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); | 1279 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); |
1218 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); | 1280 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); |
1219 } | 1281 } |
1220 | 1282 |
1221 buildUnnamed3328() { | 1283 buildUnnamed3321() { |
1222 var o = new core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig>(); | 1284 var o = new core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig>(); |
1223 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); | 1285 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); |
1224 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); | 1286 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); |
1225 return o; | 1287 return o; |
1226 } | 1288 } |
1227 | 1289 |
1228 checkUnnamed3328(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) { | 1290 checkUnnamed3321(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) { |
1229 unittest.expect(o, unittest.hasLength(2)); | 1291 unittest.expect(o, unittest.hasLength(2)); |
1230 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[0]); | 1292 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[0]); |
1231 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[1]); | 1293 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[1]); |
1232 } | 1294 } |
1233 | 1295 |
1234 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentRequest = 0; | 1296 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentRequest = 0; |
1235 buildGooglePrivacyDlpV2beta1RedactContentRequest() { | 1297 buildGooglePrivacyDlpV2beta1RedactContentRequest() { |
1236 var o = new api.GooglePrivacyDlpV2beta1RedactContentRequest(); | 1298 var o = new api.GooglePrivacyDlpV2beta1RedactContentRequest(); |
1237 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; | 1299 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; |
1238 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { | 1300 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { |
1239 o.imageRedactionConfigs = buildUnnamed3326(); | 1301 o.imageRedactionConfigs = buildUnnamed3319(); |
1240 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); | 1302 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); |
1241 o.items = buildUnnamed3327(); | 1303 o.items = buildUnnamed3320(); |
1242 o.replaceConfigs = buildUnnamed3328(); | 1304 o.replaceConfigs = buildUnnamed3321(); |
1243 } | 1305 } |
1244 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; | 1306 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; |
1245 return o; | 1307 return o; |
1246 } | 1308 } |
1247 | 1309 |
1248 checkGooglePrivacyDlpV2beta1RedactContentRequest(api.GooglePrivacyDlpV2beta1Reda
ctContentRequest o) { | 1310 checkGooglePrivacyDlpV2beta1RedactContentRequest( |
| 1311 api.GooglePrivacyDlpV2beta1RedactContentRequest o) { |
1249 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; | 1312 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; |
1250 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { | 1313 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { |
1251 checkUnnamed3326(o.imageRedactionConfigs); | 1314 checkUnnamed3319(o.imageRedactionConfigs); |
1252 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); | 1315 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); |
1253 checkUnnamed3327(o.items); | 1316 checkUnnamed3320(o.items); |
1254 checkUnnamed3328(o.replaceConfigs); | 1317 checkUnnamed3321(o.replaceConfigs); |
1255 } | 1318 } |
1256 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; | 1319 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; |
1257 } | 1320 } |
1258 | 1321 |
1259 buildUnnamed3329() { | 1322 buildUnnamed3322() { |
1260 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); | 1323 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); |
1261 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1324 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1262 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1325 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1263 return o; | 1326 return o; |
1264 } | 1327 } |
1265 | 1328 |
1266 checkUnnamed3329(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { | 1329 checkUnnamed3322(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { |
1267 unittest.expect(o, unittest.hasLength(2)); | 1330 unittest.expect(o, unittest.hasLength(2)); |
1268 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); | 1331 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); |
1269 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); | 1332 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); |
1270 } | 1333 } |
1271 | 1334 |
1272 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentResponse = 0; | 1335 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentResponse = 0; |
1273 buildGooglePrivacyDlpV2beta1RedactContentResponse() { | 1336 buildGooglePrivacyDlpV2beta1RedactContentResponse() { |
1274 var o = new api.GooglePrivacyDlpV2beta1RedactContentResponse(); | 1337 var o = new api.GooglePrivacyDlpV2beta1RedactContentResponse(); |
1275 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; | 1338 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; |
1276 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { | 1339 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { |
1277 o.items = buildUnnamed3329(); | 1340 o.items = buildUnnamed3322(); |
1278 } | 1341 } |
1279 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; | 1342 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; |
1280 return o; | 1343 return o; |
1281 } | 1344 } |
1282 | 1345 |
1283 checkGooglePrivacyDlpV2beta1RedactContentResponse(api.GooglePrivacyDlpV2beta1Red
actContentResponse o) { | 1346 checkGooglePrivacyDlpV2beta1RedactContentResponse( |
| 1347 api.GooglePrivacyDlpV2beta1RedactContentResponse o) { |
1284 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; | 1348 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; |
1285 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { | 1349 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { |
1286 checkUnnamed3329(o.items); | 1350 checkUnnamed3322(o.items); |
1287 } | 1351 } |
1288 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; | 1352 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; |
1289 } | 1353 } |
1290 | 1354 |
1291 core.int buildCounterGooglePrivacyDlpV2beta1ReplaceConfig = 0; | 1355 core.int buildCounterGooglePrivacyDlpV2beta1ReplaceConfig = 0; |
1292 buildGooglePrivacyDlpV2beta1ReplaceConfig() { | 1356 buildGooglePrivacyDlpV2beta1ReplaceConfig() { |
1293 var o = new api.GooglePrivacyDlpV2beta1ReplaceConfig(); | 1357 var o = new api.GooglePrivacyDlpV2beta1ReplaceConfig(); |
1294 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++; | 1358 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++; |
1295 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) { | 1359 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) { |
1296 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); | 1360 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); |
1297 o.replaceWith = "foo"; | 1361 o.replaceWith = "foo"; |
1298 } | 1362 } |
1299 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig--; | 1363 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig--; |
1300 return o; | 1364 return o; |
1301 } | 1365 } |
1302 | 1366 |
1303 checkGooglePrivacyDlpV2beta1ReplaceConfig(api.GooglePrivacyDlpV2beta1ReplaceConf
ig o) { | 1367 checkGooglePrivacyDlpV2beta1ReplaceConfig( |
| 1368 api.GooglePrivacyDlpV2beta1ReplaceConfig o) { |
1304 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++; | 1369 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++; |
1305 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) { | 1370 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) { |
1306 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); | 1371 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); |
1307 unittest.expect(o.replaceWith, unittest.equals('foo')); | 1372 unittest.expect(o.replaceWith, unittest.equals('foo')); |
1308 } | 1373 } |
1309 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig--; | 1374 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig--; |
1310 } | 1375 } |
1311 | 1376 |
1312 buildUnnamed3330() { | 1377 buildUnnamed3323() { |
1313 var o = new core.List<api.GooglePrivacyDlpV2beta1Value>(); | 1378 var o = new core.List<api.GooglePrivacyDlpV2beta1Value>(); |
1314 o.add(buildGooglePrivacyDlpV2beta1Value()); | 1379 o.add(buildGooglePrivacyDlpV2beta1Value()); |
1315 o.add(buildGooglePrivacyDlpV2beta1Value()); | 1380 o.add(buildGooglePrivacyDlpV2beta1Value()); |
1316 return o; | 1381 return o; |
1317 } | 1382 } |
1318 | 1383 |
1319 checkUnnamed3330(core.List<api.GooglePrivacyDlpV2beta1Value> o) { | 1384 checkUnnamed3323(core.List<api.GooglePrivacyDlpV2beta1Value> o) { |
1320 unittest.expect(o, unittest.hasLength(2)); | 1385 unittest.expect(o, unittest.hasLength(2)); |
1321 checkGooglePrivacyDlpV2beta1Value(o[0]); | 1386 checkGooglePrivacyDlpV2beta1Value(o[0]); |
1322 checkGooglePrivacyDlpV2beta1Value(o[1]); | 1387 checkGooglePrivacyDlpV2beta1Value(o[1]); |
1323 } | 1388 } |
1324 | 1389 |
1325 core.int buildCounterGooglePrivacyDlpV2beta1Row = 0; | 1390 core.int buildCounterGooglePrivacyDlpV2beta1Row = 0; |
1326 buildGooglePrivacyDlpV2beta1Row() { | 1391 buildGooglePrivacyDlpV2beta1Row() { |
1327 var o = new api.GooglePrivacyDlpV2beta1Row(); | 1392 var o = new api.GooglePrivacyDlpV2beta1Row(); |
1328 buildCounterGooglePrivacyDlpV2beta1Row++; | 1393 buildCounterGooglePrivacyDlpV2beta1Row++; |
1329 if (buildCounterGooglePrivacyDlpV2beta1Row < 3) { | 1394 if (buildCounterGooglePrivacyDlpV2beta1Row < 3) { |
1330 o.values = buildUnnamed3330(); | 1395 o.values = buildUnnamed3323(); |
1331 } | 1396 } |
1332 buildCounterGooglePrivacyDlpV2beta1Row--; | 1397 buildCounterGooglePrivacyDlpV2beta1Row--; |
1333 return o; | 1398 return o; |
1334 } | 1399 } |
1335 | 1400 |
1336 checkGooglePrivacyDlpV2beta1Row(api.GooglePrivacyDlpV2beta1Row o) { | 1401 checkGooglePrivacyDlpV2beta1Row(api.GooglePrivacyDlpV2beta1Row o) { |
1337 buildCounterGooglePrivacyDlpV2beta1Row++; | 1402 buildCounterGooglePrivacyDlpV2beta1Row++; |
1338 if (buildCounterGooglePrivacyDlpV2beta1Row < 3) { | 1403 if (buildCounterGooglePrivacyDlpV2beta1Row < 3) { |
1339 checkUnnamed3330(o.values); | 1404 checkUnnamed3323(o.values); |
1340 } | 1405 } |
1341 buildCounterGooglePrivacyDlpV2beta1Row--; | 1406 buildCounterGooglePrivacyDlpV2beta1Row--; |
1342 } | 1407 } |
1343 | 1408 |
1344 core.int buildCounterGooglePrivacyDlpV2beta1StorageConfig = 0; | 1409 core.int buildCounterGooglePrivacyDlpV2beta1StorageConfig = 0; |
1345 buildGooglePrivacyDlpV2beta1StorageConfig() { | 1410 buildGooglePrivacyDlpV2beta1StorageConfig() { |
1346 var o = new api.GooglePrivacyDlpV2beta1StorageConfig(); | 1411 var o = new api.GooglePrivacyDlpV2beta1StorageConfig(); |
1347 buildCounterGooglePrivacyDlpV2beta1StorageConfig++; | 1412 buildCounterGooglePrivacyDlpV2beta1StorageConfig++; |
1348 if (buildCounterGooglePrivacyDlpV2beta1StorageConfig < 3) { | 1413 if (buildCounterGooglePrivacyDlpV2beta1StorageConfig < 3) { |
1349 o.bigQueryOptions = buildGooglePrivacyDlpV2beta1BigQueryOptions(); | 1414 o.bigQueryOptions = buildGooglePrivacyDlpV2beta1BigQueryOptions(); |
1350 o.cloudStorageOptions = buildGooglePrivacyDlpV2beta1CloudStorageOptions(); | 1415 o.cloudStorageOptions = buildGooglePrivacyDlpV2beta1CloudStorageOptions(); |
1351 o.datastoreOptions = buildGooglePrivacyDlpV2beta1DatastoreOptions(); | 1416 o.datastoreOptions = buildGooglePrivacyDlpV2beta1DatastoreOptions(); |
1352 } | 1417 } |
1353 buildCounterGooglePrivacyDlpV2beta1StorageConfig--; | 1418 buildCounterGooglePrivacyDlpV2beta1StorageConfig--; |
1354 return o; | 1419 return o; |
1355 } | 1420 } |
1356 | 1421 |
1357 checkGooglePrivacyDlpV2beta1StorageConfig(api.GooglePrivacyDlpV2beta1StorageConf
ig o) { | 1422 checkGooglePrivacyDlpV2beta1StorageConfig( |
| 1423 api.GooglePrivacyDlpV2beta1StorageConfig o) { |
1358 buildCounterGooglePrivacyDlpV2beta1StorageConfig++; | 1424 buildCounterGooglePrivacyDlpV2beta1StorageConfig++; |
1359 if (buildCounterGooglePrivacyDlpV2beta1StorageConfig < 3) { | 1425 if (buildCounterGooglePrivacyDlpV2beta1StorageConfig < 3) { |
1360 checkGooglePrivacyDlpV2beta1BigQueryOptions(o.bigQueryOptions); | 1426 checkGooglePrivacyDlpV2beta1BigQueryOptions(o.bigQueryOptions); |
1361 checkGooglePrivacyDlpV2beta1CloudStorageOptions(o.cloudStorageOptions); | 1427 checkGooglePrivacyDlpV2beta1CloudStorageOptions(o.cloudStorageOptions); |
1362 checkGooglePrivacyDlpV2beta1DatastoreOptions(o.datastoreOptions); | 1428 checkGooglePrivacyDlpV2beta1DatastoreOptions(o.datastoreOptions); |
1363 } | 1429 } |
1364 buildCounterGooglePrivacyDlpV2beta1StorageConfig--; | 1430 buildCounterGooglePrivacyDlpV2beta1StorageConfig--; |
1365 } | 1431 } |
1366 | 1432 |
1367 buildUnnamed3331() { | 1433 buildUnnamed3324() { |
1368 var o = new core.List<api.GooglePrivacyDlpV2beta1FieldId>(); | 1434 var o = new core.List<api.GooglePrivacyDlpV2beta1FieldId>(); |
1369 o.add(buildGooglePrivacyDlpV2beta1FieldId()); | 1435 o.add(buildGooglePrivacyDlpV2beta1FieldId()); |
1370 o.add(buildGooglePrivacyDlpV2beta1FieldId()); | 1436 o.add(buildGooglePrivacyDlpV2beta1FieldId()); |
1371 return o; | 1437 return o; |
1372 } | 1438 } |
1373 | 1439 |
1374 checkUnnamed3331(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) { | 1440 checkUnnamed3324(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) { |
1375 unittest.expect(o, unittest.hasLength(2)); | 1441 unittest.expect(o, unittest.hasLength(2)); |
1376 checkGooglePrivacyDlpV2beta1FieldId(o[0]); | 1442 checkGooglePrivacyDlpV2beta1FieldId(o[0]); |
1377 checkGooglePrivacyDlpV2beta1FieldId(o[1]); | 1443 checkGooglePrivacyDlpV2beta1FieldId(o[1]); |
1378 } | 1444 } |
1379 | 1445 |
1380 buildUnnamed3332() { | 1446 buildUnnamed3325() { |
1381 var o = new core.List<api.GooglePrivacyDlpV2beta1Row>(); | 1447 var o = new core.List<api.GooglePrivacyDlpV2beta1Row>(); |
1382 o.add(buildGooglePrivacyDlpV2beta1Row()); | 1448 o.add(buildGooglePrivacyDlpV2beta1Row()); |
1383 o.add(buildGooglePrivacyDlpV2beta1Row()); | 1449 o.add(buildGooglePrivacyDlpV2beta1Row()); |
1384 return o; | 1450 return o; |
1385 } | 1451 } |
1386 | 1452 |
1387 checkUnnamed3332(core.List<api.GooglePrivacyDlpV2beta1Row> o) { | 1453 checkUnnamed3325(core.List<api.GooglePrivacyDlpV2beta1Row> o) { |
1388 unittest.expect(o, unittest.hasLength(2)); | 1454 unittest.expect(o, unittest.hasLength(2)); |
1389 checkGooglePrivacyDlpV2beta1Row(o[0]); | 1455 checkGooglePrivacyDlpV2beta1Row(o[0]); |
1390 checkGooglePrivacyDlpV2beta1Row(o[1]); | 1456 checkGooglePrivacyDlpV2beta1Row(o[1]); |
1391 } | 1457 } |
1392 | 1458 |
1393 core.int buildCounterGooglePrivacyDlpV2beta1Table = 0; | 1459 core.int buildCounterGooglePrivacyDlpV2beta1Table = 0; |
1394 buildGooglePrivacyDlpV2beta1Table() { | 1460 buildGooglePrivacyDlpV2beta1Table() { |
1395 var o = new api.GooglePrivacyDlpV2beta1Table(); | 1461 var o = new api.GooglePrivacyDlpV2beta1Table(); |
1396 buildCounterGooglePrivacyDlpV2beta1Table++; | 1462 buildCounterGooglePrivacyDlpV2beta1Table++; |
1397 if (buildCounterGooglePrivacyDlpV2beta1Table < 3) { | 1463 if (buildCounterGooglePrivacyDlpV2beta1Table < 3) { |
1398 o.headers = buildUnnamed3331(); | 1464 o.headers = buildUnnamed3324(); |
1399 o.rows = buildUnnamed3332(); | 1465 o.rows = buildUnnamed3325(); |
1400 } | 1466 } |
1401 buildCounterGooglePrivacyDlpV2beta1Table--; | 1467 buildCounterGooglePrivacyDlpV2beta1Table--; |
1402 return o; | 1468 return o; |
1403 } | 1469 } |
1404 | 1470 |
1405 checkGooglePrivacyDlpV2beta1Table(api.GooglePrivacyDlpV2beta1Table o) { | 1471 checkGooglePrivacyDlpV2beta1Table(api.GooglePrivacyDlpV2beta1Table o) { |
1406 buildCounterGooglePrivacyDlpV2beta1Table++; | 1472 buildCounterGooglePrivacyDlpV2beta1Table++; |
1407 if (buildCounterGooglePrivacyDlpV2beta1Table < 3) { | 1473 if (buildCounterGooglePrivacyDlpV2beta1Table < 3) { |
1408 checkUnnamed3331(o.headers); | 1474 checkUnnamed3324(o.headers); |
1409 checkUnnamed3332(o.rows); | 1475 checkUnnamed3325(o.rows); |
1410 } | 1476 } |
1411 buildCounterGooglePrivacyDlpV2beta1Table--; | 1477 buildCounterGooglePrivacyDlpV2beta1Table--; |
1412 } | 1478 } |
1413 | 1479 |
1414 core.int buildCounterGooglePrivacyDlpV2beta1TableLocation = 0; | 1480 core.int buildCounterGooglePrivacyDlpV2beta1TableLocation = 0; |
1415 buildGooglePrivacyDlpV2beta1TableLocation() { | 1481 buildGooglePrivacyDlpV2beta1TableLocation() { |
1416 var o = new api.GooglePrivacyDlpV2beta1TableLocation(); | 1482 var o = new api.GooglePrivacyDlpV2beta1TableLocation(); |
1417 buildCounterGooglePrivacyDlpV2beta1TableLocation++; | 1483 buildCounterGooglePrivacyDlpV2beta1TableLocation++; |
1418 if (buildCounterGooglePrivacyDlpV2beta1TableLocation < 3) { | 1484 if (buildCounterGooglePrivacyDlpV2beta1TableLocation < 3) { |
1419 o.rowIndex = "foo"; | 1485 o.rowIndex = "foo"; |
1420 } | 1486 } |
1421 buildCounterGooglePrivacyDlpV2beta1TableLocation--; | 1487 buildCounterGooglePrivacyDlpV2beta1TableLocation--; |
1422 return o; | 1488 return o; |
1423 } | 1489 } |
1424 | 1490 |
1425 checkGooglePrivacyDlpV2beta1TableLocation(api.GooglePrivacyDlpV2beta1TableLocati
on o) { | 1491 checkGooglePrivacyDlpV2beta1TableLocation( |
| 1492 api.GooglePrivacyDlpV2beta1TableLocation o) { |
1426 buildCounterGooglePrivacyDlpV2beta1TableLocation++; | 1493 buildCounterGooglePrivacyDlpV2beta1TableLocation++; |
1427 if (buildCounterGooglePrivacyDlpV2beta1TableLocation < 3) { | 1494 if (buildCounterGooglePrivacyDlpV2beta1TableLocation < 3) { |
1428 unittest.expect(o.rowIndex, unittest.equals('foo')); | 1495 unittest.expect(o.rowIndex, unittest.equals('foo')); |
1429 } | 1496 } |
1430 buildCounterGooglePrivacyDlpV2beta1TableLocation--; | 1497 buildCounterGooglePrivacyDlpV2beta1TableLocation--; |
1431 } | 1498 } |
1432 | 1499 |
1433 core.int buildCounterGooglePrivacyDlpV2beta1Value = 0; | 1500 core.int buildCounterGooglePrivacyDlpV2beta1Value = 0; |
1434 buildGooglePrivacyDlpV2beta1Value() { | 1501 buildGooglePrivacyDlpV2beta1Value() { |
1435 var o = new api.GooglePrivacyDlpV2beta1Value(); | 1502 var o = new api.GooglePrivacyDlpV2beta1Value(); |
(...skipping 22 matching lines...) Expand all Loading... |
1458 checkGoogleTypeTimeOfDay(o.timeValue); | 1525 checkGoogleTypeTimeOfDay(o.timeValue); |
1459 unittest.expect(o.timestampValue, unittest.equals('foo')); | 1526 unittest.expect(o.timestampValue, unittest.equals('foo')); |
1460 } | 1527 } |
1461 buildCounterGooglePrivacyDlpV2beta1Value--; | 1528 buildCounterGooglePrivacyDlpV2beta1Value--; |
1462 } | 1529 } |
1463 | 1530 |
1464 core.int buildCounterGoogleProtobufEmpty = 0; | 1531 core.int buildCounterGoogleProtobufEmpty = 0; |
1465 buildGoogleProtobufEmpty() { | 1532 buildGoogleProtobufEmpty() { |
1466 var o = new api.GoogleProtobufEmpty(); | 1533 var o = new api.GoogleProtobufEmpty(); |
1467 buildCounterGoogleProtobufEmpty++; | 1534 buildCounterGoogleProtobufEmpty++; |
1468 if (buildCounterGoogleProtobufEmpty < 3) { | 1535 if (buildCounterGoogleProtobufEmpty < 3) {} |
1469 } | |
1470 buildCounterGoogleProtobufEmpty--; | 1536 buildCounterGoogleProtobufEmpty--; |
1471 return o; | 1537 return o; |
1472 } | 1538 } |
1473 | 1539 |
1474 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { | 1540 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { |
1475 buildCounterGoogleProtobufEmpty++; | 1541 buildCounterGoogleProtobufEmpty++; |
1476 if (buildCounterGoogleProtobufEmpty < 3) { | 1542 if (buildCounterGoogleProtobufEmpty < 3) {} |
1477 } | |
1478 buildCounterGoogleProtobufEmpty--; | 1543 buildCounterGoogleProtobufEmpty--; |
1479 } | 1544 } |
1480 | 1545 |
1481 buildUnnamed3333() { | 1546 buildUnnamed3326() { |
1482 var o = new core.Map<core.String, core.Object>(); | 1547 var o = new core.Map<core.String, core.Object>(); |
1483 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1548 o["x"] = { |
1484 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1549 'list': [1, 2, 3], |
| 1550 'bool': true, |
| 1551 'string': 'foo' |
| 1552 }; |
| 1553 o["y"] = { |
| 1554 'list': [1, 2, 3], |
| 1555 'bool': true, |
| 1556 'string': 'foo' |
| 1557 }; |
1485 return o; | 1558 return o; |
1486 } | 1559 } |
1487 | 1560 |
1488 checkUnnamed3333(core.Map<core.String, core.Object> o) { | 1561 checkUnnamed3326(core.Map<core.String, core.Object> o) { |
1489 unittest.expect(o, unittest.hasLength(2)); | 1562 unittest.expect(o, unittest.hasLength(2)); |
1490 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1563 var casted5 = (o["x"]) as core.Map; |
1491 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1564 unittest.expect(casted5, unittest.hasLength(3)); |
| 1565 unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); |
| 1566 unittest.expect(casted5["bool"], unittest.equals(true)); |
| 1567 unittest.expect(casted5["string"], unittest.equals('foo')); |
| 1568 var casted6 = (o["y"]) as core.Map; |
| 1569 unittest.expect(casted6, unittest.hasLength(3)); |
| 1570 unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); |
| 1571 unittest.expect(casted6["bool"], unittest.equals(true)); |
| 1572 unittest.expect(casted6["string"], unittest.equals('foo')); |
1492 } | 1573 } |
1493 | 1574 |
1494 buildUnnamed3334() { | 1575 buildUnnamed3327() { |
1495 var o = new core.List<core.Map<core.String, core.Object>>(); | 1576 var o = new core.List<core.Map<core.String, core.Object>>(); |
1496 o.add(buildUnnamed3333()); | 1577 o.add(buildUnnamed3326()); |
1497 o.add(buildUnnamed3333()); | 1578 o.add(buildUnnamed3326()); |
1498 return o; | 1579 return o; |
1499 } | 1580 } |
1500 | 1581 |
1501 checkUnnamed3334(core.List<core.Map<core.String, core.Object>> o) { | 1582 checkUnnamed3327(core.List<core.Map<core.String, core.Object>> o) { |
1502 unittest.expect(o, unittest.hasLength(2)); | 1583 unittest.expect(o, unittest.hasLength(2)); |
1503 checkUnnamed3333(o[0]); | 1584 checkUnnamed3326(o[0]); |
1504 checkUnnamed3333(o[1]); | 1585 checkUnnamed3326(o[1]); |
1505 } | 1586 } |
1506 | 1587 |
1507 core.int buildCounterGoogleRpcStatus = 0; | 1588 core.int buildCounterGoogleRpcStatus = 0; |
1508 buildGoogleRpcStatus() { | 1589 buildGoogleRpcStatus() { |
1509 var o = new api.GoogleRpcStatus(); | 1590 var o = new api.GoogleRpcStatus(); |
1510 buildCounterGoogleRpcStatus++; | 1591 buildCounterGoogleRpcStatus++; |
1511 if (buildCounterGoogleRpcStatus < 3) { | 1592 if (buildCounterGoogleRpcStatus < 3) { |
1512 o.code = 42; | 1593 o.code = 42; |
1513 o.details = buildUnnamed3334(); | 1594 o.details = buildUnnamed3327(); |
1514 o.message = "foo"; | 1595 o.message = "foo"; |
1515 } | 1596 } |
1516 buildCounterGoogleRpcStatus--; | 1597 buildCounterGoogleRpcStatus--; |
1517 return o; | 1598 return o; |
1518 } | 1599 } |
1519 | 1600 |
1520 checkGoogleRpcStatus(api.GoogleRpcStatus o) { | 1601 checkGoogleRpcStatus(api.GoogleRpcStatus o) { |
1521 buildCounterGoogleRpcStatus++; | 1602 buildCounterGoogleRpcStatus++; |
1522 if (buildCounterGoogleRpcStatus < 3) { | 1603 if (buildCounterGoogleRpcStatus < 3) { |
1523 unittest.expect(o.code, unittest.equals(42)); | 1604 unittest.expect(o.code, unittest.equals(42)); |
1524 checkUnnamed3334(o.details); | 1605 checkUnnamed3327(o.details); |
1525 unittest.expect(o.message, unittest.equals('foo')); | 1606 unittest.expect(o.message, unittest.equals('foo')); |
1526 } | 1607 } |
1527 buildCounterGoogleRpcStatus--; | 1608 buildCounterGoogleRpcStatus--; |
1528 } | 1609 } |
1529 | 1610 |
1530 core.int buildCounterGoogleTypeDate = 0; | 1611 core.int buildCounterGoogleTypeDate = 0; |
1531 buildGoogleTypeDate() { | 1612 buildGoogleTypeDate() { |
1532 var o = new api.GoogleTypeDate(); | 1613 var o = new api.GoogleTypeDate(); |
1533 buildCounterGoogleTypeDate++; | 1614 buildCounterGoogleTypeDate++; |
1534 if (buildCounterGoogleTypeDate < 3) { | 1615 if (buildCounterGoogleTypeDate < 3) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 buildCounterGoogleTypeTimeOfDay++; | 1649 buildCounterGoogleTypeTimeOfDay++; |
1569 if (buildCounterGoogleTypeTimeOfDay < 3) { | 1650 if (buildCounterGoogleTypeTimeOfDay < 3) { |
1570 unittest.expect(o.hours, unittest.equals(42)); | 1651 unittest.expect(o.hours, unittest.equals(42)); |
1571 unittest.expect(o.minutes, unittest.equals(42)); | 1652 unittest.expect(o.minutes, unittest.equals(42)); |
1572 unittest.expect(o.nanos, unittest.equals(42)); | 1653 unittest.expect(o.nanos, unittest.equals(42)); |
1573 unittest.expect(o.seconds, unittest.equals(42)); | 1654 unittest.expect(o.seconds, unittest.equals(42)); |
1574 } | 1655 } |
1575 buildCounterGoogleTypeTimeOfDay--; | 1656 buildCounterGoogleTypeTimeOfDay--; |
1576 } | 1657 } |
1577 | 1658 |
1578 | |
1579 main() { | 1659 main() { |
1580 unittest.group("obj-schema-GoogleLongrunningCancelOperationRequest", () { | 1660 unittest.group("obj-schema-GoogleLongrunningCancelOperationRequest", () { |
1581 unittest.test("to-json--from-json", () { | 1661 unittest.test("to-json--from-json", () { |
1582 var o = buildGoogleLongrunningCancelOperationRequest(); | 1662 var o = buildGoogleLongrunningCancelOperationRequest(); |
1583 var od = new api.GoogleLongrunningCancelOperationRequest.fromJson(o.toJson
()); | 1663 var od = |
| 1664 new api.GoogleLongrunningCancelOperationRequest.fromJson(o.toJson()); |
1584 checkGoogleLongrunningCancelOperationRequest(od); | 1665 checkGoogleLongrunningCancelOperationRequest(od); |
1585 }); | 1666 }); |
1586 }); | 1667 }); |
1587 | 1668 |
1588 | |
1589 unittest.group("obj-schema-GoogleLongrunningListOperationsResponse", () { | 1669 unittest.group("obj-schema-GoogleLongrunningListOperationsResponse", () { |
1590 unittest.test("to-json--from-json", () { | 1670 unittest.test("to-json--from-json", () { |
1591 var o = buildGoogleLongrunningListOperationsResponse(); | 1671 var o = buildGoogleLongrunningListOperationsResponse(); |
1592 var od = new api.GoogleLongrunningListOperationsResponse.fromJson(o.toJson
()); | 1672 var od = |
| 1673 new api.GoogleLongrunningListOperationsResponse.fromJson(o.toJson()); |
1593 checkGoogleLongrunningListOperationsResponse(od); | 1674 checkGoogleLongrunningListOperationsResponse(od); |
1594 }); | 1675 }); |
1595 }); | 1676 }); |
1596 | 1677 |
1597 | |
1598 unittest.group("obj-schema-GoogleLongrunningOperation", () { | 1678 unittest.group("obj-schema-GoogleLongrunningOperation", () { |
1599 unittest.test("to-json--from-json", () { | 1679 unittest.test("to-json--from-json", () { |
1600 var o = buildGoogleLongrunningOperation(); | 1680 var o = buildGoogleLongrunningOperation(); |
1601 var od = new api.GoogleLongrunningOperation.fromJson(o.toJson()); | 1681 var od = new api.GoogleLongrunningOperation.fromJson(o.toJson()); |
1602 checkGoogleLongrunningOperation(od); | 1682 checkGoogleLongrunningOperation(od); |
1603 }); | 1683 }); |
1604 }); | 1684 }); |
1605 | 1685 |
1606 | |
1607 unittest.group("obj-schema-GooglePrivacyDlpV2beta1BigQueryOptions", () { | 1686 unittest.group("obj-schema-GooglePrivacyDlpV2beta1BigQueryOptions", () { |
1608 unittest.test("to-json--from-json", () { | 1687 unittest.test("to-json--from-json", () { |
1609 var o = buildGooglePrivacyDlpV2beta1BigQueryOptions(); | 1688 var o = buildGooglePrivacyDlpV2beta1BigQueryOptions(); |
1610 var od = new api.GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(o.toJson(
)); | 1689 var od = |
| 1690 new api.GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(o.toJson()); |
1611 checkGooglePrivacyDlpV2beta1BigQueryOptions(od); | 1691 checkGooglePrivacyDlpV2beta1BigQueryOptions(od); |
1612 }); | 1692 }); |
1613 }); | 1693 }); |
1614 | 1694 |
1615 | |
1616 unittest.group("obj-schema-GooglePrivacyDlpV2beta1BigQueryTable", () { | 1695 unittest.group("obj-schema-GooglePrivacyDlpV2beta1BigQueryTable", () { |
1617 unittest.test("to-json--from-json", () { | 1696 unittest.test("to-json--from-json", () { |
1618 var o = buildGooglePrivacyDlpV2beta1BigQueryTable(); | 1697 var o = buildGooglePrivacyDlpV2beta1BigQueryTable(); |
1619 var od = new api.GooglePrivacyDlpV2beta1BigQueryTable.fromJson(o.toJson())
; | 1698 var od = |
| 1699 new api.GooglePrivacyDlpV2beta1BigQueryTable.fromJson(o.toJson()); |
1620 checkGooglePrivacyDlpV2beta1BigQueryTable(od); | 1700 checkGooglePrivacyDlpV2beta1BigQueryTable(od); |
1621 }); | 1701 }); |
1622 }); | 1702 }); |
1623 | 1703 |
1624 | |
1625 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CategoryDescription", () { | 1704 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CategoryDescription", () { |
1626 unittest.test("to-json--from-json", () { | 1705 unittest.test("to-json--from-json", () { |
1627 var o = buildGooglePrivacyDlpV2beta1CategoryDescription(); | 1706 var o = buildGooglePrivacyDlpV2beta1CategoryDescription(); |
1628 var od = new api.GooglePrivacyDlpV2beta1CategoryDescription.fromJson(o.toJ
son()); | 1707 var od = new api.GooglePrivacyDlpV2beta1CategoryDescription.fromJson( |
| 1708 o.toJson()); |
1629 checkGooglePrivacyDlpV2beta1CategoryDescription(od); | 1709 checkGooglePrivacyDlpV2beta1CategoryDescription(od); |
1630 }); | 1710 }); |
1631 }); | 1711 }); |
1632 | 1712 |
1633 | |
1634 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageKey", () { | 1713 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageKey", () { |
1635 unittest.test("to-json--from-json", () { | 1714 unittest.test("to-json--from-json", () { |
1636 var o = buildGooglePrivacyDlpV2beta1CloudStorageKey(); | 1715 var o = buildGooglePrivacyDlpV2beta1CloudStorageKey(); |
1637 var od = new api.GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(o.toJson(
)); | 1716 var od = |
| 1717 new api.GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(o.toJson()); |
1638 checkGooglePrivacyDlpV2beta1CloudStorageKey(od); | 1718 checkGooglePrivacyDlpV2beta1CloudStorageKey(od); |
1639 }); | 1719 }); |
1640 }); | 1720 }); |
1641 | 1721 |
1642 | |
1643 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageOptions", () { | 1722 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageOptions", () { |
1644 unittest.test("to-json--from-json", () { | 1723 unittest.test("to-json--from-json", () { |
1645 var o = buildGooglePrivacyDlpV2beta1CloudStorageOptions(); | 1724 var o = buildGooglePrivacyDlpV2beta1CloudStorageOptions(); |
1646 var od = new api.GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson(o.toJ
son()); | 1725 var od = new api.GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson( |
| 1726 o.toJson()); |
1647 checkGooglePrivacyDlpV2beta1CloudStorageOptions(od); | 1727 checkGooglePrivacyDlpV2beta1CloudStorageOptions(od); |
1648 }); | 1728 }); |
1649 }); | 1729 }); |
1650 | 1730 |
1651 | |
1652 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStoragePath", () { | 1731 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStoragePath", () { |
1653 unittest.test("to-json--from-json", () { | 1732 unittest.test("to-json--from-json", () { |
1654 var o = buildGooglePrivacyDlpV2beta1CloudStoragePath(); | 1733 var o = buildGooglePrivacyDlpV2beta1CloudStoragePath(); |
1655 var od = new api.GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(o.toJson
()); | 1734 var od = |
| 1735 new api.GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(o.toJson()); |
1656 checkGooglePrivacyDlpV2beta1CloudStoragePath(od); | 1736 checkGooglePrivacyDlpV2beta1CloudStoragePath(od); |
1657 }); | 1737 }); |
1658 }); | 1738 }); |
1659 | 1739 |
1660 | |
1661 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Color", () { | 1740 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Color", () { |
1662 unittest.test("to-json--from-json", () { | 1741 unittest.test("to-json--from-json", () { |
1663 var o = buildGooglePrivacyDlpV2beta1Color(); | 1742 var o = buildGooglePrivacyDlpV2beta1Color(); |
1664 var od = new api.GooglePrivacyDlpV2beta1Color.fromJson(o.toJson()); | 1743 var od = new api.GooglePrivacyDlpV2beta1Color.fromJson(o.toJson()); |
1665 checkGooglePrivacyDlpV2beta1Color(od); | 1744 checkGooglePrivacyDlpV2beta1Color(od); |
1666 }); | 1745 }); |
1667 }); | 1746 }); |
1668 | 1747 |
1669 | |
1670 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ContentItem", () { | 1748 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ContentItem", () { |
1671 unittest.test("to-json--from-json", () { | 1749 unittest.test("to-json--from-json", () { |
1672 var o = buildGooglePrivacyDlpV2beta1ContentItem(); | 1750 var o = buildGooglePrivacyDlpV2beta1ContentItem(); |
1673 var od = new api.GooglePrivacyDlpV2beta1ContentItem.fromJson(o.toJson()); | 1751 var od = new api.GooglePrivacyDlpV2beta1ContentItem.fromJson(o.toJson()); |
1674 checkGooglePrivacyDlpV2beta1ContentItem(od); | 1752 checkGooglePrivacyDlpV2beta1ContentItem(od); |
1675 }); | 1753 }); |
1676 }); | 1754 }); |
1677 | 1755 |
1678 | 1756 unittest.group( |
1679 unittest.group("obj-schema-GooglePrivacyDlpV2beta1CreateInspectOperationReques
t", () { | 1757 "obj-schema-GooglePrivacyDlpV2beta1CreateInspectOperationRequest", () { |
1680 unittest.test("to-json--from-json", () { | 1758 unittest.test("to-json--from-json", () { |
1681 var o = buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest(); | 1759 var o = buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest(); |
1682 var od = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.from
Json(o.toJson()); | 1760 var od = |
| 1761 new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson( |
| 1762 o.toJson()); |
1683 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(od); | 1763 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(od); |
1684 }); | 1764 }); |
1685 }); | 1765 }); |
1686 | 1766 |
1687 | |
1688 unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreKey", () { | 1767 unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreKey", () { |
1689 unittest.test("to-json--from-json", () { | 1768 unittest.test("to-json--from-json", () { |
1690 var o = buildGooglePrivacyDlpV2beta1DatastoreKey(); | 1769 var o = buildGooglePrivacyDlpV2beta1DatastoreKey(); |
1691 var od = new api.GooglePrivacyDlpV2beta1DatastoreKey.fromJson(o.toJson()); | 1770 var od = new api.GooglePrivacyDlpV2beta1DatastoreKey.fromJson(o.toJson()); |
1692 checkGooglePrivacyDlpV2beta1DatastoreKey(od); | 1771 checkGooglePrivacyDlpV2beta1DatastoreKey(od); |
1693 }); | 1772 }); |
1694 }); | 1773 }); |
1695 | 1774 |
1696 | |
1697 unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreOptions", () { | 1775 unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreOptions", () { |
1698 unittest.test("to-json--from-json", () { | 1776 unittest.test("to-json--from-json", () { |
1699 var o = buildGooglePrivacyDlpV2beta1DatastoreOptions(); | 1777 var o = buildGooglePrivacyDlpV2beta1DatastoreOptions(); |
1700 var od = new api.GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(o.toJson
()); | 1778 var od = |
| 1779 new api.GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(o.toJson()); |
1701 checkGooglePrivacyDlpV2beta1DatastoreOptions(od); | 1780 checkGooglePrivacyDlpV2beta1DatastoreOptions(od); |
1702 }); | 1781 }); |
1703 }); | 1782 }); |
1704 | 1783 |
1705 | |
1706 unittest.group("obj-schema-GooglePrivacyDlpV2beta1FieldId", () { | 1784 unittest.group("obj-schema-GooglePrivacyDlpV2beta1FieldId", () { |
1707 unittest.test("to-json--from-json", () { | 1785 unittest.test("to-json--from-json", () { |
1708 var o = buildGooglePrivacyDlpV2beta1FieldId(); | 1786 var o = buildGooglePrivacyDlpV2beta1FieldId(); |
1709 var od = new api.GooglePrivacyDlpV2beta1FieldId.fromJson(o.toJson()); | 1787 var od = new api.GooglePrivacyDlpV2beta1FieldId.fromJson(o.toJson()); |
1710 checkGooglePrivacyDlpV2beta1FieldId(od); | 1788 checkGooglePrivacyDlpV2beta1FieldId(od); |
1711 }); | 1789 }); |
1712 }); | 1790 }); |
1713 | 1791 |
1714 | |
1715 unittest.group("obj-schema-GooglePrivacyDlpV2beta1FileSet", () { | 1792 unittest.group("obj-schema-GooglePrivacyDlpV2beta1FileSet", () { |
1716 unittest.test("to-json--from-json", () { | 1793 unittest.test("to-json--from-json", () { |
1717 var o = buildGooglePrivacyDlpV2beta1FileSet(); | 1794 var o = buildGooglePrivacyDlpV2beta1FileSet(); |
1718 var od = new api.GooglePrivacyDlpV2beta1FileSet.fromJson(o.toJson()); | 1795 var od = new api.GooglePrivacyDlpV2beta1FileSet.fromJson(o.toJson()); |
1719 checkGooglePrivacyDlpV2beta1FileSet(od); | 1796 checkGooglePrivacyDlpV2beta1FileSet(od); |
1720 }); | 1797 }); |
1721 }); | 1798 }); |
1722 | 1799 |
1723 | |
1724 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Finding", () { | 1800 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Finding", () { |
1725 unittest.test("to-json--from-json", () { | 1801 unittest.test("to-json--from-json", () { |
1726 var o = buildGooglePrivacyDlpV2beta1Finding(); | 1802 var o = buildGooglePrivacyDlpV2beta1Finding(); |
1727 var od = new api.GooglePrivacyDlpV2beta1Finding.fromJson(o.toJson()); | 1803 var od = new api.GooglePrivacyDlpV2beta1Finding.fromJson(o.toJson()); |
1728 checkGooglePrivacyDlpV2beta1Finding(od); | 1804 checkGooglePrivacyDlpV2beta1Finding(od); |
1729 }); | 1805 }); |
1730 }); | 1806 }); |
1731 | 1807 |
1732 | |
1733 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageLocation", () { | 1808 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageLocation", () { |
1734 unittest.test("to-json--from-json", () { | 1809 unittest.test("to-json--from-json", () { |
1735 var o = buildGooglePrivacyDlpV2beta1ImageLocation(); | 1810 var o = buildGooglePrivacyDlpV2beta1ImageLocation(); |
1736 var od = new api.GooglePrivacyDlpV2beta1ImageLocation.fromJson(o.toJson())
; | 1811 var od = |
| 1812 new api.GooglePrivacyDlpV2beta1ImageLocation.fromJson(o.toJson()); |
1737 checkGooglePrivacyDlpV2beta1ImageLocation(od); | 1813 checkGooglePrivacyDlpV2beta1ImageLocation(od); |
1738 }); | 1814 }); |
1739 }); | 1815 }); |
1740 | 1816 |
1741 | |
1742 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageRedactionConfig", () { | 1817 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageRedactionConfig", () { |
1743 unittest.test("to-json--from-json", () { | 1818 unittest.test("to-json--from-json", () { |
1744 var o = buildGooglePrivacyDlpV2beta1ImageRedactionConfig(); | 1819 var o = buildGooglePrivacyDlpV2beta1ImageRedactionConfig(); |
1745 var od = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(o.to
Json()); | 1820 var od = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson( |
| 1821 o.toJson()); |
1746 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(od); | 1822 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(od); |
1747 }); | 1823 }); |
1748 }); | 1824 }); |
1749 | 1825 |
1750 | |
1751 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoType", () { | 1826 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoType", () { |
1752 unittest.test("to-json--from-json", () { | 1827 unittest.test("to-json--from-json", () { |
1753 var o = buildGooglePrivacyDlpV2beta1InfoType(); | 1828 var o = buildGooglePrivacyDlpV2beta1InfoType(); |
1754 var od = new api.GooglePrivacyDlpV2beta1InfoType.fromJson(o.toJson()); | 1829 var od = new api.GooglePrivacyDlpV2beta1InfoType.fromJson(o.toJson()); |
1755 checkGooglePrivacyDlpV2beta1InfoType(od); | 1830 checkGooglePrivacyDlpV2beta1InfoType(od); |
1756 }); | 1831 }); |
1757 }); | 1832 }); |
1758 | 1833 |
1759 | |
1760 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeDescription", () { | 1834 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeDescription", () { |
1761 unittest.test("to-json--from-json", () { | 1835 unittest.test("to-json--from-json", () { |
1762 var o = buildGooglePrivacyDlpV2beta1InfoTypeDescription(); | 1836 var o = buildGooglePrivacyDlpV2beta1InfoTypeDescription(); |
1763 var od = new api.GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(o.toJ
son()); | 1837 var od = new api.GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson( |
| 1838 o.toJson()); |
1764 checkGooglePrivacyDlpV2beta1InfoTypeDescription(od); | 1839 checkGooglePrivacyDlpV2beta1InfoTypeDescription(od); |
1765 }); | 1840 }); |
1766 }); | 1841 }); |
1767 | 1842 |
1768 | |
1769 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeLimit", () { | 1843 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeLimit", () { |
1770 unittest.test("to-json--from-json", () { | 1844 unittest.test("to-json--from-json", () { |
1771 var o = buildGooglePrivacyDlpV2beta1InfoTypeLimit(); | 1845 var o = buildGooglePrivacyDlpV2beta1InfoTypeLimit(); |
1772 var od = new api.GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(o.toJson())
; | 1846 var od = |
| 1847 new api.GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(o.toJson()); |
1773 checkGooglePrivacyDlpV2beta1InfoTypeLimit(od); | 1848 checkGooglePrivacyDlpV2beta1InfoTypeLimit(od); |
1774 }); | 1849 }); |
1775 }); | 1850 }); |
1776 | 1851 |
1777 | |
1778 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeStatistics", () { | 1852 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeStatistics", () { |
1779 unittest.test("to-json--from-json", () { | 1853 unittest.test("to-json--from-json", () { |
1780 var o = buildGooglePrivacyDlpV2beta1InfoTypeStatistics(); | 1854 var o = buildGooglePrivacyDlpV2beta1InfoTypeStatistics(); |
1781 var od = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(o.toJs
on()); | 1855 var od = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson( |
| 1856 o.toJson()); |
1782 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(od); | 1857 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(od); |
1783 }); | 1858 }); |
1784 }); | 1859 }); |
1785 | 1860 |
1786 | |
1787 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectConfig", () { | 1861 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectConfig", () { |
1788 unittest.test("to-json--from-json", () { | 1862 unittest.test("to-json--from-json", () { |
1789 var o = buildGooglePrivacyDlpV2beta1InspectConfig(); | 1863 var o = buildGooglePrivacyDlpV2beta1InspectConfig(); |
1790 var od = new api.GooglePrivacyDlpV2beta1InspectConfig.fromJson(o.toJson())
; | 1864 var od = |
| 1865 new api.GooglePrivacyDlpV2beta1InspectConfig.fromJson(o.toJson()); |
1791 checkGooglePrivacyDlpV2beta1InspectConfig(od); | 1866 checkGooglePrivacyDlpV2beta1InspectConfig(od); |
1792 }); | 1867 }); |
1793 }); | 1868 }); |
1794 | 1869 |
1795 | |
1796 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentRequest", () { | 1870 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentRequest", () { |
1797 unittest.test("to-json--from-json", () { | 1871 unittest.test("to-json--from-json", () { |
1798 var o = buildGooglePrivacyDlpV2beta1InspectContentRequest(); | 1872 var o = buildGooglePrivacyDlpV2beta1InspectContentRequest(); |
1799 var od = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(o.t
oJson()); | 1873 var od = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson( |
| 1874 o.toJson()); |
1800 checkGooglePrivacyDlpV2beta1InspectContentRequest(od); | 1875 checkGooglePrivacyDlpV2beta1InspectContentRequest(od); |
1801 }); | 1876 }); |
1802 }); | 1877 }); |
1803 | 1878 |
1804 | 1879 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentResponse", |
1805 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentResponse", ()
{ | 1880 () { |
1806 unittest.test("to-json--from-json", () { | 1881 unittest.test("to-json--from-json", () { |
1807 var o = buildGooglePrivacyDlpV2beta1InspectContentResponse(); | 1882 var o = buildGooglePrivacyDlpV2beta1InspectContentResponse(); |
1808 var od = new api.GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(o.
toJson()); | 1883 var od = new api.GooglePrivacyDlpV2beta1InspectContentResponse.fromJson( |
| 1884 o.toJson()); |
1809 checkGooglePrivacyDlpV2beta1InspectContentResponse(od); | 1885 checkGooglePrivacyDlpV2beta1InspectContentResponse(od); |
1810 }); | 1886 }); |
1811 }); | 1887 }); |
1812 | 1888 |
1813 | 1889 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationMetadata", |
1814 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationMetadata", (
) { | 1890 () { |
1815 unittest.test("to-json--from-json", () { | 1891 unittest.test("to-json--from-json", () { |
1816 var o = buildGooglePrivacyDlpV2beta1InspectOperationMetadata(); | 1892 var o = buildGooglePrivacyDlpV2beta1InspectOperationMetadata(); |
1817 var od = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson(
o.toJson()); | 1893 var od = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson( |
| 1894 o.toJson()); |
1818 checkGooglePrivacyDlpV2beta1InspectOperationMetadata(od); | 1895 checkGooglePrivacyDlpV2beta1InspectOperationMetadata(od); |
1819 }); | 1896 }); |
1820 }); | 1897 }); |
1821 | 1898 |
1822 | 1899 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationResult", |
1823 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationResult", ()
{ | 1900 () { |
1824 unittest.test("to-json--from-json", () { | 1901 unittest.test("to-json--from-json", () { |
1825 var o = buildGooglePrivacyDlpV2beta1InspectOperationResult(); | 1902 var o = buildGooglePrivacyDlpV2beta1InspectOperationResult(); |
1826 var od = new api.GooglePrivacyDlpV2beta1InspectOperationResult.fromJson(o.
toJson()); | 1903 var od = new api.GooglePrivacyDlpV2beta1InspectOperationResult.fromJson( |
| 1904 o.toJson()); |
1827 checkGooglePrivacyDlpV2beta1InspectOperationResult(od); | 1905 checkGooglePrivacyDlpV2beta1InspectOperationResult(od); |
1828 }); | 1906 }); |
1829 }); | 1907 }); |
1830 | 1908 |
1831 | |
1832 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectResult", () { | 1909 unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectResult", () { |
1833 unittest.test("to-json--from-json", () { | 1910 unittest.test("to-json--from-json", () { |
1834 var o = buildGooglePrivacyDlpV2beta1InspectResult(); | 1911 var o = buildGooglePrivacyDlpV2beta1InspectResult(); |
1835 var od = new api.GooglePrivacyDlpV2beta1InspectResult.fromJson(o.toJson())
; | 1912 var od = |
| 1913 new api.GooglePrivacyDlpV2beta1InspectResult.fromJson(o.toJson()); |
1836 checkGooglePrivacyDlpV2beta1InspectResult(od); | 1914 checkGooglePrivacyDlpV2beta1InspectResult(od); |
1837 }); | 1915 }); |
1838 }); | 1916 }); |
1839 | 1917 |
1840 | |
1841 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Key", () { | 1918 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Key", () { |
1842 unittest.test("to-json--from-json", () { | 1919 unittest.test("to-json--from-json", () { |
1843 var o = buildGooglePrivacyDlpV2beta1Key(); | 1920 var o = buildGooglePrivacyDlpV2beta1Key(); |
1844 var od = new api.GooglePrivacyDlpV2beta1Key.fromJson(o.toJson()); | 1921 var od = new api.GooglePrivacyDlpV2beta1Key.fromJson(o.toJson()); |
1845 checkGooglePrivacyDlpV2beta1Key(od); | 1922 checkGooglePrivacyDlpV2beta1Key(od); |
1846 }); | 1923 }); |
1847 }); | 1924 }); |
1848 | 1925 |
1849 | |
1850 unittest.group("obj-schema-GooglePrivacyDlpV2beta1KindExpression", () { | 1926 unittest.group("obj-schema-GooglePrivacyDlpV2beta1KindExpression", () { |
1851 unittest.test("to-json--from-json", () { | 1927 unittest.test("to-json--from-json", () { |
1852 var o = buildGooglePrivacyDlpV2beta1KindExpression(); | 1928 var o = buildGooglePrivacyDlpV2beta1KindExpression(); |
1853 var od = new api.GooglePrivacyDlpV2beta1KindExpression.fromJson(o.toJson()
); | 1929 var od = |
| 1930 new api.GooglePrivacyDlpV2beta1KindExpression.fromJson(o.toJson()); |
1854 checkGooglePrivacyDlpV2beta1KindExpression(od); | 1931 checkGooglePrivacyDlpV2beta1KindExpression(od); |
1855 }); | 1932 }); |
1856 }); | 1933 }); |
1857 | 1934 |
1858 | |
1859 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListInfoTypesResponse", () { | 1935 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListInfoTypesResponse", () { |
1860 unittest.test("to-json--from-json", () { | 1936 unittest.test("to-json--from-json", () { |
1861 var o = buildGooglePrivacyDlpV2beta1ListInfoTypesResponse(); | 1937 var o = buildGooglePrivacyDlpV2beta1ListInfoTypesResponse(); |
1862 var od = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(o.t
oJson()); | 1938 var od = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson( |
| 1939 o.toJson()); |
1863 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(od); | 1940 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(od); |
1864 }); | 1941 }); |
1865 }); | 1942 }); |
1866 | 1943 |
1867 | 1944 unittest.group( |
1868 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListInspectFindingsResponse"
, () { | 1945 "obj-schema-GooglePrivacyDlpV2beta1ListInspectFindingsResponse", () { |
1869 unittest.test("to-json--from-json", () { | 1946 unittest.test("to-json--from-json", () { |
1870 var o = buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse(); | 1947 var o = buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse(); |
1871 var od = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJs
on(o.toJson()); | 1948 var od = |
| 1949 new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJson( |
| 1950 o.toJson()); |
1872 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(od); | 1951 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(od); |
1873 }); | 1952 }); |
1874 }); | 1953 }); |
1875 | 1954 |
1876 | 1955 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListRootCategoriesResponse", |
1877 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListRootCategoriesResponse",
() { | 1956 () { |
1878 unittest.test("to-json--from-json", () { | 1957 unittest.test("to-json--from-json", () { |
1879 var o = buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse(); | 1958 var o = buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse(); |
1880 var od = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJso
n(o.toJson()); | 1959 var od = |
| 1960 new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJson( |
| 1961 o.toJson()); |
1881 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(od); | 1962 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(od); |
1882 }); | 1963 }); |
1883 }); | 1964 }); |
1884 | 1965 |
1885 | |
1886 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Location", () { | 1966 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Location", () { |
1887 unittest.test("to-json--from-json", () { | 1967 unittest.test("to-json--from-json", () { |
1888 var o = buildGooglePrivacyDlpV2beta1Location(); | 1968 var o = buildGooglePrivacyDlpV2beta1Location(); |
1889 var od = new api.GooglePrivacyDlpV2beta1Location.fromJson(o.toJson()); | 1969 var od = new api.GooglePrivacyDlpV2beta1Location.fromJson(o.toJson()); |
1890 checkGooglePrivacyDlpV2beta1Location(od); | 1970 checkGooglePrivacyDlpV2beta1Location(od); |
1891 }); | 1971 }); |
1892 }); | 1972 }); |
1893 | 1973 |
1894 | |
1895 unittest.group("obj-schema-GooglePrivacyDlpV2beta1OperationConfig", () { | 1974 unittest.group("obj-schema-GooglePrivacyDlpV2beta1OperationConfig", () { |
1896 unittest.test("to-json--from-json", () { | 1975 unittest.test("to-json--from-json", () { |
1897 var o = buildGooglePrivacyDlpV2beta1OperationConfig(); | 1976 var o = buildGooglePrivacyDlpV2beta1OperationConfig(); |
1898 var od = new api.GooglePrivacyDlpV2beta1OperationConfig.fromJson(o.toJson(
)); | 1977 var od = |
| 1978 new api.GooglePrivacyDlpV2beta1OperationConfig.fromJson(o.toJson()); |
1899 checkGooglePrivacyDlpV2beta1OperationConfig(od); | 1979 checkGooglePrivacyDlpV2beta1OperationConfig(od); |
1900 }); | 1980 }); |
1901 }); | 1981 }); |
1902 | 1982 |
1903 | |
1904 unittest.group("obj-schema-GooglePrivacyDlpV2beta1OutputStorageConfig", () { | 1983 unittest.group("obj-schema-GooglePrivacyDlpV2beta1OutputStorageConfig", () { |
1905 unittest.test("to-json--from-json", () { | 1984 unittest.test("to-json--from-json", () { |
1906 var o = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); | 1985 var o = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); |
1907 var od = new api.GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(o.toJ
son()); | 1986 var od = new api.GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson( |
| 1987 o.toJson()); |
1908 checkGooglePrivacyDlpV2beta1OutputStorageConfig(od); | 1988 checkGooglePrivacyDlpV2beta1OutputStorageConfig(od); |
1909 }); | 1989 }); |
1910 }); | 1990 }); |
1911 | 1991 |
1912 | |
1913 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PartitionId", () { | 1992 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PartitionId", () { |
1914 unittest.test("to-json--from-json", () { | 1993 unittest.test("to-json--from-json", () { |
1915 var o = buildGooglePrivacyDlpV2beta1PartitionId(); | 1994 var o = buildGooglePrivacyDlpV2beta1PartitionId(); |
1916 var od = new api.GooglePrivacyDlpV2beta1PartitionId.fromJson(o.toJson()); | 1995 var od = new api.GooglePrivacyDlpV2beta1PartitionId.fromJson(o.toJson()); |
1917 checkGooglePrivacyDlpV2beta1PartitionId(od); | 1996 checkGooglePrivacyDlpV2beta1PartitionId(od); |
1918 }); | 1997 }); |
1919 }); | 1998 }); |
1920 | 1999 |
1921 | |
1922 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PathElement", () { | 2000 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PathElement", () { |
1923 unittest.test("to-json--from-json", () { | 2001 unittest.test("to-json--from-json", () { |
1924 var o = buildGooglePrivacyDlpV2beta1PathElement(); | 2002 var o = buildGooglePrivacyDlpV2beta1PathElement(); |
1925 var od = new api.GooglePrivacyDlpV2beta1PathElement.fromJson(o.toJson()); | 2003 var od = new api.GooglePrivacyDlpV2beta1PathElement.fromJson(o.toJson()); |
1926 checkGooglePrivacyDlpV2beta1PathElement(od); | 2004 checkGooglePrivacyDlpV2beta1PathElement(od); |
1927 }); | 2005 }); |
1928 }); | 2006 }); |
1929 | 2007 |
1930 | |
1931 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Projection", () { | 2008 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Projection", () { |
1932 unittest.test("to-json--from-json", () { | 2009 unittest.test("to-json--from-json", () { |
1933 var o = buildGooglePrivacyDlpV2beta1Projection(); | 2010 var o = buildGooglePrivacyDlpV2beta1Projection(); |
1934 var od = new api.GooglePrivacyDlpV2beta1Projection.fromJson(o.toJson()); | 2011 var od = new api.GooglePrivacyDlpV2beta1Projection.fromJson(o.toJson()); |
1935 checkGooglePrivacyDlpV2beta1Projection(od); | 2012 checkGooglePrivacyDlpV2beta1Projection(od); |
1936 }); | 2013 }); |
1937 }); | 2014 }); |
1938 | 2015 |
1939 | |
1940 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PropertyReference", () { | 2016 unittest.group("obj-schema-GooglePrivacyDlpV2beta1PropertyReference", () { |
1941 unittest.test("to-json--from-json", () { | 2017 unittest.test("to-json--from-json", () { |
1942 var o = buildGooglePrivacyDlpV2beta1PropertyReference(); | 2018 var o = buildGooglePrivacyDlpV2beta1PropertyReference(); |
1943 var od = new api.GooglePrivacyDlpV2beta1PropertyReference.fromJson(o.toJso
n()); | 2019 var od = |
| 2020 new api.GooglePrivacyDlpV2beta1PropertyReference.fromJson(o.toJson()); |
1944 checkGooglePrivacyDlpV2beta1PropertyReference(od); | 2021 checkGooglePrivacyDlpV2beta1PropertyReference(od); |
1945 }); | 2022 }); |
1946 }); | 2023 }); |
1947 | 2024 |
1948 | |
1949 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Range", () { | 2025 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Range", () { |
1950 unittest.test("to-json--from-json", () { | 2026 unittest.test("to-json--from-json", () { |
1951 var o = buildGooglePrivacyDlpV2beta1Range(); | 2027 var o = buildGooglePrivacyDlpV2beta1Range(); |
1952 var od = new api.GooglePrivacyDlpV2beta1Range.fromJson(o.toJson()); | 2028 var od = new api.GooglePrivacyDlpV2beta1Range.fromJson(o.toJson()); |
1953 checkGooglePrivacyDlpV2beta1Range(od); | 2029 checkGooglePrivacyDlpV2beta1Range(od); |
1954 }); | 2030 }); |
1955 }); | 2031 }); |
1956 | 2032 |
1957 | |
1958 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RecordKey", () { | 2033 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RecordKey", () { |
1959 unittest.test("to-json--from-json", () { | 2034 unittest.test("to-json--from-json", () { |
1960 var o = buildGooglePrivacyDlpV2beta1RecordKey(); | 2035 var o = buildGooglePrivacyDlpV2beta1RecordKey(); |
1961 var od = new api.GooglePrivacyDlpV2beta1RecordKey.fromJson(o.toJson()); | 2036 var od = new api.GooglePrivacyDlpV2beta1RecordKey.fromJson(o.toJson()); |
1962 checkGooglePrivacyDlpV2beta1RecordKey(od); | 2037 checkGooglePrivacyDlpV2beta1RecordKey(od); |
1963 }); | 2038 }); |
1964 }); | 2039 }); |
1965 | 2040 |
1966 | |
1967 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentRequest", () { | 2041 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentRequest", () { |
1968 unittest.test("to-json--from-json", () { | 2042 unittest.test("to-json--from-json", () { |
1969 var o = buildGooglePrivacyDlpV2beta1RedactContentRequest(); | 2043 var o = buildGooglePrivacyDlpV2beta1RedactContentRequest(); |
1970 var od = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(o.to
Json()); | 2044 var od = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson( |
| 2045 o.toJson()); |
1971 checkGooglePrivacyDlpV2beta1RedactContentRequest(od); | 2046 checkGooglePrivacyDlpV2beta1RedactContentRequest(od); |
1972 }); | 2047 }); |
1973 }); | 2048 }); |
1974 | 2049 |
1975 | |
1976 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentResponse", () { | 2050 unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentResponse", () { |
1977 unittest.test("to-json--from-json", () { | 2051 unittest.test("to-json--from-json", () { |
1978 var o = buildGooglePrivacyDlpV2beta1RedactContentResponse(); | 2052 var o = buildGooglePrivacyDlpV2beta1RedactContentResponse(); |
1979 var od = new api.GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(o.t
oJson()); | 2053 var od = new api.GooglePrivacyDlpV2beta1RedactContentResponse.fromJson( |
| 2054 o.toJson()); |
1980 checkGooglePrivacyDlpV2beta1RedactContentResponse(od); | 2055 checkGooglePrivacyDlpV2beta1RedactContentResponse(od); |
1981 }); | 2056 }); |
1982 }); | 2057 }); |
1983 | 2058 |
1984 | |
1985 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ReplaceConfig", () { | 2059 unittest.group("obj-schema-GooglePrivacyDlpV2beta1ReplaceConfig", () { |
1986 unittest.test("to-json--from-json", () { | 2060 unittest.test("to-json--from-json", () { |
1987 var o = buildGooglePrivacyDlpV2beta1ReplaceConfig(); | 2061 var o = buildGooglePrivacyDlpV2beta1ReplaceConfig(); |
1988 var od = new api.GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(o.toJson())
; | 2062 var od = |
| 2063 new api.GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(o.toJson()); |
1989 checkGooglePrivacyDlpV2beta1ReplaceConfig(od); | 2064 checkGooglePrivacyDlpV2beta1ReplaceConfig(od); |
1990 }); | 2065 }); |
1991 }); | 2066 }); |
1992 | 2067 |
1993 | |
1994 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Row", () { | 2068 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Row", () { |
1995 unittest.test("to-json--from-json", () { | 2069 unittest.test("to-json--from-json", () { |
1996 var o = buildGooglePrivacyDlpV2beta1Row(); | 2070 var o = buildGooglePrivacyDlpV2beta1Row(); |
1997 var od = new api.GooglePrivacyDlpV2beta1Row.fromJson(o.toJson()); | 2071 var od = new api.GooglePrivacyDlpV2beta1Row.fromJson(o.toJson()); |
1998 checkGooglePrivacyDlpV2beta1Row(od); | 2072 checkGooglePrivacyDlpV2beta1Row(od); |
1999 }); | 2073 }); |
2000 }); | 2074 }); |
2001 | 2075 |
2002 | |
2003 unittest.group("obj-schema-GooglePrivacyDlpV2beta1StorageConfig", () { | 2076 unittest.group("obj-schema-GooglePrivacyDlpV2beta1StorageConfig", () { |
2004 unittest.test("to-json--from-json", () { | 2077 unittest.test("to-json--from-json", () { |
2005 var o = buildGooglePrivacyDlpV2beta1StorageConfig(); | 2078 var o = buildGooglePrivacyDlpV2beta1StorageConfig(); |
2006 var od = new api.GooglePrivacyDlpV2beta1StorageConfig.fromJson(o.toJson())
; | 2079 var od = |
| 2080 new api.GooglePrivacyDlpV2beta1StorageConfig.fromJson(o.toJson()); |
2007 checkGooglePrivacyDlpV2beta1StorageConfig(od); | 2081 checkGooglePrivacyDlpV2beta1StorageConfig(od); |
2008 }); | 2082 }); |
2009 }); | 2083 }); |
2010 | 2084 |
2011 | |
2012 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Table", () { | 2085 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Table", () { |
2013 unittest.test("to-json--from-json", () { | 2086 unittest.test("to-json--from-json", () { |
2014 var o = buildGooglePrivacyDlpV2beta1Table(); | 2087 var o = buildGooglePrivacyDlpV2beta1Table(); |
2015 var od = new api.GooglePrivacyDlpV2beta1Table.fromJson(o.toJson()); | 2088 var od = new api.GooglePrivacyDlpV2beta1Table.fromJson(o.toJson()); |
2016 checkGooglePrivacyDlpV2beta1Table(od); | 2089 checkGooglePrivacyDlpV2beta1Table(od); |
2017 }); | 2090 }); |
2018 }); | 2091 }); |
2019 | 2092 |
2020 | |
2021 unittest.group("obj-schema-GooglePrivacyDlpV2beta1TableLocation", () { | 2093 unittest.group("obj-schema-GooglePrivacyDlpV2beta1TableLocation", () { |
2022 unittest.test("to-json--from-json", () { | 2094 unittest.test("to-json--from-json", () { |
2023 var o = buildGooglePrivacyDlpV2beta1TableLocation(); | 2095 var o = buildGooglePrivacyDlpV2beta1TableLocation(); |
2024 var od = new api.GooglePrivacyDlpV2beta1TableLocation.fromJson(o.toJson())
; | 2096 var od = |
| 2097 new api.GooglePrivacyDlpV2beta1TableLocation.fromJson(o.toJson()); |
2025 checkGooglePrivacyDlpV2beta1TableLocation(od); | 2098 checkGooglePrivacyDlpV2beta1TableLocation(od); |
2026 }); | 2099 }); |
2027 }); | 2100 }); |
2028 | 2101 |
2029 | |
2030 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Value", () { | 2102 unittest.group("obj-schema-GooglePrivacyDlpV2beta1Value", () { |
2031 unittest.test("to-json--from-json", () { | 2103 unittest.test("to-json--from-json", () { |
2032 var o = buildGooglePrivacyDlpV2beta1Value(); | 2104 var o = buildGooglePrivacyDlpV2beta1Value(); |
2033 var od = new api.GooglePrivacyDlpV2beta1Value.fromJson(o.toJson()); | 2105 var od = new api.GooglePrivacyDlpV2beta1Value.fromJson(o.toJson()); |
2034 checkGooglePrivacyDlpV2beta1Value(od); | 2106 checkGooglePrivacyDlpV2beta1Value(od); |
2035 }); | 2107 }); |
2036 }); | 2108 }); |
2037 | 2109 |
2038 | |
2039 unittest.group("obj-schema-GoogleProtobufEmpty", () { | 2110 unittest.group("obj-schema-GoogleProtobufEmpty", () { |
2040 unittest.test("to-json--from-json", () { | 2111 unittest.test("to-json--from-json", () { |
2041 var o = buildGoogleProtobufEmpty(); | 2112 var o = buildGoogleProtobufEmpty(); |
2042 var od = new api.GoogleProtobufEmpty.fromJson(o.toJson()); | 2113 var od = new api.GoogleProtobufEmpty.fromJson(o.toJson()); |
2043 checkGoogleProtobufEmpty(od); | 2114 checkGoogleProtobufEmpty(od); |
2044 }); | 2115 }); |
2045 }); | 2116 }); |
2046 | 2117 |
2047 | |
2048 unittest.group("obj-schema-GoogleRpcStatus", () { | 2118 unittest.group("obj-schema-GoogleRpcStatus", () { |
2049 unittest.test("to-json--from-json", () { | 2119 unittest.test("to-json--from-json", () { |
2050 var o = buildGoogleRpcStatus(); | 2120 var o = buildGoogleRpcStatus(); |
2051 var od = new api.GoogleRpcStatus.fromJson(o.toJson()); | 2121 var od = new api.GoogleRpcStatus.fromJson(o.toJson()); |
2052 checkGoogleRpcStatus(od); | 2122 checkGoogleRpcStatus(od); |
2053 }); | 2123 }); |
2054 }); | 2124 }); |
2055 | 2125 |
2056 | |
2057 unittest.group("obj-schema-GoogleTypeDate", () { | 2126 unittest.group("obj-schema-GoogleTypeDate", () { |
2058 unittest.test("to-json--from-json", () { | 2127 unittest.test("to-json--from-json", () { |
2059 var o = buildGoogleTypeDate(); | 2128 var o = buildGoogleTypeDate(); |
2060 var od = new api.GoogleTypeDate.fromJson(o.toJson()); | 2129 var od = new api.GoogleTypeDate.fromJson(o.toJson()); |
2061 checkGoogleTypeDate(od); | 2130 checkGoogleTypeDate(od); |
2062 }); | 2131 }); |
2063 }); | 2132 }); |
2064 | 2133 |
2065 | |
2066 unittest.group("obj-schema-GoogleTypeTimeOfDay", () { | 2134 unittest.group("obj-schema-GoogleTypeTimeOfDay", () { |
2067 unittest.test("to-json--from-json", () { | 2135 unittest.test("to-json--from-json", () { |
2068 var o = buildGoogleTypeTimeOfDay(); | 2136 var o = buildGoogleTypeTimeOfDay(); |
2069 var od = new api.GoogleTypeTimeOfDay.fromJson(o.toJson()); | 2137 var od = new api.GoogleTypeTimeOfDay.fromJson(o.toJson()); |
2070 checkGoogleTypeTimeOfDay(od); | 2138 checkGoogleTypeTimeOfDay(od); |
2071 }); | 2139 }); |
2072 }); | 2140 }); |
2073 | 2141 |
2074 | |
2075 unittest.group("resource-ContentResourceApi", () { | 2142 unittest.group("resource-ContentResourceApi", () { |
2076 unittest.test("method--inspect", () { | 2143 unittest.test("method--inspect", () { |
2077 | |
2078 var mock = new HttpServerMock(); | 2144 var mock = new HttpServerMock(); |
2079 api.ContentResourceApi res = new api.DlpApi(mock).content; | 2145 api.ContentResourceApi res = new api.DlpApi(mock).content; |
2080 var arg_request = buildGooglePrivacyDlpV2beta1InspectContentRequest(); | 2146 var arg_request = buildGooglePrivacyDlpV2beta1InspectContentRequest(); |
2081 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2147 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2082 var obj = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(
json); | 2148 var obj = |
| 2149 new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(json); |
2083 checkGooglePrivacyDlpV2beta1InspectContentRequest(obj); | 2150 checkGooglePrivacyDlpV2beta1InspectContentRequest(obj); |
2084 | 2151 |
2085 var path = (req.url).path; | 2152 var path = (req.url).path; |
2086 var pathOffset = 0; | 2153 var pathOffset = 0; |
2087 var index; | 2154 var index; |
2088 var subPart; | 2155 var subPart; |
2089 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2156 unittest.expect( |
| 2157 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2090 pathOffset += 1; | 2158 pathOffset += 1; |
2091 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v2beta1/content:inspect")); | 2159 unittest.expect(path.substring(pathOffset, pathOffset + 23), |
| 2160 unittest.equals("v2beta1/content:inspect")); |
2092 pathOffset += 23; | 2161 pathOffset += 23; |
2093 | 2162 |
2094 var query = (req.url).query; | 2163 var query = (req.url).query; |
2095 var queryOffset = 0; | 2164 var queryOffset = 0; |
2096 var queryMap = {}; | 2165 var queryMap = {}; |
2097 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2166 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2098 parseBool(n) { | 2167 parseBool(n) { |
2099 if (n == "true") return true; | 2168 if (n == "true") return true; |
2100 if (n == "false") return false; | 2169 if (n == "false") return false; |
2101 if (n == null) return null; | 2170 if (n == null) return null; |
2102 throw new core.ArgumentError("Invalid boolean: $n"); | 2171 throw new core.ArgumentError("Invalid boolean: $n"); |
2103 } | 2172 } |
| 2173 |
2104 if (query.length > 0) { | 2174 if (query.length > 0) { |
2105 for (var part in query.split("&")) { | 2175 for (var part in query.split("&")) { |
2106 var keyvalue = part.split("="); | 2176 var keyvalue = part.split("="); |
2107 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2177 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2178 core.Uri.decodeQueryComponent(keyvalue[1])); |
2108 } | 2179 } |
2109 } | 2180 } |
2110 | 2181 |
2111 | |
2112 var h = { | 2182 var h = { |
2113 "content-type" : "application/json; charset=utf-8", | 2183 "content-type": "application/json; charset=utf-8", |
2114 }; | 2184 }; |
2115 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1InspectConten
tResponse()); | 2185 var resp = convert.JSON |
| 2186 .encode(buildGooglePrivacyDlpV2beta1InspectContentResponse()); |
2116 return new async.Future.value(stringResponse(200, h, resp)); | 2187 return new async.Future.value(stringResponse(200, h, resp)); |
2117 }), true); | 2188 }), true); |
2118 res.inspect(arg_request).then(unittest.expectAsync1(((api.GooglePrivacyDlp
V2beta1InspectContentResponse response) { | 2189 res.inspect(arg_request).then(unittest.expectAsync1( |
| 2190 ((api.GooglePrivacyDlpV2beta1InspectContentResponse response) { |
2119 checkGooglePrivacyDlpV2beta1InspectContentResponse(response); | 2191 checkGooglePrivacyDlpV2beta1InspectContentResponse(response); |
2120 }))); | 2192 }))); |
2121 }); | 2193 }); |
2122 | 2194 |
2123 unittest.test("method--redact", () { | 2195 unittest.test("method--redact", () { |
2124 | |
2125 var mock = new HttpServerMock(); | 2196 var mock = new HttpServerMock(); |
2126 api.ContentResourceApi res = new api.DlpApi(mock).content; | 2197 api.ContentResourceApi res = new api.DlpApi(mock).content; |
2127 var arg_request = buildGooglePrivacyDlpV2beta1RedactContentRequest(); | 2198 var arg_request = buildGooglePrivacyDlpV2beta1RedactContentRequest(); |
2128 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2199 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2129 var obj = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(j
son); | 2200 var obj = |
| 2201 new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(json); |
2130 checkGooglePrivacyDlpV2beta1RedactContentRequest(obj); | 2202 checkGooglePrivacyDlpV2beta1RedactContentRequest(obj); |
2131 | 2203 |
2132 var path = (req.url).path; | 2204 var path = (req.url).path; |
2133 var pathOffset = 0; | 2205 var pathOffset = 0; |
2134 var index; | 2206 var index; |
2135 var subPart; | 2207 var subPart; |
2136 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2208 unittest.expect( |
| 2209 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2137 pathOffset += 1; | 2210 pathOffset += 1; |
2138 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("v2beta1/content:redact")); | 2211 unittest.expect(path.substring(pathOffset, pathOffset + 22), |
| 2212 unittest.equals("v2beta1/content:redact")); |
2139 pathOffset += 22; | 2213 pathOffset += 22; |
2140 | 2214 |
2141 var query = (req.url).query; | 2215 var query = (req.url).query; |
2142 var queryOffset = 0; | 2216 var queryOffset = 0; |
2143 var queryMap = {}; | 2217 var queryMap = {}; |
2144 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2218 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2145 parseBool(n) { | 2219 parseBool(n) { |
2146 if (n == "true") return true; | 2220 if (n == "true") return true; |
2147 if (n == "false") return false; | 2221 if (n == "false") return false; |
2148 if (n == null) return null; | 2222 if (n == null) return null; |
2149 throw new core.ArgumentError("Invalid boolean: $n"); | 2223 throw new core.ArgumentError("Invalid boolean: $n"); |
2150 } | 2224 } |
| 2225 |
2151 if (query.length > 0) { | 2226 if (query.length > 0) { |
2152 for (var part in query.split("&")) { | 2227 for (var part in query.split("&")) { |
2153 var keyvalue = part.split("="); | 2228 var keyvalue = part.split("="); |
2154 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2229 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2230 core.Uri.decodeQueryComponent(keyvalue[1])); |
2155 } | 2231 } |
2156 } | 2232 } |
2157 | 2233 |
2158 | |
2159 var h = { | 2234 var h = { |
2160 "content-type" : "application/json; charset=utf-8", | 2235 "content-type": "application/json; charset=utf-8", |
2161 }; | 2236 }; |
2162 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1RedactContent
Response()); | 2237 var resp = convert.JSON |
| 2238 .encode(buildGooglePrivacyDlpV2beta1RedactContentResponse()); |
2163 return new async.Future.value(stringResponse(200, h, resp)); | 2239 return new async.Future.value(stringResponse(200, h, resp)); |
2164 }), true); | 2240 }), true); |
2165 res.redact(arg_request).then(unittest.expectAsync1(((api.GooglePrivacyDlpV
2beta1RedactContentResponse response) { | 2241 res.redact(arg_request).then(unittest.expectAsync1( |
| 2242 ((api.GooglePrivacyDlpV2beta1RedactContentResponse response) { |
2166 checkGooglePrivacyDlpV2beta1RedactContentResponse(response); | 2243 checkGooglePrivacyDlpV2beta1RedactContentResponse(response); |
2167 }))); | 2244 }))); |
2168 }); | 2245 }); |
2169 | |
2170 }); | 2246 }); |
2171 | 2247 |
2172 | |
2173 unittest.group("resource-InspectOperationsResourceApi", () { | 2248 unittest.group("resource-InspectOperationsResourceApi", () { |
2174 unittest.test("method--cancel", () { | 2249 unittest.test("method--cancel", () { |
2175 | |
2176 var mock = new HttpServerMock(); | 2250 var mock = new HttpServerMock(); |
2177 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat
ions; | 2251 api.InspectOperationsResourceApi res = |
| 2252 new api.DlpApi(mock).inspect.operations; |
2178 var arg_request = buildGoogleLongrunningCancelOperationRequest(); | 2253 var arg_request = buildGoogleLongrunningCancelOperationRequest(); |
2179 var arg_name = "foo"; | 2254 var arg_name = "foo"; |
2180 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2255 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2181 var obj = new api.GoogleLongrunningCancelOperationRequest.fromJson(json)
; | 2256 var obj = |
| 2257 new api.GoogleLongrunningCancelOperationRequest.fromJson(json); |
2182 checkGoogleLongrunningCancelOperationRequest(obj); | 2258 checkGoogleLongrunningCancelOperationRequest(obj); |
2183 | 2259 |
2184 var path = (req.url).path; | 2260 var path = (req.url).path; |
2185 var pathOffset = 0; | 2261 var pathOffset = 0; |
2186 var index; | 2262 var index; |
2187 var subPart; | 2263 var subPart; |
2188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2264 unittest.expect( |
| 2265 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2189 pathOffset += 1; | 2266 pathOffset += 1; |
2190 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); | 2267 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2268 unittest.equals("v2beta1/")); |
2191 pathOffset += 8; | 2269 pathOffset += 8; |
2192 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2270 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2193 | 2271 |
2194 var query = (req.url).query; | 2272 var query = (req.url).query; |
2195 var queryOffset = 0; | 2273 var queryOffset = 0; |
2196 var queryMap = {}; | 2274 var queryMap = {}; |
2197 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2275 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2198 parseBool(n) { | 2276 parseBool(n) { |
2199 if (n == "true") return true; | 2277 if (n == "true") return true; |
2200 if (n == "false") return false; | 2278 if (n == "false") return false; |
2201 if (n == null) return null; | 2279 if (n == null) return null; |
2202 throw new core.ArgumentError("Invalid boolean: $n"); | 2280 throw new core.ArgumentError("Invalid boolean: $n"); |
2203 } | 2281 } |
| 2282 |
2204 if (query.length > 0) { | 2283 if (query.length > 0) { |
2205 for (var part in query.split("&")) { | 2284 for (var part in query.split("&")) { |
2206 var keyvalue = part.split("="); | 2285 var keyvalue = part.split("="); |
2207 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2286 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2287 core.Uri.decodeQueryComponent(keyvalue[1])); |
2208 } | 2288 } |
2209 } | 2289 } |
2210 | 2290 |
2211 | |
2212 var h = { | 2291 var h = { |
2213 "content-type" : "application/json; charset=utf-8", | 2292 "content-type": "application/json; charset=utf-8", |
2214 }; | 2293 }; |
2215 var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); | 2294 var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); |
2216 return new async.Future.value(stringResponse(200, h, resp)); | 2295 return new async.Future.value(stringResponse(200, h, resp)); |
2217 }), true); | 2296 }), true); |
2218 res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.GoogleP
rotobufEmpty response) { | 2297 res |
| 2298 .cancel(arg_request, arg_name) |
| 2299 .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) { |
2219 checkGoogleProtobufEmpty(response); | 2300 checkGoogleProtobufEmpty(response); |
2220 }))); | 2301 }))); |
2221 }); | 2302 }); |
2222 | 2303 |
2223 unittest.test("method--create", () { | 2304 unittest.test("method--create", () { |
2224 | |
2225 var mock = new HttpServerMock(); | 2305 var mock = new HttpServerMock(); |
2226 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat
ions; | 2306 api.InspectOperationsResourceApi res = |
2227 var arg_request = buildGooglePrivacyDlpV2beta1CreateInspectOperationReques
t(); | 2307 new api.DlpApi(mock).inspect.operations; |
| 2308 var arg_request = |
| 2309 buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest(); |
2228 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2310 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2229 var obj = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.f
romJson(json); | 2311 var obj = new api |
| 2312 .GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson( |
| 2313 json); |
2230 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(obj); | 2314 checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(obj); |
2231 | 2315 |
2232 var path = (req.url).path; | 2316 var path = (req.url).path; |
2233 var pathOffset = 0; | 2317 var pathOffset = 0; |
2234 var index; | 2318 var index; |
2235 var subPart; | 2319 var subPart; |
2236 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2320 unittest.expect( |
| 2321 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2237 pathOffset += 1; | 2322 pathOffset += 1; |
2238 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("v2beta1/inspect/operations")); | 2323 unittest.expect(path.substring(pathOffset, pathOffset + 26), |
| 2324 unittest.equals("v2beta1/inspect/operations")); |
2239 pathOffset += 26; | 2325 pathOffset += 26; |
2240 | 2326 |
2241 var query = (req.url).query; | 2327 var query = (req.url).query; |
2242 var queryOffset = 0; | 2328 var queryOffset = 0; |
2243 var queryMap = {}; | 2329 var queryMap = {}; |
2244 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2330 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2245 parseBool(n) { | 2331 parseBool(n) { |
2246 if (n == "true") return true; | 2332 if (n == "true") return true; |
2247 if (n == "false") return false; | 2333 if (n == "false") return false; |
2248 if (n == null) return null; | 2334 if (n == null) return null; |
2249 throw new core.ArgumentError("Invalid boolean: $n"); | 2335 throw new core.ArgumentError("Invalid boolean: $n"); |
2250 } | 2336 } |
| 2337 |
2251 if (query.length > 0) { | 2338 if (query.length > 0) { |
2252 for (var part in query.split("&")) { | 2339 for (var part in query.split("&")) { |
2253 var keyvalue = part.split("="); | 2340 var keyvalue = part.split("="); |
2254 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2341 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2342 core.Uri.decodeQueryComponent(keyvalue[1])); |
2255 } | 2343 } |
2256 } | 2344 } |
2257 | 2345 |
2258 | |
2259 var h = { | 2346 var h = { |
2260 "content-type" : "application/json; charset=utf-8", | 2347 "content-type": "application/json; charset=utf-8", |
2261 }; | 2348 }; |
2262 var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); | 2349 var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); |
2263 return new async.Future.value(stringResponse(200, h, resp)); | 2350 return new async.Future.value(stringResponse(200, h, resp)); |
2264 }), true); | 2351 }), true); |
2265 res.create(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunning
Operation response) { | 2352 res.create(arg_request).then( |
| 2353 unittest.expectAsync1(((api.GoogleLongrunningOperation response) { |
2266 checkGoogleLongrunningOperation(response); | 2354 checkGoogleLongrunningOperation(response); |
2267 }))); | 2355 }))); |
2268 }); | 2356 }); |
2269 | 2357 |
2270 unittest.test("method--delete", () { | 2358 unittest.test("method--delete", () { |
2271 | |
2272 var mock = new HttpServerMock(); | 2359 var mock = new HttpServerMock(); |
2273 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat
ions; | 2360 api.InspectOperationsResourceApi res = |
| 2361 new api.DlpApi(mock).inspect.operations; |
2274 var arg_name = "foo"; | 2362 var arg_name = "foo"; |
2275 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2363 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2276 var path = (req.url).path; | 2364 var path = (req.url).path; |
2277 var pathOffset = 0; | 2365 var pathOffset = 0; |
2278 var index; | 2366 var index; |
2279 var subPart; | 2367 var subPart; |
2280 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2368 unittest.expect( |
| 2369 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2281 pathOffset += 1; | 2370 pathOffset += 1; |
2282 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); | 2371 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2372 unittest.equals("v2beta1/")); |
2283 pathOffset += 8; | 2373 pathOffset += 8; |
2284 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2374 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2285 | 2375 |
2286 var query = (req.url).query; | 2376 var query = (req.url).query; |
2287 var queryOffset = 0; | 2377 var queryOffset = 0; |
2288 var queryMap = {}; | 2378 var queryMap = {}; |
2289 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2379 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2290 parseBool(n) { | 2380 parseBool(n) { |
2291 if (n == "true") return true; | 2381 if (n == "true") return true; |
2292 if (n == "false") return false; | 2382 if (n == "false") return false; |
2293 if (n == null) return null; | 2383 if (n == null) return null; |
2294 throw new core.ArgumentError("Invalid boolean: $n"); | 2384 throw new core.ArgumentError("Invalid boolean: $n"); |
2295 } | 2385 } |
| 2386 |
2296 if (query.length > 0) { | 2387 if (query.length > 0) { |
2297 for (var part in query.split("&")) { | 2388 for (var part in query.split("&")) { |
2298 var keyvalue = part.split("="); | 2389 var keyvalue = part.split("="); |
2299 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2390 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2391 core.Uri.decodeQueryComponent(keyvalue[1])); |
2300 } | 2392 } |
2301 } | 2393 } |
2302 | 2394 |
2303 | |
2304 var h = { | 2395 var h = { |
2305 "content-type" : "application/json; charset=utf-8", | 2396 "content-type": "application/json; charset=utf-8", |
2306 }; | 2397 }; |
2307 var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); | 2398 var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); |
2308 return new async.Future.value(stringResponse(200, h, resp)); | 2399 return new async.Future.value(stringResponse(200, h, resp)); |
2309 }), true); | 2400 }), true); |
2310 res.delete(arg_name).then(unittest.expectAsync1(((api.GoogleProtobufEmpty
response) { | 2401 res |
| 2402 .delete(arg_name) |
| 2403 .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) { |
2311 checkGoogleProtobufEmpty(response); | 2404 checkGoogleProtobufEmpty(response); |
2312 }))); | 2405 }))); |
2313 }); | 2406 }); |
2314 | 2407 |
2315 unittest.test("method--get", () { | 2408 unittest.test("method--get", () { |
2316 | |
2317 var mock = new HttpServerMock(); | 2409 var mock = new HttpServerMock(); |
2318 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat
ions; | 2410 api.InspectOperationsResourceApi res = |
| 2411 new api.DlpApi(mock).inspect.operations; |
2319 var arg_name = "foo"; | 2412 var arg_name = "foo"; |
2320 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2413 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2321 var path = (req.url).path; | 2414 var path = (req.url).path; |
2322 var pathOffset = 0; | 2415 var pathOffset = 0; |
2323 var index; | 2416 var index; |
2324 var subPart; | 2417 var subPart; |
2325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2418 unittest.expect( |
| 2419 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2326 pathOffset += 1; | 2420 pathOffset += 1; |
2327 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); | 2421 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2422 unittest.equals("v2beta1/")); |
2328 pathOffset += 8; | 2423 pathOffset += 8; |
2329 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2424 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2330 | 2425 |
2331 var query = (req.url).query; | 2426 var query = (req.url).query; |
2332 var queryOffset = 0; | 2427 var queryOffset = 0; |
2333 var queryMap = {}; | 2428 var queryMap = {}; |
2334 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2429 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2335 parseBool(n) { | 2430 parseBool(n) { |
2336 if (n == "true") return true; | 2431 if (n == "true") return true; |
2337 if (n == "false") return false; | 2432 if (n == "false") return false; |
2338 if (n == null) return null; | 2433 if (n == null) return null; |
2339 throw new core.ArgumentError("Invalid boolean: $n"); | 2434 throw new core.ArgumentError("Invalid boolean: $n"); |
2340 } | 2435 } |
| 2436 |
2341 if (query.length > 0) { | 2437 if (query.length > 0) { |
2342 for (var part in query.split("&")) { | 2438 for (var part in query.split("&")) { |
2343 var keyvalue = part.split("="); | 2439 var keyvalue = part.split("="); |
2344 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2440 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2441 core.Uri.decodeQueryComponent(keyvalue[1])); |
2345 } | 2442 } |
2346 } | 2443 } |
2347 | 2444 |
2348 | |
2349 var h = { | 2445 var h = { |
2350 "content-type" : "application/json; charset=utf-8", | 2446 "content-type": "application/json; charset=utf-8", |
2351 }; | 2447 }; |
2352 var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); | 2448 var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); |
2353 return new async.Future.value(stringResponse(200, h, resp)); | 2449 return new async.Future.value(stringResponse(200, h, resp)); |
2354 }), true); | 2450 }), true); |
2355 res.get(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperat
ion response) { | 2451 res.get(arg_name).then( |
| 2452 unittest.expectAsync1(((api.GoogleLongrunningOperation response) { |
2356 checkGoogleLongrunningOperation(response); | 2453 checkGoogleLongrunningOperation(response); |
2357 }))); | 2454 }))); |
2358 }); | 2455 }); |
2359 | 2456 |
2360 unittest.test("method--list", () { | 2457 unittest.test("method--list", () { |
2361 | |
2362 var mock = new HttpServerMock(); | 2458 var mock = new HttpServerMock(); |
2363 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat
ions; | 2459 api.InspectOperationsResourceApi res = |
| 2460 new api.DlpApi(mock).inspect.operations; |
2364 var arg_name = "foo"; | 2461 var arg_name = "foo"; |
2365 var arg_filter = "foo"; | 2462 var arg_filter = "foo"; |
2366 var arg_pageToken = "foo"; | 2463 var arg_pageToken = "foo"; |
2367 var arg_pageSize = 42; | 2464 var arg_pageSize = 42; |
2368 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2465 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2369 var path = (req.url).path; | 2466 var path = (req.url).path; |
2370 var pathOffset = 0; | 2467 var pathOffset = 0; |
2371 var index; | 2468 var index; |
2372 var subPart; | 2469 var subPart; |
2373 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2470 unittest.expect( |
| 2471 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2374 pathOffset += 1; | 2472 pathOffset += 1; |
2375 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); | 2473 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2474 unittest.equals("v2beta1/")); |
2376 pathOffset += 8; | 2475 pathOffset += 8; |
2377 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2476 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2378 | 2477 |
2379 var query = (req.url).query; | 2478 var query = (req.url).query; |
2380 var queryOffset = 0; | 2479 var queryOffset = 0; |
2381 var queryMap = {}; | 2480 var queryMap = {}; |
2382 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2481 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2383 parseBool(n) { | 2482 parseBool(n) { |
2384 if (n == "true") return true; | 2483 if (n == "true") return true; |
2385 if (n == "false") return false; | 2484 if (n == "false") return false; |
2386 if (n == null) return null; | 2485 if (n == null) return null; |
2387 throw new core.ArgumentError("Invalid boolean: $n"); | 2486 throw new core.ArgumentError("Invalid boolean: $n"); |
2388 } | 2487 } |
| 2488 |
2389 if (query.length > 0) { | 2489 if (query.length > 0) { |
2390 for (var part in query.split("&")) { | 2490 for (var part in query.split("&")) { |
2391 var keyvalue = part.split("="); | 2491 var keyvalue = part.split("="); |
2392 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2492 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2493 core.Uri.decodeQueryComponent(keyvalue[1])); |
2393 } | 2494 } |
2394 } | 2495 } |
2395 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2496 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2396 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2497 unittest.expect( |
2397 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2498 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
2398 | 2499 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 2500 unittest.equals(arg_pageSize)); |
2399 | 2501 |
2400 var h = { | 2502 var h = { |
2401 "content-type" : "application/json; charset=utf-8", | 2503 "content-type": "application/json; charset=utf-8", |
2402 }; | 2504 }; |
2403 var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsRespo
nse()); | 2505 var resp = |
| 2506 convert.JSON.encode(buildGoogleLongrunningListOperationsResponse()); |
2404 return new async.Future.value(stringResponse(200, h, resp)); | 2507 return new async.Future.value(stringResponse(200, h, resp)); |
2405 }), true); | 2508 }), true); |
2406 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsR
esponse response) { | 2509 res |
| 2510 .list(arg_name, |
| 2511 filter: arg_filter, |
| 2512 pageToken: arg_pageToken, |
| 2513 pageSize: arg_pageSize) |
| 2514 .then(unittest.expectAsync1( |
| 2515 ((api.GoogleLongrunningListOperationsResponse response) { |
2407 checkGoogleLongrunningListOperationsResponse(response); | 2516 checkGoogleLongrunningListOperationsResponse(response); |
2408 }))); | 2517 }))); |
2409 }); | 2518 }); |
2410 | |
2411 }); | 2519 }); |
2412 | 2520 |
2413 | |
2414 unittest.group("resource-InspectResultsFindingsResourceApi", () { | 2521 unittest.group("resource-InspectResultsFindingsResourceApi", () { |
2415 unittest.test("method--list", () { | 2522 unittest.test("method--list", () { |
2416 | |
2417 var mock = new HttpServerMock(); | 2523 var mock = new HttpServerMock(); |
2418 api.InspectResultsFindingsResourceApi res = new api.DlpApi(mock).inspect.r
esults.findings; | 2524 api.InspectResultsFindingsResourceApi res = |
| 2525 new api.DlpApi(mock).inspect.results.findings; |
2419 var arg_name = "foo"; | 2526 var arg_name = "foo"; |
2420 var arg_pageToken = "foo"; | 2527 var arg_pageToken = "foo"; |
2421 var arg_pageSize = 42; | 2528 var arg_pageSize = 42; |
2422 var arg_filter = "foo"; | 2529 var arg_filter = "foo"; |
2423 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2530 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2424 var path = (req.url).path; | 2531 var path = (req.url).path; |
2425 var pathOffset = 0; | 2532 var pathOffset = 0; |
2426 var index; | 2533 var index; |
2427 var subPart; | 2534 var subPart; |
2428 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2535 unittest.expect( |
| 2536 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2429 pathOffset += 1; | 2537 pathOffset += 1; |
2430 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); | 2538 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2539 unittest.equals("v2beta1/")); |
2431 pathOffset += 8; | 2540 pathOffset += 8; |
2432 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2541 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2433 | 2542 |
2434 var query = (req.url).query; | 2543 var query = (req.url).query; |
2435 var queryOffset = 0; | 2544 var queryOffset = 0; |
2436 var queryMap = {}; | 2545 var queryMap = {}; |
2437 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2546 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2438 parseBool(n) { | 2547 parseBool(n) { |
2439 if (n == "true") return true; | 2548 if (n == "true") return true; |
2440 if (n == "false") return false; | 2549 if (n == "false") return false; |
2441 if (n == null) return null; | 2550 if (n == null) return null; |
2442 throw new core.ArgumentError("Invalid boolean: $n"); | 2551 throw new core.ArgumentError("Invalid boolean: $n"); |
2443 } | 2552 } |
2444 if (query.length > 0) { | 2553 |
2445 for (var part in query.split("&")) { | 2554 if (query.length > 0) { |
2446 var keyvalue = part.split("="); | 2555 for (var part in query.split("&")) { |
2447 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2556 var keyvalue = part.split("="); |
2448 } | 2557 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
2449 } | 2558 core.Uri.decodeQueryComponent(keyvalue[1])); |
2450 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2559 } |
2451 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2560 } |
| 2561 unittest.expect( |
| 2562 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
| 2563 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 2564 unittest.equals(arg_pageSize)); |
2452 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2565 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2453 | 2566 |
2454 | 2567 var h = { |
2455 var h = { | 2568 "content-type": "application/json; charset=utf-8", |
2456 "content-type" : "application/json; charset=utf-8", | 2569 }; |
2457 }; | 2570 var resp = convert.JSON |
2458 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInspectFi
ndingsResponse()); | 2571 .encode(buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse()); |
2459 return new async.Future.value(stringResponse(200, h, resp)); | 2572 return new async.Future.value(stringResponse(200, h, resp)); |
2460 }), true); | 2573 }), true); |
2461 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte
r: arg_filter).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListInspe
ctFindingsResponse response) { | 2574 res |
| 2575 .list(arg_name, |
| 2576 pageToken: arg_pageToken, |
| 2577 pageSize: arg_pageSize, |
| 2578 filter: arg_filter) |
| 2579 .then(unittest.expectAsync1( |
| 2580 ((api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse |
| 2581 response) { |
2462 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(response); | 2582 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(response); |
2463 }))); | 2583 }))); |
2464 }); | 2584 }); |
2465 | |
2466 }); | 2585 }); |
2467 | 2586 |
| 2587 unittest.group("resource-RiskAnalysisOperationsResourceApi", () { |
| 2588 unittest.test("method--cancel", () { |
| 2589 var mock = new HttpServerMock(); |
| 2590 api.RiskAnalysisOperationsResourceApi res = |
| 2591 new api.DlpApi(mock).riskAnalysis.operations; |
| 2592 var arg_request = buildGoogleLongrunningCancelOperationRequest(); |
| 2593 var arg_name = "foo"; |
| 2594 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2595 var obj = |
| 2596 new api.GoogleLongrunningCancelOperationRequest.fromJson(json); |
| 2597 checkGoogleLongrunningCancelOperationRequest(obj); |
| 2598 |
| 2599 var path = (req.url).path; |
| 2600 var pathOffset = 0; |
| 2601 var index; |
| 2602 var subPart; |
| 2603 unittest.expect( |
| 2604 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 2605 pathOffset += 1; |
| 2606 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2607 unittest.equals("v2beta1/")); |
| 2608 pathOffset += 8; |
| 2609 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2610 |
| 2611 var query = (req.url).query; |
| 2612 var queryOffset = 0; |
| 2613 var queryMap = {}; |
| 2614 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2615 parseBool(n) { |
| 2616 if (n == "true") return true; |
| 2617 if (n == "false") return false; |
| 2618 if (n == null) return null; |
| 2619 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2620 } |
| 2621 |
| 2622 if (query.length > 0) { |
| 2623 for (var part in query.split("&")) { |
| 2624 var keyvalue = part.split("="); |
| 2625 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2626 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 2627 } |
| 2628 } |
| 2629 |
| 2630 var h = { |
| 2631 "content-type": "application/json; charset=utf-8", |
| 2632 }; |
| 2633 var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); |
| 2634 return new async.Future.value(stringResponse(200, h, resp)); |
| 2635 }), true); |
| 2636 res |
| 2637 .cancel(arg_request, arg_name) |
| 2638 .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) { |
| 2639 checkGoogleProtobufEmpty(response); |
| 2640 }))); |
| 2641 }); |
| 2642 |
| 2643 unittest.test("method--delete", () { |
| 2644 var mock = new HttpServerMock(); |
| 2645 api.RiskAnalysisOperationsResourceApi res = |
| 2646 new api.DlpApi(mock).riskAnalysis.operations; |
| 2647 var arg_name = "foo"; |
| 2648 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2649 var path = (req.url).path; |
| 2650 var pathOffset = 0; |
| 2651 var index; |
| 2652 var subPart; |
| 2653 unittest.expect( |
| 2654 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 2655 pathOffset += 1; |
| 2656 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2657 unittest.equals("v2beta1/")); |
| 2658 pathOffset += 8; |
| 2659 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2660 |
| 2661 var query = (req.url).query; |
| 2662 var queryOffset = 0; |
| 2663 var queryMap = {}; |
| 2664 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2665 parseBool(n) { |
| 2666 if (n == "true") return true; |
| 2667 if (n == "false") return false; |
| 2668 if (n == null) return null; |
| 2669 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2670 } |
| 2671 |
| 2672 if (query.length > 0) { |
| 2673 for (var part in query.split("&")) { |
| 2674 var keyvalue = part.split("="); |
| 2675 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2676 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 2677 } |
| 2678 } |
| 2679 |
| 2680 var h = { |
| 2681 "content-type": "application/json; charset=utf-8", |
| 2682 }; |
| 2683 var resp = convert.JSON.encode(buildGoogleProtobufEmpty()); |
| 2684 return new async.Future.value(stringResponse(200, h, resp)); |
| 2685 }), true); |
| 2686 res |
| 2687 .delete(arg_name) |
| 2688 .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) { |
| 2689 checkGoogleProtobufEmpty(response); |
| 2690 }))); |
| 2691 }); |
| 2692 |
| 2693 unittest.test("method--get", () { |
| 2694 var mock = new HttpServerMock(); |
| 2695 api.RiskAnalysisOperationsResourceApi res = |
| 2696 new api.DlpApi(mock).riskAnalysis.operations; |
| 2697 var arg_name = "foo"; |
| 2698 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2699 var path = (req.url).path; |
| 2700 var pathOffset = 0; |
| 2701 var index; |
| 2702 var subPart; |
| 2703 unittest.expect( |
| 2704 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 2705 pathOffset += 1; |
| 2706 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2707 unittest.equals("v2beta1/")); |
| 2708 pathOffset += 8; |
| 2709 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2710 |
| 2711 var query = (req.url).query; |
| 2712 var queryOffset = 0; |
| 2713 var queryMap = {}; |
| 2714 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2715 parseBool(n) { |
| 2716 if (n == "true") return true; |
| 2717 if (n == "false") return false; |
| 2718 if (n == null) return null; |
| 2719 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2720 } |
| 2721 |
| 2722 if (query.length > 0) { |
| 2723 for (var part in query.split("&")) { |
| 2724 var keyvalue = part.split("="); |
| 2725 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2726 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 2727 } |
| 2728 } |
| 2729 |
| 2730 var h = { |
| 2731 "content-type": "application/json; charset=utf-8", |
| 2732 }; |
| 2733 var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); |
| 2734 return new async.Future.value(stringResponse(200, h, resp)); |
| 2735 }), true); |
| 2736 res.get(arg_name).then( |
| 2737 unittest.expectAsync1(((api.GoogleLongrunningOperation response) { |
| 2738 checkGoogleLongrunningOperation(response); |
| 2739 }))); |
| 2740 }); |
| 2741 |
| 2742 unittest.test("method--list", () { |
| 2743 var mock = new HttpServerMock(); |
| 2744 api.RiskAnalysisOperationsResourceApi res = |
| 2745 new api.DlpApi(mock).riskAnalysis.operations; |
| 2746 var arg_name = "foo"; |
| 2747 var arg_pageToken = "foo"; |
| 2748 var arg_pageSize = 42; |
| 2749 var arg_filter = "foo"; |
| 2750 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2751 var path = (req.url).path; |
| 2752 var pathOffset = 0; |
| 2753 var index; |
| 2754 var subPart; |
| 2755 unittest.expect( |
| 2756 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 2757 pathOffset += 1; |
| 2758 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 2759 unittest.equals("v2beta1/")); |
| 2760 pathOffset += 8; |
| 2761 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2762 |
| 2763 var query = (req.url).query; |
| 2764 var queryOffset = 0; |
| 2765 var queryMap = {}; |
| 2766 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2767 parseBool(n) { |
| 2768 if (n == "true") return true; |
| 2769 if (n == "false") return false; |
| 2770 if (n == null) return null; |
| 2771 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2772 } |
| 2773 |
| 2774 if (query.length > 0) { |
| 2775 for (var part in query.split("&")) { |
| 2776 var keyvalue = part.split("="); |
| 2777 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2778 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 2779 } |
| 2780 } |
| 2781 unittest.expect( |
| 2782 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
| 2783 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 2784 unittest.equals(arg_pageSize)); |
| 2785 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2786 |
| 2787 var h = { |
| 2788 "content-type": "application/json; charset=utf-8", |
| 2789 }; |
| 2790 var resp = |
| 2791 convert.JSON.encode(buildGoogleLongrunningListOperationsResponse()); |
| 2792 return new async.Future.value(stringResponse(200, h, resp)); |
| 2793 }), true); |
| 2794 res |
| 2795 .list(arg_name, |
| 2796 pageToken: arg_pageToken, |
| 2797 pageSize: arg_pageSize, |
| 2798 filter: arg_filter) |
| 2799 .then(unittest.expectAsync1( |
| 2800 ((api.GoogleLongrunningListOperationsResponse response) { |
| 2801 checkGoogleLongrunningListOperationsResponse(response); |
| 2802 }))); |
| 2803 }); |
| 2804 }); |
2468 | 2805 |
2469 unittest.group("resource-RootCategoriesResourceApi", () { | 2806 unittest.group("resource-RootCategoriesResourceApi", () { |
2470 unittest.test("method--list", () { | 2807 unittest.test("method--list", () { |
2471 | |
2472 var mock = new HttpServerMock(); | 2808 var mock = new HttpServerMock(); |
2473 api.RootCategoriesResourceApi res = new api.DlpApi(mock).rootCategories; | 2809 api.RootCategoriesResourceApi res = new api.DlpApi(mock).rootCategories; |
2474 var arg_languageCode = "foo"; | 2810 var arg_languageCode = "foo"; |
2475 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2811 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2476 var path = (req.url).path; | 2812 var path = (req.url).path; |
2477 var pathOffset = 0; | 2813 var pathOffset = 0; |
2478 var index; | 2814 var index; |
2479 var subPart; | 2815 var subPart; |
2480 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2816 unittest.expect( |
| 2817 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2481 pathOffset += 1; | 2818 pathOffset += 1; |
2482 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("v2beta1/rootCategories")); | 2819 unittest.expect(path.substring(pathOffset, pathOffset + 22), |
| 2820 unittest.equals("v2beta1/rootCategories")); |
2483 pathOffset += 22; | 2821 pathOffset += 22; |
2484 | 2822 |
2485 var query = (req.url).query; | 2823 var query = (req.url).query; |
2486 var queryOffset = 0; | 2824 var queryOffset = 0; |
2487 var queryMap = {}; | 2825 var queryMap = {}; |
2488 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2826 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2489 parseBool(n) { | 2827 parseBool(n) { |
2490 if (n == "true") return true; | 2828 if (n == "true") return true; |
2491 if (n == "false") return false; | 2829 if (n == "false") return false; |
2492 if (n == null) return null; | 2830 if (n == null) return null; |
2493 throw new core.ArgumentError("Invalid boolean: $n"); | 2831 throw new core.ArgumentError("Invalid boolean: $n"); |
2494 } | 2832 } |
| 2833 |
2495 if (query.length > 0) { | 2834 if (query.length > 0) { |
2496 for (var part in query.split("&")) { | 2835 for (var part in query.split("&")) { |
2497 var keyvalue = part.split("="); | 2836 var keyvalue = part.split("="); |
2498 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2837 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2838 core.Uri.decodeQueryComponent(keyvalue[1])); |
2499 } | 2839 } |
2500 } | 2840 } |
2501 unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_lang
uageCode)); | 2841 unittest.expect( |
2502 | 2842 queryMap["languageCode"].first, unittest.equals(arg_languageCode)); |
2503 | 2843 |
2504 var h = { | 2844 var h = { |
2505 "content-type" : "application/json; charset=utf-8", | 2845 "content-type": "application/json; charset=utf-8", |
2506 }; | 2846 }; |
2507 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListRootCateg
oriesResponse()); | 2847 var resp = convert.JSON |
| 2848 .encode(buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse()); |
2508 return new async.Future.value(stringResponse(200, h, resp)); | 2849 return new async.Future.value(stringResponse(200, h, resp)); |
2509 }), true); | 2850 }), true); |
2510 res.list(languageCode: arg_languageCode).then(unittest.expectAsync1(((api.
GooglePrivacyDlpV2beta1ListRootCategoriesResponse response) { | 2851 res.list(languageCode: arg_languageCode).then(unittest.expectAsync1( |
| 2852 ((api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse response) { |
2511 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(response); | 2853 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(response); |
2512 }))); | 2854 }))); |
2513 }); | 2855 }); |
2514 | |
2515 }); | 2856 }); |
2516 | 2857 |
2517 | |
2518 unittest.group("resource-RootCategoriesInfoTypesResourceApi", () { | 2858 unittest.group("resource-RootCategoriesInfoTypesResourceApi", () { |
2519 unittest.test("method--list", () { | 2859 unittest.test("method--list", () { |
2520 | |
2521 var mock = new HttpServerMock(); | 2860 var mock = new HttpServerMock(); |
2522 api.RootCategoriesInfoTypesResourceApi res = new api.DlpApi(mock).rootCate
gories.infoTypes; | 2861 api.RootCategoriesInfoTypesResourceApi res = |
| 2862 new api.DlpApi(mock).rootCategories.infoTypes; |
2523 var arg_category = "foo"; | 2863 var arg_category = "foo"; |
2524 var arg_languageCode = "foo"; | 2864 var arg_languageCode = "foo"; |
2525 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2865 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2526 var path = (req.url).path; | 2866 var path = (req.url).path; |
2527 var pathOffset = 0; | 2867 var pathOffset = 0; |
2528 var index; | 2868 var index; |
2529 var subPart; | 2869 var subPart; |
2530 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2870 unittest.expect( |
| 2871 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2531 pathOffset += 1; | 2872 pathOffset += 1; |
2532 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v2beta1/rootCategories/")); | 2873 unittest.expect(path.substring(pathOffset, pathOffset + 23), |
| 2874 unittest.equals("v2beta1/rootCategories/")); |
2533 pathOffset += 23; | 2875 pathOffset += 23; |
2534 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2876 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2535 | 2877 |
2536 var query = (req.url).query; | 2878 var query = (req.url).query; |
2537 var queryOffset = 0; | 2879 var queryOffset = 0; |
2538 var queryMap = {}; | 2880 var queryMap = {}; |
2539 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2881 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2540 parseBool(n) { | 2882 parseBool(n) { |
2541 if (n == "true") return true; | 2883 if (n == "true") return true; |
2542 if (n == "false") return false; | 2884 if (n == "false") return false; |
2543 if (n == null) return null; | 2885 if (n == null) return null; |
2544 throw new core.ArgumentError("Invalid boolean: $n"); | 2886 throw new core.ArgumentError("Invalid boolean: $n"); |
2545 } | 2887 } |
| 2888 |
2546 if (query.length > 0) { | 2889 if (query.length > 0) { |
2547 for (var part in query.split("&")) { | 2890 for (var part in query.split("&")) { |
2548 var keyvalue = part.split("="); | 2891 var keyvalue = part.split("="); |
2549 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2892 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2893 core.Uri.decodeQueryComponent(keyvalue[1])); |
2550 } | 2894 } |
2551 } | 2895 } |
2552 unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_lang
uageCode)); | 2896 unittest.expect( |
2553 | 2897 queryMap["languageCode"].first, unittest.equals(arg_languageCode)); |
2554 | 2898 |
2555 var h = { | 2899 var h = { |
2556 "content-type" : "application/json; charset=utf-8", | 2900 "content-type": "application/json; charset=utf-8", |
2557 }; | 2901 }; |
2558 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInfoTypes
Response()); | 2902 var resp = convert.JSON |
| 2903 .encode(buildGooglePrivacyDlpV2beta1ListInfoTypesResponse()); |
2559 return new async.Future.value(stringResponse(200, h, resp)); | 2904 return new async.Future.value(stringResponse(200, h, resp)); |
2560 }), true); | 2905 }), true); |
2561 res.list(arg_category, languageCode: arg_languageCode).then(unittest.expec
tAsync1(((api.GooglePrivacyDlpV2beta1ListInfoTypesResponse response) { | 2906 res.list(arg_category, languageCode: arg_languageCode).then(unittest |
| 2907 .expectAsync1( |
| 2908 ((api.GooglePrivacyDlpV2beta1ListInfoTypesResponse response) { |
2562 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(response); | 2909 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(response); |
2563 }))); | 2910 }))); |
2564 }); | 2911 }); |
2565 | |
2566 }); | 2912 }); |
2567 | |
2568 | |
2569 } | 2913 } |
2570 | |
OLD | NEW |