1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
|
unit googlewebmasters;
{$MODE objfpc}
{$H+}
interface
uses sysutils, classes, googleservice, restbase, googlebase;
type
//Top-level schema types
TApiDataRow = Class;
TApiDimensionFilter = Class;
TApiDimensionFilterGroup = Class;
TSearchAnalyticsQueryRequest = Class;
TSearchAnalyticsQueryResponse = Class;
TSitemapsListResponse = Class;
TSitesListResponse = Class;
TUrlCrawlErrorCount = Class;
TUrlCrawlErrorCountsPerType = Class;
TUrlCrawlErrorsCountsQueryResponse = Class;
TUrlCrawlErrorsSample = Class;
TUrlCrawlErrorsSamplesListResponse = Class;
TUrlSampleDetails = Class;
TWmxSite = Class;
TWmxSitemap = Class;
TWmxSitemapContent = Class;
TApiDataRowArray = Array of TApiDataRow;
TApiDimensionFilterArray = Array of TApiDimensionFilter;
TApiDimensionFilterGroupArray = Array of TApiDimensionFilterGroup;
TSearchAnalyticsQueryRequestArray = Array of TSearchAnalyticsQueryRequest;
TSearchAnalyticsQueryResponseArray = Array of TSearchAnalyticsQueryResponse;
TSitemapsListResponseArray = Array of TSitemapsListResponse;
TSitesListResponseArray = Array of TSitesListResponse;
TUrlCrawlErrorCountArray = Array of TUrlCrawlErrorCount;
TUrlCrawlErrorCountsPerTypeArray = Array of TUrlCrawlErrorCountsPerType;
TUrlCrawlErrorsCountsQueryResponseArray = Array of TUrlCrawlErrorsCountsQueryResponse;
TUrlCrawlErrorsSampleArray = Array of TUrlCrawlErrorsSample;
TUrlCrawlErrorsSamplesListResponseArray = Array of TUrlCrawlErrorsSamplesListResponse;
TUrlSampleDetailsArray = Array of TUrlSampleDetails;
TWmxSiteArray = Array of TWmxSite;
TWmxSitemapArray = Array of TWmxSitemap;
TWmxSitemapContentArray = Array of TWmxSitemapContent;
//Anonymous types, using auto-generated names
TApiDimensionFilterGroupTypefiltersArray = Array of TApiDimensionFilter;
TSearchAnalyticsQueryRequestTypedimensionFilterGroupsArray = Array of TApiDimensionFilterGroup;
TSearchAnalyticsQueryResponseTyperowsArray = Array of TApiDataRow;
TSitemapsListResponseTypesitemapArray = Array of TWmxSitemap;
TSitesListResponseTypesiteEntryArray = Array of TWmxSite;
TUrlCrawlErrorCountsPerTypeTypeentriesArray = Array of TUrlCrawlErrorCount;
TUrlCrawlErrorsCountsQueryResponseTypecountPerTypesArray = Array of TUrlCrawlErrorCountsPerType;
TUrlCrawlErrorsSamplesListResponseTypeurlCrawlErrorSampleArray = Array of TUrlCrawlErrorsSample;
TWmxSitemapTypecontentsArray = Array of TWmxSitemapContent;
{ --------------------------------------------------------------------
TApiDataRow
--------------------------------------------------------------------}
TApiDataRow = Class(TGoogleBaseObject)
Private
Fclicks : double;
Fctr : double;
Fimpressions : double;
Fkeys : TStringArray;
Fposition : double;
Protected
//Property setters
Procedure Setclicks(AIndex : Integer; const AValue : double); virtual;
Procedure Setctr(AIndex : Integer; const AValue : double); virtual;
Procedure Setimpressions(AIndex : Integer; const AValue : double); virtual;
Procedure Setkeys(AIndex : Integer; const AValue : TStringArray); virtual;
Procedure Setposition(AIndex : Integer; const AValue : double); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property clicks : double Index 0 Read Fclicks Write Setclicks;
Property ctr : double Index 8 Read Fctr Write Setctr;
Property impressions : double Index 16 Read Fimpressions Write Setimpressions;
Property keys : TStringArray Index 24 Read Fkeys Write Setkeys;
Property position : double Index 32 Read Fposition Write Setposition;
end;
TApiDataRowClass = Class of TApiDataRow;
{ --------------------------------------------------------------------
TApiDimensionFilter
--------------------------------------------------------------------}
TApiDimensionFilter = Class(TGoogleBaseObject)
Private
Fdimension : String;
Fexpression : String;
F_operator : String;
Protected
Class Function ExportPropertyName(Const AName : String) : string; override;
//Property setters
Procedure Setdimension(AIndex : Integer; const AValue : String); virtual;
Procedure Setexpression(AIndex : Integer; const AValue : String); virtual;
Procedure Set_operator(AIndex : Integer; const AValue : String); virtual;
Public
Published
Property dimension : String Index 0 Read Fdimension Write Setdimension;
Property expression : String Index 8 Read Fexpression Write Setexpression;
Property _operator : String Index 16 Read F_operator Write Set_operator;
end;
TApiDimensionFilterClass = Class of TApiDimensionFilter;
{ --------------------------------------------------------------------
TApiDimensionFilterGroup
--------------------------------------------------------------------}
TApiDimensionFilterGroup = Class(TGoogleBaseObject)
Private
Ffilters : TApiDimensionFilterGroupTypefiltersArray;
FgroupType : String;
Protected
//Property setters
Procedure Setfilters(AIndex : Integer; const AValue : TApiDimensionFilterGroupTypefiltersArray); virtual;
Procedure SetgroupType(AIndex : Integer; const AValue : String); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property filters : TApiDimensionFilterGroupTypefiltersArray Index 0 Read Ffilters Write Setfilters;
Property groupType : String Index 8 Read FgroupType Write SetgroupType;
end;
TApiDimensionFilterGroupClass = Class of TApiDimensionFilterGroup;
{ --------------------------------------------------------------------
TSearchAnalyticsQueryRequest
--------------------------------------------------------------------}
TSearchAnalyticsQueryRequest = Class(TGoogleBaseObject)
Private
FaggregationType : String;
FdimensionFilterGroups : TSearchAnalyticsQueryRequestTypedimensionFilterGroupsArray;
Fdimensions : TStringArray;
FendDate : String;
FrowLimit : integer;
FsearchType : String;
FstartDate : String;
FstartRow : integer;
Protected
//Property setters
Procedure SetaggregationType(AIndex : Integer; const AValue : String); virtual;
Procedure SetdimensionFilterGroups(AIndex : Integer; const AValue : TSearchAnalyticsQueryRequestTypedimensionFilterGroupsArray); virtual;
Procedure Setdimensions(AIndex : Integer; const AValue : TStringArray); virtual;
Procedure SetendDate(AIndex : Integer; const AValue : String); virtual;
Procedure SetrowLimit(AIndex : Integer; const AValue : integer); virtual;
Procedure SetsearchType(AIndex : Integer; const AValue : String); virtual;
Procedure SetstartDate(AIndex : Integer; const AValue : String); virtual;
Procedure SetstartRow(AIndex : Integer; const AValue : integer); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property aggregationType : String Index 0 Read FaggregationType Write SetaggregationType;
Property dimensionFilterGroups : TSearchAnalyticsQueryRequestTypedimensionFilterGroupsArray Index 8 Read FdimensionFilterGroups Write SetdimensionFilterGroups;
Property dimensions : TStringArray Index 16 Read Fdimensions Write Setdimensions;
Property endDate : String Index 24 Read FendDate Write SetendDate;
Property rowLimit : integer Index 32 Read FrowLimit Write SetrowLimit;
Property searchType : String Index 40 Read FsearchType Write SetsearchType;
Property startDate : String Index 48 Read FstartDate Write SetstartDate;
Property startRow : integer Index 56 Read FstartRow Write SetstartRow;
end;
TSearchAnalyticsQueryRequestClass = Class of TSearchAnalyticsQueryRequest;
{ --------------------------------------------------------------------
TSearchAnalyticsQueryResponse
--------------------------------------------------------------------}
TSearchAnalyticsQueryResponse = Class(TGoogleBaseObject)
Private
FresponseAggregationType : String;
Frows : TSearchAnalyticsQueryResponseTyperowsArray;
Protected
//Property setters
Procedure SetresponseAggregationType(AIndex : Integer; const AValue : String); virtual;
Procedure Setrows(AIndex : Integer; const AValue : TSearchAnalyticsQueryResponseTyperowsArray); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property responseAggregationType : String Index 0 Read FresponseAggregationType Write SetresponseAggregationType;
Property rows : TSearchAnalyticsQueryResponseTyperowsArray Index 8 Read Frows Write Setrows;
end;
TSearchAnalyticsQueryResponseClass = Class of TSearchAnalyticsQueryResponse;
{ --------------------------------------------------------------------
TSitemapsListResponse
--------------------------------------------------------------------}
TSitemapsListResponse = Class(TGoogleBaseObject)
Private
Fsitemap : TSitemapsListResponseTypesitemapArray;
Protected
//Property setters
Procedure Setsitemap(AIndex : Integer; const AValue : TSitemapsListResponseTypesitemapArray); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property sitemap : TSitemapsListResponseTypesitemapArray Index 0 Read Fsitemap Write Setsitemap;
end;
TSitemapsListResponseClass = Class of TSitemapsListResponse;
{ --------------------------------------------------------------------
TSitesListResponse
--------------------------------------------------------------------}
TSitesListResponse = Class(TGoogleBaseObject)
Private
FsiteEntry : TSitesListResponseTypesiteEntryArray;
Protected
//Property setters
Procedure SetsiteEntry(AIndex : Integer; const AValue : TSitesListResponseTypesiteEntryArray); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property siteEntry : TSitesListResponseTypesiteEntryArray Index 0 Read FsiteEntry Write SetsiteEntry;
end;
TSitesListResponseClass = Class of TSitesListResponse;
{ --------------------------------------------------------------------
TUrlCrawlErrorCount
--------------------------------------------------------------------}
TUrlCrawlErrorCount = Class(TGoogleBaseObject)
Private
Fcount : String;
Ftimestamp : TDatetime;
Protected
//Property setters
Procedure Setcount(AIndex : Integer; const AValue : String); virtual;
Procedure Settimestamp(AIndex : Integer; const AValue : TDatetime); virtual;
Public
Published
Property count : String Index 0 Read Fcount Write Setcount;
Property timestamp : TDatetime Index 8 Read Ftimestamp Write Settimestamp;
end;
TUrlCrawlErrorCountClass = Class of TUrlCrawlErrorCount;
{ --------------------------------------------------------------------
TUrlCrawlErrorCountsPerType
--------------------------------------------------------------------}
TUrlCrawlErrorCountsPerType = Class(TGoogleBaseObject)
Private
Fcategory : String;
Fentries : TUrlCrawlErrorCountsPerTypeTypeentriesArray;
Fplatform : String;
Protected
//Property setters
Procedure Setcategory(AIndex : Integer; const AValue : String); virtual;
Procedure Setentries(AIndex : Integer; const AValue : TUrlCrawlErrorCountsPerTypeTypeentriesArray); virtual;
Procedure Setplatform(AIndex : Integer; const AValue : String); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property category : String Index 0 Read Fcategory Write Setcategory;
Property entries : TUrlCrawlErrorCountsPerTypeTypeentriesArray Index 8 Read Fentries Write Setentries;
Property platform : String Index 16 Read Fplatform Write Setplatform;
end;
TUrlCrawlErrorCountsPerTypeClass = Class of TUrlCrawlErrorCountsPerType;
{ --------------------------------------------------------------------
TUrlCrawlErrorsCountsQueryResponse
--------------------------------------------------------------------}
TUrlCrawlErrorsCountsQueryResponse = Class(TGoogleBaseObject)
Private
FcountPerTypes : TUrlCrawlErrorsCountsQueryResponseTypecountPerTypesArray;
Protected
//Property setters
Procedure SetcountPerTypes(AIndex : Integer; const AValue : TUrlCrawlErrorsCountsQueryResponseTypecountPerTypesArray); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property countPerTypes : TUrlCrawlErrorsCountsQueryResponseTypecountPerTypesArray Index 0 Read FcountPerTypes Write SetcountPerTypes;
end;
TUrlCrawlErrorsCountsQueryResponseClass = Class of TUrlCrawlErrorsCountsQueryResponse;
{ --------------------------------------------------------------------
TUrlCrawlErrorsSample
--------------------------------------------------------------------}
TUrlCrawlErrorsSample = Class(TGoogleBaseObject)
Private
Ffirst_detected : TDatetime;
Flast_crawled : TDatetime;
FpageUrl : String;
FresponseCode : integer;
FurlDetails : TUrlSampleDetails;
Protected
//Property setters
Procedure Setfirst_detected(AIndex : Integer; const AValue : TDatetime); virtual;
Procedure Setlast_crawled(AIndex : Integer; const AValue : TDatetime); virtual;
Procedure SetpageUrl(AIndex : Integer; const AValue : String); virtual;
Procedure SetresponseCode(AIndex : Integer; const AValue : integer); virtual;
Procedure SeturlDetails(AIndex : Integer; const AValue : TUrlSampleDetails); virtual;
Public
Published
Property first_detected : TDatetime Index 0 Read Ffirst_detected Write Setfirst_detected;
Property last_crawled : TDatetime Index 8 Read Flast_crawled Write Setlast_crawled;
Property pageUrl : String Index 16 Read FpageUrl Write SetpageUrl;
Property responseCode : integer Index 24 Read FresponseCode Write SetresponseCode;
Property urlDetails : TUrlSampleDetails Index 32 Read FurlDetails Write SeturlDetails;
end;
TUrlCrawlErrorsSampleClass = Class of TUrlCrawlErrorsSample;
{ --------------------------------------------------------------------
TUrlCrawlErrorsSamplesListResponse
--------------------------------------------------------------------}
TUrlCrawlErrorsSamplesListResponse = Class(TGoogleBaseObject)
Private
FurlCrawlErrorSample : TUrlCrawlErrorsSamplesListResponseTypeurlCrawlErrorSampleArray;
Protected
//Property setters
Procedure SeturlCrawlErrorSample(AIndex : Integer; const AValue : TUrlCrawlErrorsSamplesListResponseTypeurlCrawlErrorSampleArray); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property urlCrawlErrorSample : TUrlCrawlErrorsSamplesListResponseTypeurlCrawlErrorSampleArray Index 0 Read FurlCrawlErrorSample Write SeturlCrawlErrorSample;
end;
TUrlCrawlErrorsSamplesListResponseClass = Class of TUrlCrawlErrorsSamplesListResponse;
{ --------------------------------------------------------------------
TUrlSampleDetails
--------------------------------------------------------------------}
TUrlSampleDetails = Class(TGoogleBaseObject)
Private
FcontainingSitemaps : TStringArray;
FlinkedFromUrls : TStringArray;
Protected
//Property setters
Procedure SetcontainingSitemaps(AIndex : Integer; const AValue : TStringArray); virtual;
Procedure SetlinkedFromUrls(AIndex : Integer; const AValue : TStringArray); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property containingSitemaps : TStringArray Index 0 Read FcontainingSitemaps Write SetcontainingSitemaps;
Property linkedFromUrls : TStringArray Index 8 Read FlinkedFromUrls Write SetlinkedFromUrls;
end;
TUrlSampleDetailsClass = Class of TUrlSampleDetails;
{ --------------------------------------------------------------------
TWmxSite
--------------------------------------------------------------------}
TWmxSite = Class(TGoogleBaseObject)
Private
FpermissionLevel : String;
FsiteUrl : String;
Protected
//Property setters
Procedure SetpermissionLevel(AIndex : Integer; const AValue : String); virtual;
Procedure SetsiteUrl(AIndex : Integer; const AValue : String); virtual;
Public
Published
Property permissionLevel : String Index 0 Read FpermissionLevel Write SetpermissionLevel;
Property siteUrl : String Index 8 Read FsiteUrl Write SetsiteUrl;
end;
TWmxSiteClass = Class of TWmxSite;
{ --------------------------------------------------------------------
TWmxSitemap
--------------------------------------------------------------------}
TWmxSitemap = Class(TGoogleBaseObject)
Private
Fcontents : TWmxSitemapTypecontentsArray;
Ferrors : String;
FisPending : boolean;
FisSitemapsIndex : boolean;
FlastDownloaded : TDatetime;
FlastSubmitted : TDatetime;
Fpath : String;
F_type : String;
Fwarnings : String;
Protected
Class Function ExportPropertyName(Const AName : String) : string; override;
//Property setters
Procedure Setcontents(AIndex : Integer; const AValue : TWmxSitemapTypecontentsArray); virtual;
Procedure Seterrors(AIndex : Integer; const AValue : String); virtual;
Procedure SetisPending(AIndex : Integer; const AValue : boolean); virtual;
Procedure SetisSitemapsIndex(AIndex : Integer; const AValue : boolean); virtual;
Procedure SetlastDownloaded(AIndex : Integer; const AValue : TDatetime); virtual;
Procedure SetlastSubmitted(AIndex : Integer; const AValue : TDatetime); virtual;
Procedure Setpath(AIndex : Integer; const AValue : String); virtual;
Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
Procedure Setwarnings(AIndex : Integer; const AValue : String); virtual;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
{$ENDIF VER2_6}
Public
Published
Property contents : TWmxSitemapTypecontentsArray Index 0 Read Fcontents Write Setcontents;
Property errors : String Index 8 Read Ferrors Write Seterrors;
Property isPending : boolean Index 16 Read FisPending Write SetisPending;
Property isSitemapsIndex : boolean Index 24 Read FisSitemapsIndex Write SetisSitemapsIndex;
Property lastDownloaded : TDatetime Index 32 Read FlastDownloaded Write SetlastDownloaded;
Property lastSubmitted : TDatetime Index 40 Read FlastSubmitted Write SetlastSubmitted;
Property path : String Index 48 Read Fpath Write Setpath;
Property _type : String Index 56 Read F_type Write Set_type;
Property warnings : String Index 64 Read Fwarnings Write Setwarnings;
end;
TWmxSitemapClass = Class of TWmxSitemap;
{ --------------------------------------------------------------------
TWmxSitemapContent
--------------------------------------------------------------------}
TWmxSitemapContent = Class(TGoogleBaseObject)
Private
Findexed : String;
Fsubmitted : String;
F_type : String;
Protected
Class Function ExportPropertyName(Const AName : String) : string; override;
//Property setters
Procedure Setindexed(AIndex : Integer; const AValue : String); virtual;
Procedure Setsubmitted(AIndex : Integer; const AValue : String); virtual;
Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
Public
Published
Property indexed : String Index 0 Read Findexed Write Setindexed;
Property submitted : String Index 8 Read Fsubmitted Write Setsubmitted;
Property _type : String Index 16 Read F_type Write Set_type;
end;
TWmxSitemapContentClass = Class of TWmxSitemapContent;
{ --------------------------------------------------------------------
TSearchanalyticsResource
--------------------------------------------------------------------}
TSearchanalyticsResource = Class(TGoogleResource)
Public
Class Function ResourceName : String; override;
Class Function DefaultAPI : TGoogleAPIClass; override;
Function Query(siteUrl: string; aSearchAnalyticsQueryRequest : TSearchAnalyticsQueryRequest) : TSearchAnalyticsQueryResponse;
end;
{ --------------------------------------------------------------------
TSitemapsResource
--------------------------------------------------------------------}
//Optional query Options for TSitemapsResource, method List
TSitemapsListOptions = Record
sitemapIndex : String;
end;
TSitemapsResource = Class(TGoogleResource)
Public
Class Function ResourceName : String; override;
Class Function DefaultAPI : TGoogleAPIClass; override;
Procedure Delete(feedpath: string; siteUrl: string);
Function Get(feedpath: string; siteUrl: string) : TWmxSitemap;
Function List(siteUrl: string; AQuery : string = '') : TSitemapsListResponse;
Function List(siteUrl: string; AQuery : TSitemapslistOptions) : TSitemapsListResponse;
Procedure Submit(feedpath: string; siteUrl: string);
end;
{ --------------------------------------------------------------------
TSitesResource
--------------------------------------------------------------------}
TSitesResource = Class(TGoogleResource)
Public
Class Function ResourceName : String; override;
Class Function DefaultAPI : TGoogleAPIClass; override;
Procedure Add(siteUrl: string);
Procedure Delete(siteUrl: string);
Function Get(siteUrl: string) : TWmxSite;
Function List : TSitesListResponse;
end;
{ --------------------------------------------------------------------
TUrlcrawlerrorscountsResource
--------------------------------------------------------------------}
//Optional query Options for TUrlcrawlerrorscountsResource, method Query
TUrlcrawlerrorscountsQueryOptions = Record
category : String;
latestCountsOnly : boolean;
platform : String;
end;
TUrlcrawlerrorscountsResource = Class(TGoogleResource)
Public
Class Function ResourceName : String; override;
Class Function DefaultAPI : TGoogleAPIClass; override;
Function Query(siteUrl: string; AQuery : string = '') : TUrlCrawlErrorsCountsQueryResponse;
Function Query(siteUrl: string; AQuery : TUrlcrawlerrorscountsqueryOptions) : TUrlCrawlErrorsCountsQueryResponse;
end;
{ --------------------------------------------------------------------
TUrlcrawlerrorssamplesResource
--------------------------------------------------------------------}
//Optional query Options for TUrlcrawlerrorssamplesResource, method Get
TUrlcrawlerrorssamplesGetOptions = Record
category : String;
platform : String;
end;
//Optional query Options for TUrlcrawlerrorssamplesResource, method List
TUrlcrawlerrorssamplesListOptions = Record
category : String;
platform : String;
end;
//Optional query Options for TUrlcrawlerrorssamplesResource, method MarkAsFixed
TUrlcrawlerrorssamplesMarkAsFixedOptions = Record
category : String;
platform : String;
end;
TUrlcrawlerrorssamplesResource = Class(TGoogleResource)
Public
Class Function ResourceName : String; override;
Class Function DefaultAPI : TGoogleAPIClass; override;
Function Get(siteUrl: string; url: string; AQuery : string = '') : TUrlCrawlErrorsSample;
Function Get(siteUrl: string; url: string; AQuery : TUrlcrawlerrorssamplesgetOptions) : TUrlCrawlErrorsSample;
Function List(siteUrl: string; AQuery : string = '') : TUrlCrawlErrorsSamplesListResponse;
Function List(siteUrl: string; AQuery : TUrlcrawlerrorssampleslistOptions) : TUrlCrawlErrorsSamplesListResponse;
Procedure MarkAsFixed(siteUrl: string; url: string; AQuery : string = '');
Procedure MarkAsFixed(siteUrl: string; url: string; AQuery : TUrlcrawlerrorssamplesmarkAsFixedOptions);
end;
{ --------------------------------------------------------------------
TWebmastersAPI
--------------------------------------------------------------------}
TWebmastersAPI = Class(TGoogleAPI)
Private
FSearchanalyticsInstance : TSearchanalyticsResource;
FSitemapsInstance : TSitemapsResource;
FSitesInstance : TSitesResource;
FUrlcrawlerrorscountsInstance : TUrlcrawlerrorscountsResource;
FUrlcrawlerrorssamplesInstance : TUrlcrawlerrorssamplesResource;
Function GetSearchanalyticsInstance : TSearchanalyticsResource;virtual;
Function GetSitemapsInstance : TSitemapsResource;virtual;
Function GetSitesInstance : TSitesResource;virtual;
Function GetUrlcrawlerrorscountsInstance : TUrlcrawlerrorscountsResource;virtual;
Function GetUrlcrawlerrorssamplesInstance : TUrlcrawlerrorssamplesResource;virtual;
Public
//Override class functions with API info
Class Function APIName : String; override;
Class Function APIVersion : String; override;
Class Function APIRevision : String; override;
Class Function APIID : String; override;
Class Function APITitle : String; override;
Class Function APIDescription : String; override;
Class Function APIOwnerDomain : String; override;
Class Function APIOwnerName : String; override;
Class Function APIIcon16 : String; override;
Class Function APIIcon32 : String; override;
Class Function APIdocumentationLink : String; override;
Class Function APIrootUrl : string; override;
Class Function APIbasePath : string;override;
Class Function APIbaseURL : String;override;
Class Function APIProtocol : string;override;
Class Function APIservicePath : string;override;
Class Function APIbatchPath : String;override;
Class Function APIAuthScopes : TScopeInfoArray;override;
Class Function APINeedsAuth : Boolean;override;
Class Procedure RegisterAPIResources; override;
//Add create function for resources
Function CreateSearchanalyticsResource(AOwner : TComponent) : TSearchanalyticsResource;virtual;overload;
Function CreateSearchanalyticsResource : TSearchanalyticsResource;virtual;overload;
Function CreateSitemapsResource(AOwner : TComponent) : TSitemapsResource;virtual;overload;
Function CreateSitemapsResource : TSitemapsResource;virtual;overload;
Function CreateSitesResource(AOwner : TComponent) : TSitesResource;virtual;overload;
Function CreateSitesResource : TSitesResource;virtual;overload;
Function CreateUrlcrawlerrorscountsResource(AOwner : TComponent) : TUrlcrawlerrorscountsResource;virtual;overload;
Function CreateUrlcrawlerrorscountsResource : TUrlcrawlerrorscountsResource;virtual;overload;
Function CreateUrlcrawlerrorssamplesResource(AOwner : TComponent) : TUrlcrawlerrorssamplesResource;virtual;overload;
Function CreateUrlcrawlerrorssamplesResource : TUrlcrawlerrorssamplesResource;virtual;overload;
//Add default on-demand instances for resources
Property SearchanalyticsResource : TSearchanalyticsResource Read GetSearchanalyticsInstance;
Property SitemapsResource : TSitemapsResource Read GetSitemapsInstance;
Property SitesResource : TSitesResource Read GetSitesInstance;
Property UrlcrawlerrorscountsResource : TUrlcrawlerrorscountsResource Read GetUrlcrawlerrorscountsInstance;
Property UrlcrawlerrorssamplesResource : TUrlcrawlerrorssamplesResource Read GetUrlcrawlerrorssamplesInstance;
end;
implementation
{ --------------------------------------------------------------------
TApiDataRow
--------------------------------------------------------------------}
Procedure TApiDataRow.Setclicks(AIndex : Integer; const AValue : double);
begin
If (Fclicks=AValue) then exit;
Fclicks:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TApiDataRow.Setctr(AIndex : Integer; const AValue : double);
begin
If (Fctr=AValue) then exit;
Fctr:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TApiDataRow.Setimpressions(AIndex : Integer; const AValue : double);
begin
If (Fimpressions=AValue) then exit;
Fimpressions:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TApiDataRow.Setkeys(AIndex : Integer; const AValue : TStringArray);
begin
If (Fkeys=AValue) then exit;
Fkeys:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TApiDataRow.Setposition(AIndex : Integer; const AValue : double);
begin
If (Fposition=AValue) then exit;
Fposition:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TApiDataRow.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'keys' : SetLength(Fkeys,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TApiDimensionFilter
--------------------------------------------------------------------}
Procedure TApiDimensionFilter.Setdimension(AIndex : Integer; const AValue : String);
begin
If (Fdimension=AValue) then exit;
Fdimension:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TApiDimensionFilter.Setexpression(AIndex : Integer; const AValue : String);
begin
If (Fexpression=AValue) then exit;
Fexpression:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TApiDimensionFilter.Set_operator(AIndex : Integer; const AValue : String);
begin
If (F_operator=AValue) then exit;
F_operator:=AValue;
MarkPropertyChanged(AIndex);
end;
Class Function TApiDimensionFilter.ExportPropertyName(Const AName : String) :String;
begin
Case AName of
'_operator' : Result:='operator';
else
Result:=Inherited ExportPropertyName(AName);
end;
end;
{ --------------------------------------------------------------------
TApiDimensionFilterGroup
--------------------------------------------------------------------}
Procedure TApiDimensionFilterGroup.Setfilters(AIndex : Integer; const AValue : TApiDimensionFilterGroupTypefiltersArray);
begin
If (Ffilters=AValue) then exit;
Ffilters:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TApiDimensionFilterGroup.SetgroupType(AIndex : Integer; const AValue : String);
begin
If (FgroupType=AValue) then exit;
FgroupType:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TApiDimensionFilterGroup.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'filters' : SetLength(Ffilters,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TSearchAnalyticsQueryRequest
--------------------------------------------------------------------}
Procedure TSearchAnalyticsQueryRequest.SetaggregationType(AIndex : Integer; const AValue : String);
begin
If (FaggregationType=AValue) then exit;
FaggregationType:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryRequest.SetdimensionFilterGroups(AIndex : Integer; const AValue : TSearchAnalyticsQueryRequestTypedimensionFilterGroupsArray);
begin
If (FdimensionFilterGroups=AValue) then exit;
FdimensionFilterGroups:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryRequest.Setdimensions(AIndex : Integer; const AValue : TStringArray);
begin
If (Fdimensions=AValue) then exit;
Fdimensions:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryRequest.SetendDate(AIndex : Integer; const AValue : String);
begin
If (FendDate=AValue) then exit;
FendDate:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryRequest.SetrowLimit(AIndex : Integer; const AValue : integer);
begin
If (FrowLimit=AValue) then exit;
FrowLimit:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryRequest.SetsearchType(AIndex : Integer; const AValue : String);
begin
If (FsearchType=AValue) then exit;
FsearchType:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryRequest.SetstartDate(AIndex : Integer; const AValue : String);
begin
If (FstartDate=AValue) then exit;
FstartDate:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryRequest.SetstartRow(AIndex : Integer; const AValue : integer);
begin
If (FstartRow=AValue) then exit;
FstartRow:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TSearchAnalyticsQueryRequest.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'dimensionfiltergroups' : SetLength(FdimensionFilterGroups,ALength);
'dimensions' : SetLength(Fdimensions,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TSearchAnalyticsQueryResponse
--------------------------------------------------------------------}
Procedure TSearchAnalyticsQueryResponse.SetresponseAggregationType(AIndex : Integer; const AValue : String);
begin
If (FresponseAggregationType=AValue) then exit;
FresponseAggregationType:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TSearchAnalyticsQueryResponse.Setrows(AIndex : Integer; const AValue : TSearchAnalyticsQueryResponseTyperowsArray);
begin
If (Frows=AValue) then exit;
Frows:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TSearchAnalyticsQueryResponse.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'rows' : SetLength(Frows,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TSitemapsListResponse
--------------------------------------------------------------------}
Procedure TSitemapsListResponse.Setsitemap(AIndex : Integer; const AValue : TSitemapsListResponseTypesitemapArray);
begin
If (Fsitemap=AValue) then exit;
Fsitemap:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TSitemapsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'sitemap' : SetLength(Fsitemap,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TSitesListResponse
--------------------------------------------------------------------}
Procedure TSitesListResponse.SetsiteEntry(AIndex : Integer; const AValue : TSitesListResponseTypesiteEntryArray);
begin
If (FsiteEntry=AValue) then exit;
FsiteEntry:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TSitesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'siteentry' : SetLength(FsiteEntry,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TUrlCrawlErrorCount
--------------------------------------------------------------------}
Procedure TUrlCrawlErrorCount.Setcount(AIndex : Integer; const AValue : String);
begin
If (Fcount=AValue) then exit;
Fcount:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlCrawlErrorCount.Settimestamp(AIndex : Integer; const AValue : TDatetime);
begin
If (Ftimestamp=AValue) then exit;
Ftimestamp:=AValue;
MarkPropertyChanged(AIndex);
end;
{ --------------------------------------------------------------------
TUrlCrawlErrorCountsPerType
--------------------------------------------------------------------}
Procedure TUrlCrawlErrorCountsPerType.Setcategory(AIndex : Integer; const AValue : String);
begin
If (Fcategory=AValue) then exit;
Fcategory:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlCrawlErrorCountsPerType.Setentries(AIndex : Integer; const AValue : TUrlCrawlErrorCountsPerTypeTypeentriesArray);
begin
If (Fentries=AValue) then exit;
Fentries:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlCrawlErrorCountsPerType.Setplatform(AIndex : Integer; const AValue : String);
begin
If (Fplatform=AValue) then exit;
Fplatform:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TUrlCrawlErrorCountsPerType.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'entries' : SetLength(Fentries,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TUrlCrawlErrorsCountsQueryResponse
--------------------------------------------------------------------}
Procedure TUrlCrawlErrorsCountsQueryResponse.SetcountPerTypes(AIndex : Integer; const AValue : TUrlCrawlErrorsCountsQueryResponseTypecountPerTypesArray);
begin
If (FcountPerTypes=AValue) then exit;
FcountPerTypes:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TUrlCrawlErrorsCountsQueryResponse.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'countpertypes' : SetLength(FcountPerTypes,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TUrlCrawlErrorsSample
--------------------------------------------------------------------}
Procedure TUrlCrawlErrorsSample.Setfirst_detected(AIndex : Integer; const AValue : TDatetime);
begin
If (Ffirst_detected=AValue) then exit;
Ffirst_detected:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlCrawlErrorsSample.Setlast_crawled(AIndex : Integer; const AValue : TDatetime);
begin
If (Flast_crawled=AValue) then exit;
Flast_crawled:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlCrawlErrorsSample.SetpageUrl(AIndex : Integer; const AValue : String);
begin
If (FpageUrl=AValue) then exit;
FpageUrl:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlCrawlErrorsSample.SetresponseCode(AIndex : Integer; const AValue : integer);
begin
If (FresponseCode=AValue) then exit;
FresponseCode:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlCrawlErrorsSample.SeturlDetails(AIndex : Integer; const AValue : TUrlSampleDetails);
begin
If (FurlDetails=AValue) then exit;
FurlDetails:=AValue;
MarkPropertyChanged(AIndex);
end;
{ --------------------------------------------------------------------
TUrlCrawlErrorsSamplesListResponse
--------------------------------------------------------------------}
Procedure TUrlCrawlErrorsSamplesListResponse.SeturlCrawlErrorSample(AIndex : Integer; const AValue : TUrlCrawlErrorsSamplesListResponseTypeurlCrawlErrorSampleArray);
begin
If (FurlCrawlErrorSample=AValue) then exit;
FurlCrawlErrorSample:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TUrlCrawlErrorsSamplesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'urlcrawlerrorsample' : SetLength(FurlCrawlErrorSample,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TUrlSampleDetails
--------------------------------------------------------------------}
Procedure TUrlSampleDetails.SetcontainingSitemaps(AIndex : Integer; const AValue : TStringArray);
begin
If (FcontainingSitemaps=AValue) then exit;
FcontainingSitemaps:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TUrlSampleDetails.SetlinkedFromUrls(AIndex : Integer; const AValue : TStringArray);
begin
If (FlinkedFromUrls=AValue) then exit;
FlinkedFromUrls:=AValue;
MarkPropertyChanged(AIndex);
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TUrlSampleDetails.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'containingsitemaps' : SetLength(FcontainingSitemaps,ALength);
'linkedfromurls' : SetLength(FlinkedFromUrls,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TWmxSite
--------------------------------------------------------------------}
Procedure TWmxSite.SetpermissionLevel(AIndex : Integer; const AValue : String);
begin
If (FpermissionLevel=AValue) then exit;
FpermissionLevel:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSite.SetsiteUrl(AIndex : Integer; const AValue : String);
begin
If (FsiteUrl=AValue) then exit;
FsiteUrl:=AValue;
MarkPropertyChanged(AIndex);
end;
{ --------------------------------------------------------------------
TWmxSitemap
--------------------------------------------------------------------}
Procedure TWmxSitemap.Setcontents(AIndex : Integer; const AValue : TWmxSitemapTypecontentsArray);
begin
If (Fcontents=AValue) then exit;
Fcontents:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.Seterrors(AIndex : Integer; const AValue : String);
begin
If (Ferrors=AValue) then exit;
Ferrors:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.SetisPending(AIndex : Integer; const AValue : boolean);
begin
If (FisPending=AValue) then exit;
FisPending:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.SetisSitemapsIndex(AIndex : Integer; const AValue : boolean);
begin
If (FisSitemapsIndex=AValue) then exit;
FisSitemapsIndex:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.SetlastDownloaded(AIndex : Integer; const AValue : TDatetime);
begin
If (FlastDownloaded=AValue) then exit;
FlastDownloaded:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.SetlastSubmitted(AIndex : Integer; const AValue : TDatetime);
begin
If (FlastSubmitted=AValue) then exit;
FlastSubmitted:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.Setpath(AIndex : Integer; const AValue : String);
begin
If (Fpath=AValue) then exit;
Fpath:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.Set_type(AIndex : Integer; const AValue : String);
begin
If (F_type=AValue) then exit;
F_type:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemap.Setwarnings(AIndex : Integer; const AValue : String);
begin
If (Fwarnings=AValue) then exit;
Fwarnings:=AValue;
MarkPropertyChanged(AIndex);
end;
Class Function TWmxSitemap.ExportPropertyName(Const AName : String) :String;
begin
Case AName of
'_type' : Result:='type';
else
Result:=Inherited ExportPropertyName(AName);
end;
end;
//2.6.4. bug workaround
{$IFDEF VER2_6}
Procedure TWmxSitemap.SetArrayLength(Const AName : String; ALength : Longint);
begin
Case AName of
'contents' : SetLength(Fcontents,ALength);
else
Inherited SetArrayLength(AName,ALength);
end;
end;
{$ENDIF VER2_6}
{ --------------------------------------------------------------------
TWmxSitemapContent
--------------------------------------------------------------------}
Procedure TWmxSitemapContent.Setindexed(AIndex : Integer; const AValue : String);
begin
If (Findexed=AValue) then exit;
Findexed:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemapContent.Setsubmitted(AIndex : Integer; const AValue : String);
begin
If (Fsubmitted=AValue) then exit;
Fsubmitted:=AValue;
MarkPropertyChanged(AIndex);
end;
Procedure TWmxSitemapContent.Set_type(AIndex : Integer; const AValue : String);
begin
If (F_type=AValue) then exit;
F_type:=AValue;
MarkPropertyChanged(AIndex);
end;
Class Function TWmxSitemapContent.ExportPropertyName(Const AName : String) :String;
begin
Case AName of
'_type' : Result:='type';
else
Result:=Inherited ExportPropertyName(AName);
end;
end;
{ --------------------------------------------------------------------
TSearchanalyticsResource
--------------------------------------------------------------------}
Class Function TSearchanalyticsResource.ResourceName : String;
begin
Result:='searchanalytics';
end;
Class Function TSearchanalyticsResource.DefaultAPI : TGoogleAPIClass;
begin
Result:=TwebmastersAPI;
end;
Function TSearchanalyticsResource.Query(siteUrl: string; aSearchAnalyticsQueryRequest : TSearchAnalyticsQueryRequest) : TSearchAnalyticsQueryResponse;
Const
_HTTPMethod = 'POST';
_Path = 'sites/{siteUrl}/searchAnalytics/query';
_Methodid = 'webmasters.searchanalytics.query';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl]);
Result:=ServiceCall(_HTTPMethod,_P,'',aSearchAnalyticsQueryRequest,TSearchAnalyticsQueryResponse) as TSearchAnalyticsQueryResponse;
end;
{ --------------------------------------------------------------------
TSitemapsResource
--------------------------------------------------------------------}
Class Function TSitemapsResource.ResourceName : String;
begin
Result:='sitemaps';
end;
Class Function TSitemapsResource.DefaultAPI : TGoogleAPIClass;
begin
Result:=TwebmastersAPI;
end;
Procedure TSitemapsResource.Delete(feedpath: string; siteUrl: string);
Const
_HTTPMethod = 'DELETE';
_Path = 'sites/{siteUrl}/sitemaps/{feedpath}';
_Methodid = 'webmasters.sitemaps.delete';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['feedpath',feedpath,'siteUrl',siteUrl]);
ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
end;
Function TSitemapsResource.Get(feedpath: string; siteUrl: string) : TWmxSitemap;
Const
_HTTPMethod = 'GET';
_Path = 'sites/{siteUrl}/sitemaps/{feedpath}';
_Methodid = 'webmasters.sitemaps.get';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['feedpath',feedpath,'siteUrl',siteUrl]);
Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TWmxSitemap) as TWmxSitemap;
end;
Function TSitemapsResource.List(siteUrl: string; AQuery : string = '') : TSitemapsListResponse;
Const
_HTTPMethod = 'GET';
_Path = 'sites/{siteUrl}/sitemaps';
_Methodid = 'webmasters.sitemaps.list';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl]);
Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TSitemapsListResponse) as TSitemapsListResponse;
end;
Function TSitemapsResource.List(siteUrl: string; AQuery : TSitemapslistOptions) : TSitemapsListResponse;
Var
_Q : String;
begin
_Q:='';
AddToQuery(_Q,'sitemapIndex',AQuery.sitemapIndex);
Result:=List(siteUrl,_Q);
end;
Procedure TSitemapsResource.Submit(feedpath: string; siteUrl: string);
Const
_HTTPMethod = 'PUT';
_Path = 'sites/{siteUrl}/sitemaps/{feedpath}';
_Methodid = 'webmasters.sitemaps.submit';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['feedpath',feedpath,'siteUrl',siteUrl]);
ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
end;
{ --------------------------------------------------------------------
TSitesResource
--------------------------------------------------------------------}
Class Function TSitesResource.ResourceName : String;
begin
Result:='sites';
end;
Class Function TSitesResource.DefaultAPI : TGoogleAPIClass;
begin
Result:=TwebmastersAPI;
end;
Procedure TSitesResource.Add(siteUrl: string);
Const
_HTTPMethod = 'PUT';
_Path = 'sites/{siteUrl}';
_Methodid = 'webmasters.sites.add';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl]);
ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
end;
Procedure TSitesResource.Delete(siteUrl: string);
Const
_HTTPMethod = 'DELETE';
_Path = 'sites/{siteUrl}';
_Methodid = 'webmasters.sites.delete';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl]);
ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
end;
Function TSitesResource.Get(siteUrl: string) : TWmxSite;
Const
_HTTPMethod = 'GET';
_Path = 'sites/{siteUrl}';
_Methodid = 'webmasters.sites.get';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl]);
Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TWmxSite) as TWmxSite;
end;
Function TSitesResource.List : TSitesListResponse;
Const
_HTTPMethod = 'GET';
_Path = 'sites';
_Methodid = 'webmasters.sites.list';
begin
Result:=ServiceCall(_HTTPMethod,_Path,'',Nil,TSitesListResponse) as TSitesListResponse;
end;
{ --------------------------------------------------------------------
TUrlcrawlerrorscountsResource
--------------------------------------------------------------------}
Class Function TUrlcrawlerrorscountsResource.ResourceName : String;
begin
Result:='urlcrawlerrorscounts';
end;
Class Function TUrlcrawlerrorscountsResource.DefaultAPI : TGoogleAPIClass;
begin
Result:=TwebmastersAPI;
end;
Function TUrlcrawlerrorscountsResource.Query(siteUrl: string; AQuery : string = '') : TUrlCrawlErrorsCountsQueryResponse;
Const
_HTTPMethod = 'GET';
_Path = 'sites/{siteUrl}/urlCrawlErrorsCounts/query';
_Methodid = 'webmasters.urlcrawlerrorscounts.query';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl]);
Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TUrlCrawlErrorsCountsQueryResponse) as TUrlCrawlErrorsCountsQueryResponse;
end;
Function TUrlcrawlerrorscountsResource.Query(siteUrl: string; AQuery : TUrlcrawlerrorscountsqueryOptions) : TUrlCrawlErrorsCountsQueryResponse;
Var
_Q : String;
begin
_Q:='';
AddToQuery(_Q,'category',AQuery.category);
AddToQuery(_Q,'latestCountsOnly',AQuery.latestCountsOnly);
AddToQuery(_Q,'platform',AQuery.platform);
Result:=Query(siteUrl,_Q);
end;
{ --------------------------------------------------------------------
TUrlcrawlerrorssamplesResource
--------------------------------------------------------------------}
Class Function TUrlcrawlerrorssamplesResource.ResourceName : String;
begin
Result:='urlcrawlerrorssamples';
end;
Class Function TUrlcrawlerrorssamplesResource.DefaultAPI : TGoogleAPIClass;
begin
Result:=TwebmastersAPI;
end;
Function TUrlcrawlerrorssamplesResource.Get(siteUrl: string; url: string; AQuery : string = '') : TUrlCrawlErrorsSample;
Const
_HTTPMethod = 'GET';
_Path = 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}';
_Methodid = 'webmasters.urlcrawlerrorssamples.get';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl,'url',url]);
Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TUrlCrawlErrorsSample) as TUrlCrawlErrorsSample;
end;
Function TUrlcrawlerrorssamplesResource.Get(siteUrl: string; url: string; AQuery : TUrlcrawlerrorssamplesgetOptions) : TUrlCrawlErrorsSample;
Var
_Q : String;
begin
_Q:='';
AddToQuery(_Q,'category',AQuery.category);
AddToQuery(_Q,'platform',AQuery.platform);
Result:=Get(siteUrl,url,_Q);
end;
Function TUrlcrawlerrorssamplesResource.List(siteUrl: string; AQuery : string = '') : TUrlCrawlErrorsSamplesListResponse;
Const
_HTTPMethod = 'GET';
_Path = 'sites/{siteUrl}/urlCrawlErrorsSamples';
_Methodid = 'webmasters.urlcrawlerrorssamples.list';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl]);
Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TUrlCrawlErrorsSamplesListResponse) as TUrlCrawlErrorsSamplesListResponse;
end;
Function TUrlcrawlerrorssamplesResource.List(siteUrl: string; AQuery : TUrlcrawlerrorssampleslistOptions) : TUrlCrawlErrorsSamplesListResponse;
Var
_Q : String;
begin
_Q:='';
AddToQuery(_Q,'category',AQuery.category);
AddToQuery(_Q,'platform',AQuery.platform);
Result:=List(siteUrl,_Q);
end;
Procedure TUrlcrawlerrorssamplesResource.MarkAsFixed(siteUrl: string; url: string; AQuery : string = '');
Const
_HTTPMethod = 'DELETE';
_Path = 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}';
_Methodid = 'webmasters.urlcrawlerrorssamples.markAsFixed';
Var
_P : String;
begin
_P:=SubstitutePath(_Path,['siteUrl',siteUrl,'url',url]);
ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
end;
Procedure TUrlcrawlerrorssamplesResource.MarkAsFixed(siteUrl: string; url: string; AQuery : TUrlcrawlerrorssamplesmarkAsFixedOptions);
Var
_Q : String;
begin
_Q:='';
AddToQuery(_Q,'category',AQuery.category);
AddToQuery(_Q,'platform',AQuery.platform);
MarkAsFixed(siteUrl,url,_Q);
end;
{ --------------------------------------------------------------------
TWebmastersAPI
--------------------------------------------------------------------}
Class Function TWebmastersAPI.APIName : String;
begin
Result:='webmasters';
end;
Class Function TWebmastersAPI.APIVersion : String;
begin
Result:='v3';
end;
Class Function TWebmastersAPI.APIRevision : String;
begin
Result:='20160317';
end;
Class Function TWebmastersAPI.APIID : String;
begin
Result:='webmasters:v3';
end;
Class Function TWebmastersAPI.APITitle : String;
begin
Result:='Search Console API';
end;
Class Function TWebmastersAPI.APIDescription : String;
begin
Result:='View Google Search Console data for your verified sites.';
end;
Class Function TWebmastersAPI.APIOwnerDomain : String;
begin
Result:='google.com';
end;
Class Function TWebmastersAPI.APIOwnerName : String;
begin
Result:='Google';
end;
Class Function TWebmastersAPI.APIIcon16 : String;
begin
Result:='https://www.google.com/images/icons/product/webmaster_tools-16.png';
end;
Class Function TWebmastersAPI.APIIcon32 : String;
begin
Result:='https://www.google.com/images/icons/product/webmaster_tools-32.png';
end;
Class Function TWebmastersAPI.APIdocumentationLink : String;
begin
Result:='https://developers.google.com/webmaster-tools/';
end;
Class Function TWebmastersAPI.APIrootUrl : string;
begin
Result:='https://www.googleapis.com/';
end;
Class Function TWebmastersAPI.APIbasePath : string;
begin
Result:='/webmasters/v3/';
end;
Class Function TWebmastersAPI.APIbaseURL : String;
begin
Result:='https://www.googleapis.com/webmasters/v3/';
end;
Class Function TWebmastersAPI.APIProtocol : string;
begin
Result:='rest';
end;
Class Function TWebmastersAPI.APIservicePath : string;
begin
Result:='webmasters/v3/';
end;
Class Function TWebmastersAPI.APIbatchPath : String;
begin
Result:='batch';
end;
Class Function TWebmastersAPI.APIAuthScopes : TScopeInfoArray;
begin
SetLength(Result,2);
Result[0].Name:='https://www.googleapis.com/auth/webmasters';
Result[0].Description:='View and manage Search Console data for your verified sites';
Result[1].Name:='https://www.googleapis.com/auth/webmasters.readonly';
Result[1].Description:='View Search Console data for your verified sites';
end;
Class Function TWebmastersAPI.APINeedsAuth : Boolean;
begin
Result:=True;
end;
Class Procedure TWebmastersAPI.RegisterAPIResources;
begin
TApiDataRow.RegisterObject;
TApiDimensionFilter.RegisterObject;
TApiDimensionFilterGroup.RegisterObject;
TSearchAnalyticsQueryRequest.RegisterObject;
TSearchAnalyticsQueryResponse.RegisterObject;
TSitemapsListResponse.RegisterObject;
TSitesListResponse.RegisterObject;
TUrlCrawlErrorCount.RegisterObject;
TUrlCrawlErrorCountsPerType.RegisterObject;
TUrlCrawlErrorsCountsQueryResponse.RegisterObject;
TUrlCrawlErrorsSample.RegisterObject;
TUrlCrawlErrorsSamplesListResponse.RegisterObject;
TUrlSampleDetails.RegisterObject;
TWmxSite.RegisterObject;
TWmxSitemap.RegisterObject;
TWmxSitemapContent.RegisterObject;
end;
Function TWebmastersAPI.GetSearchanalyticsInstance : TSearchanalyticsResource;
begin
if (FSearchanalyticsInstance=Nil) then
FSearchanalyticsInstance:=CreateSearchanalyticsResource;
Result:=FSearchanalyticsInstance;
end;
Function TWebmastersAPI.CreateSearchanalyticsResource : TSearchanalyticsResource;
begin
Result:=CreateSearchanalyticsResource(Self);
end;
Function TWebmastersAPI.CreateSearchanalyticsResource(AOwner : TComponent) : TSearchanalyticsResource;
begin
Result:=TSearchanalyticsResource.Create(AOwner);
Result.API:=Self.API;
end;
Function TWebmastersAPI.GetSitemapsInstance : TSitemapsResource;
begin
if (FSitemapsInstance=Nil) then
FSitemapsInstance:=CreateSitemapsResource;
Result:=FSitemapsInstance;
end;
Function TWebmastersAPI.CreateSitemapsResource : TSitemapsResource;
begin
Result:=CreateSitemapsResource(Self);
end;
Function TWebmastersAPI.CreateSitemapsResource(AOwner : TComponent) : TSitemapsResource;
begin
Result:=TSitemapsResource.Create(AOwner);
Result.API:=Self.API;
end;
Function TWebmastersAPI.GetSitesInstance : TSitesResource;
begin
if (FSitesInstance=Nil) then
FSitesInstance:=CreateSitesResource;
Result:=FSitesInstance;
end;
Function TWebmastersAPI.CreateSitesResource : TSitesResource;
begin
Result:=CreateSitesResource(Self);
end;
Function TWebmastersAPI.CreateSitesResource(AOwner : TComponent) : TSitesResource;
begin
Result:=TSitesResource.Create(AOwner);
Result.API:=Self.API;
end;
Function TWebmastersAPI.GetUrlcrawlerrorscountsInstance : TUrlcrawlerrorscountsResource;
begin
if (FUrlcrawlerrorscountsInstance=Nil) then
FUrlcrawlerrorscountsInstance:=CreateUrlcrawlerrorscountsResource;
Result:=FUrlcrawlerrorscountsInstance;
end;
Function TWebmastersAPI.CreateUrlcrawlerrorscountsResource : TUrlcrawlerrorscountsResource;
begin
Result:=CreateUrlcrawlerrorscountsResource(Self);
end;
Function TWebmastersAPI.CreateUrlcrawlerrorscountsResource(AOwner : TComponent) : TUrlcrawlerrorscountsResource;
begin
Result:=TUrlcrawlerrorscountsResource.Create(AOwner);
Result.API:=Self.API;
end;
Function TWebmastersAPI.GetUrlcrawlerrorssamplesInstance : TUrlcrawlerrorssamplesResource;
begin
if (FUrlcrawlerrorssamplesInstance=Nil) then
FUrlcrawlerrorssamplesInstance:=CreateUrlcrawlerrorssamplesResource;
Result:=FUrlcrawlerrorssamplesInstance;
end;
Function TWebmastersAPI.CreateUrlcrawlerrorssamplesResource : TUrlcrawlerrorssamplesResource;
begin
Result:=CreateUrlcrawlerrorssamplesResource(Self);
end;
Function TWebmastersAPI.CreateUrlcrawlerrorssamplesResource(AOwner : TComponent) : TUrlcrawlerrorssamplesResource;
begin
Result:=TUrlcrawlerrorssamplesResource.Create(AOwner);
Result.API:=Self.API;
end;
initialization
TWebmastersAPI.RegisterAPI;
end.
|