@googleapis/searchconsole 0.5.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v1.0.0...searchconsole-v1.0.1) (2023-08-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **searchconsole:** update the API ([208d0a5](https://github.com/googleapis/google-api-nodejs-client/commit/208d0a5dc718bcfcc100034fcbb1f086793d0ad6))
9
+
10
+ ## [1.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v0.5.2...searchconsole-v1.0.0) (2022-10-28)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * **build:** This release has breaking changes.
16
+
17
+ ### Features
18
+
19
+ * **build:** run the generator (submodules now require Node 12) ([#3073](https://github.com/googleapis/google-api-nodejs-client/issues/3073)) ([eda0707](https://github.com/googleapis/google-api-nodejs-client/commit/eda07079dadab46a80b6f9ede618f4f43030169e))
20
+
21
+ ## [0.5.2](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v0.5.1...searchconsole-v0.5.2) (2022-09-21)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **searchconsole:** update the API ([661466b](https://github.com/googleapis/google-api-nodejs-client/commit/661466bd53f47417b13ec612fbb9c867926a89d4))
27
+
3
28
  ## [0.5.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v0.5.0...searchconsole-v0.5.1) (2022-06-21)
4
29
 
5
30
 
package/build/index.js CHANGED
@@ -12,19 +12,20 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AuthPlus = exports.searchconsole_v1 = exports.auth = exports.searchconsole = exports.VERSIONS = void 0;
15
16
  /*! THIS FILE IS AUTO-GENERATED */
16
17
  const googleapis_common_1 = require("googleapis-common");
17
18
  const v1_1 = require("./v1");
18
- exports.searchconsole_v1 = v1_1.searchconsole_v1;
19
+ Object.defineProperty(exports, "searchconsole_v1", { enumerable: true, get: function () { return v1_1.searchconsole_v1; } });
19
20
  exports.VERSIONS = {
20
21
  v1: v1_1.searchconsole_v1.Searchconsole,
21
22
  };
22
23
  function searchconsole(versionOrOptions) {
23
- return googleapis_common_1.getAPI('searchconsole', versionOrOptions, exports.VERSIONS, this);
24
+ return (0, googleapis_common_1.getAPI)('searchconsole', versionOrOptions, exports.VERSIONS, this);
24
25
  }
25
26
  exports.searchconsole = searchconsole;
26
27
  const auth = new googleapis_common_1.AuthPlus();
27
28
  exports.auth = auth;
28
29
  var googleapis_common_2 = require("googleapis-common");
29
- exports.AuthPlus = googleapis_common_2.AuthPlus;
30
+ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAsC;AAmB9B,2BAnBA,qBAAgB,CAmBA;AAjBX,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,qBAAgB,CAAC,aAAa;CACnC,CAAC;AAMF,SAAgB,aAAa,CAE3B,gBAAiD;IAEjD,OAAO,0BAAM,CAAI,eAAe,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC;AALD,sCAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAS2B;AARzB,uCAAA,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAsC;AAmB9B,iGAnBA,qBAAgB,OAmBA;AAjBX,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,qBAAgB,CAAC,aAAa;CACnC,CAAC;AAMF,SAAgB,aAAa,CAE3B,gBAAiD;IAEjD,OAAO,IAAA,0BAAM,EAAI,eAAe,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC;AALD,sCAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
package/build/v1.d.ts CHANGED
@@ -569,69 +569,6 @@ export declare namespace searchconsole_v1 {
569
569
  constructor(context: APIRequestContext);
570
570
  /**
571
571
  * Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.
572
- * @example
573
- * ```js
574
- * // Before running the sample:
575
- * // - Enable the API at:
576
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
577
- * // - Login into gcloud by running:
578
- * // `$ gcloud auth application-default login`
579
- * // - Install the npm module by running:
580
- * // `$ npm install googleapis`
581
- *
582
- * const {google} = require('googleapis');
583
- * const searchconsole = google.searchconsole('v1');
584
- *
585
- * async function main() {
586
- * const auth = new google.auth.GoogleAuth({
587
- * // Scopes can be specified either as an array or as a single, space-delimited string.
588
- * scopes: [
589
- * 'https://www.googleapis.com/auth/webmasters',
590
- * 'https://www.googleapis.com/auth/webmasters.readonly',
591
- * ],
592
- * });
593
- *
594
- * // Acquire an auth client, and bind it to all future calls
595
- * const authClient = await auth.getClient();
596
- * google.options({auth: authClient});
597
- *
598
- * // Do the magic
599
- * const res = await webmasters.searchanalytics.query({
600
- * // The site's URL, including protocol. For example: `http://www.example.com/`.
601
- * siteUrl: 'placeholder-value',
602
- *
603
- * // Request body metadata
604
- * requestBody: {
605
- * // request body parameters
606
- * // {
607
- * // "aggregationType": "my_aggregationType",
608
- * // "dataState": "my_dataState",
609
- * // "dimensionFilterGroups": [],
610
- * // "dimensions": [],
611
- * // "endDate": "my_endDate",
612
- * // "rowLimit": 0,
613
- * // "searchType": "my_searchType",
614
- * // "startDate": "my_startDate",
615
- * // "startRow": 0,
616
- * // "type": "my_type"
617
- * // }
618
- * },
619
- * });
620
- * console.log(res.data);
621
- *
622
- * // Example response
623
- * // {
624
- * // "responseAggregationType": "my_responseAggregationType",
625
- * // "rows": []
626
- * // }
627
- * }
628
- *
629
- * main().catch(e => {
630
- * console.error(e);
631
- * throw e;
632
- * });
633
- *
634
- * ```
635
572
  *
636
573
  * @param params - Parameters for request
637
574
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -660,45 +597,6 @@ export declare namespace searchconsole_v1 {
660
597
  constructor(context: APIRequestContext);
661
598
  /**
662
599
  * Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling this sitemap or the URLs that were previously crawled in the deleted sitemap.
663
- * @example
664
- * ```js
665
- * // Before running the sample:
666
- * // - Enable the API at:
667
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
668
- * // - Login into gcloud by running:
669
- * // `$ gcloud auth application-default login`
670
- * // - Install the npm module by running:
671
- * // `$ npm install googleapis`
672
- *
673
- * const {google} = require('googleapis');
674
- * const searchconsole = google.searchconsole('v1');
675
- *
676
- * async function main() {
677
- * const auth = new google.auth.GoogleAuth({
678
- * // Scopes can be specified either as an array or as a single, space-delimited string.
679
- * scopes: ['https://www.googleapis.com/auth/webmasters'],
680
- * });
681
- *
682
- * // Acquire an auth client, and bind it to all future calls
683
- * const authClient = await auth.getClient();
684
- * google.options({auth: authClient});
685
- *
686
- * // Do the magic
687
- * const res = await webmasters.sitemaps.delete({
688
- * // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
689
- * feedpath: 'placeholder-value',
690
- * // The site's URL, including protocol. For example: `http://www.example.com/`.
691
- * siteUrl: 'placeholder-value',
692
- * });
693
- * console.log(res.data);
694
- * }
695
- *
696
- * main().catch(e => {
697
- * console.error(e);
698
- * throw e;
699
- * });
700
- *
701
- * ```
702
600
  *
703
601
  * @param params - Parameters for request
704
602
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -713,61 +611,6 @@ export declare namespace searchconsole_v1 {
713
611
  delete(callback: BodyResponseCallback<void>): void;
714
612
  /**
715
613
  * Retrieves information about a specific sitemap.
716
- * @example
717
- * ```js
718
- * // Before running the sample:
719
- * // - Enable the API at:
720
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
721
- * // - Login into gcloud by running:
722
- * // `$ gcloud auth application-default login`
723
- * // - Install the npm module by running:
724
- * // `$ npm install googleapis`
725
- *
726
- * const {google} = require('googleapis');
727
- * const searchconsole = google.searchconsole('v1');
728
- *
729
- * async function main() {
730
- * const auth = new google.auth.GoogleAuth({
731
- * // Scopes can be specified either as an array or as a single, space-delimited string.
732
- * scopes: [
733
- * 'https://www.googleapis.com/auth/webmasters',
734
- * 'https://www.googleapis.com/auth/webmasters.readonly',
735
- * ],
736
- * });
737
- *
738
- * // Acquire an auth client, and bind it to all future calls
739
- * const authClient = await auth.getClient();
740
- * google.options({auth: authClient});
741
- *
742
- * // Do the magic
743
- * const res = await webmasters.sitemaps.get({
744
- * // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
745
- * feedpath: 'placeholder-value',
746
- * // The site's URL, including protocol. For example: `http://www.example.com/`.
747
- * siteUrl: 'placeholder-value',
748
- * });
749
- * console.log(res.data);
750
- *
751
- * // Example response
752
- * // {
753
- * // "contents": [],
754
- * // "errors": "my_errors",
755
- * // "isPending": false,
756
- * // "isSitemapsIndex": false,
757
- * // "lastDownloaded": "my_lastDownloaded",
758
- * // "lastSubmitted": "my_lastSubmitted",
759
- * // "path": "my_path",
760
- * // "type": "my_type",
761
- * // "warnings": "my_warnings"
762
- * // }
763
- * }
764
- *
765
- * main().catch(e => {
766
- * console.error(e);
767
- * throw e;
768
- * });
769
- *
770
- * ```
771
614
  *
772
615
  * @param params - Parameters for request
773
616
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -782,53 +625,6 @@ export declare namespace searchconsole_v1 {
782
625
  get(callback: BodyResponseCallback<Schema$WmxSitemap>): void;
783
626
  /**
784
627
  * Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this site, or included in the sitemap index file (if `sitemapIndex` is specified in the request).
785
- * @example
786
- * ```js
787
- * // Before running the sample:
788
- * // - Enable the API at:
789
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
790
- * // - Login into gcloud by running:
791
- * // `$ gcloud auth application-default login`
792
- * // - Install the npm module by running:
793
- * // `$ npm install googleapis`
794
- *
795
- * const {google} = require('googleapis');
796
- * const searchconsole = google.searchconsole('v1');
797
- *
798
- * async function main() {
799
- * const auth = new google.auth.GoogleAuth({
800
- * // Scopes can be specified either as an array or as a single, space-delimited string.
801
- * scopes: [
802
- * 'https://www.googleapis.com/auth/webmasters',
803
- * 'https://www.googleapis.com/auth/webmasters.readonly',
804
- * ],
805
- * });
806
- *
807
- * // Acquire an auth client, and bind it to all future calls
808
- * const authClient = await auth.getClient();
809
- * google.options({auth: authClient});
810
- *
811
- * // Do the magic
812
- * const res = await webmasters.sitemaps.list({
813
- * // A URL of a site's sitemap index. For example: `http://www.example.com/sitemapindex.xml`.
814
- * sitemapIndex: 'placeholder-value',
815
- * // The site's URL, including protocol. For example: `http://www.example.com/`.
816
- * siteUrl: 'placeholder-value',
817
- * });
818
- * console.log(res.data);
819
- *
820
- * // Example response
821
- * // {
822
- * // "sitemap": []
823
- * // }
824
- * }
825
- *
826
- * main().catch(e => {
827
- * console.error(e);
828
- * throw e;
829
- * });
830
- *
831
- * ```
832
628
  *
833
629
  * @param params - Parameters for request
834
630
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -843,45 +639,6 @@ export declare namespace searchconsole_v1 {
843
639
  list(callback: BodyResponseCallback<Schema$SitemapsListResponse>): void;
844
640
  /**
845
641
  * Submits a sitemap for a site.
846
- * @example
847
- * ```js
848
- * // Before running the sample:
849
- * // - Enable the API at:
850
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
851
- * // - Login into gcloud by running:
852
- * // `$ gcloud auth application-default login`
853
- * // - Install the npm module by running:
854
- * // `$ npm install googleapis`
855
- *
856
- * const {google} = require('googleapis');
857
- * const searchconsole = google.searchconsole('v1');
858
- *
859
- * async function main() {
860
- * const auth = new google.auth.GoogleAuth({
861
- * // Scopes can be specified either as an array or as a single, space-delimited string.
862
- * scopes: ['https://www.googleapis.com/auth/webmasters'],
863
- * });
864
- *
865
- * // Acquire an auth client, and bind it to all future calls
866
- * const authClient = await auth.getClient();
867
- * google.options({auth: authClient});
868
- *
869
- * // Do the magic
870
- * const res = await webmasters.sitemaps.submit({
871
- * // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
872
- * feedpath: 'placeholder-value',
873
- * // The site's URL, including protocol. For example: `http://www.example.com/`.
874
- * siteUrl: 'placeholder-value',
875
- * });
876
- * console.log(res.data);
877
- * }
878
- *
879
- * main().catch(e => {
880
- * console.error(e);
881
- * throw e;
882
- * });
883
- *
884
- * ```
885
642
  *
886
643
  * @param params - Parameters for request
887
644
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -940,43 +697,6 @@ export declare namespace searchconsole_v1 {
940
697
  constructor(context: APIRequestContext);
941
698
  /**
942
699
  * Adds a site to the set of the user's sites in Search Console.
943
- * @example
944
- * ```js
945
- * // Before running the sample:
946
- * // - Enable the API at:
947
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
948
- * // - Login into gcloud by running:
949
- * // `$ gcloud auth application-default login`
950
- * // - Install the npm module by running:
951
- * // `$ npm install googleapis`
952
- *
953
- * const {google} = require('googleapis');
954
- * const searchconsole = google.searchconsole('v1');
955
- *
956
- * async function main() {
957
- * const auth = new google.auth.GoogleAuth({
958
- * // Scopes can be specified either as an array or as a single, space-delimited string.
959
- * scopes: ['https://www.googleapis.com/auth/webmasters'],
960
- * });
961
- *
962
- * // Acquire an auth client, and bind it to all future calls
963
- * const authClient = await auth.getClient();
964
- * google.options({auth: authClient});
965
- *
966
- * // Do the magic
967
- * const res = await webmasters.sites.add({
968
- * // The URL of the site to add.
969
- * siteUrl: 'placeholder-value',
970
- * });
971
- * console.log(res.data);
972
- * }
973
- *
974
- * main().catch(e => {
975
- * console.error(e);
976
- * throw e;
977
- * });
978
- *
979
- * ```
980
700
  *
981
701
  * @param params - Parameters for request
982
702
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -991,43 +711,6 @@ export declare namespace searchconsole_v1 {
991
711
  add(callback: BodyResponseCallback<void>): void;
992
712
  /**
993
713
  * Removes a site from the set of the user's Search Console sites.
994
- * @example
995
- * ```js
996
- * // Before running the sample:
997
- * // - Enable the API at:
998
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
999
- * // - Login into gcloud by running:
1000
- * // `$ gcloud auth application-default login`
1001
- * // - Install the npm module by running:
1002
- * // `$ npm install googleapis`
1003
- *
1004
- * const {google} = require('googleapis');
1005
- * const searchconsole = google.searchconsole('v1');
1006
- *
1007
- * async function main() {
1008
- * const auth = new google.auth.GoogleAuth({
1009
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1010
- * scopes: ['https://www.googleapis.com/auth/webmasters'],
1011
- * });
1012
- *
1013
- * // Acquire an auth client, and bind it to all future calls
1014
- * const authClient = await auth.getClient();
1015
- * google.options({auth: authClient});
1016
- *
1017
- * // Do the magic
1018
- * const res = await webmasters.sites.delete({
1019
- * // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
1020
- * siteUrl: 'placeholder-value',
1021
- * });
1022
- * console.log(res.data);
1023
- * }
1024
- *
1025
- * main().catch(e => {
1026
- * console.error(e);
1027
- * throw e;
1028
- * });
1029
- *
1030
- * ```
1031
714
  *
1032
715
  * @param params - Parameters for request
1033
716
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1042,52 +725,6 @@ export declare namespace searchconsole_v1 {
1042
725
  delete(callback: BodyResponseCallback<void>): void;
1043
726
  /**
1044
727
  * Retrieves information about specific site.
1045
- * @example
1046
- * ```js
1047
- * // Before running the sample:
1048
- * // - Enable the API at:
1049
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1050
- * // - Login into gcloud by running:
1051
- * // `$ gcloud auth application-default login`
1052
- * // - Install the npm module by running:
1053
- * // `$ npm install googleapis`
1054
- *
1055
- * const {google} = require('googleapis');
1056
- * const searchconsole = google.searchconsole('v1');
1057
- *
1058
- * async function main() {
1059
- * const auth = new google.auth.GoogleAuth({
1060
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1061
- * scopes: [
1062
- * 'https://www.googleapis.com/auth/webmasters',
1063
- * 'https://www.googleapis.com/auth/webmasters.readonly',
1064
- * ],
1065
- * });
1066
- *
1067
- * // Acquire an auth client, and bind it to all future calls
1068
- * const authClient = await auth.getClient();
1069
- * google.options({auth: authClient});
1070
- *
1071
- * // Do the magic
1072
- * const res = await webmasters.sites.get({
1073
- * // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
1074
- * siteUrl: 'placeholder-value',
1075
- * });
1076
- * console.log(res.data);
1077
- *
1078
- * // Example response
1079
- * // {
1080
- * // "permissionLevel": "my_permissionLevel",
1081
- * // "siteUrl": "my_siteUrl"
1082
- * // }
1083
- * }
1084
- *
1085
- * main().catch(e => {
1086
- * console.error(e);
1087
- * throw e;
1088
- * });
1089
- *
1090
- * ```
1091
728
  *
1092
729
  * @param params - Parameters for request
1093
730
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1102,48 +739,6 @@ export declare namespace searchconsole_v1 {
1102
739
  get(callback: BodyResponseCallback<Schema$WmxSite>): void;
1103
740
  /**
1104
741
  * Lists the user's Search Console sites.
1105
- * @example
1106
- * ```js
1107
- * // Before running the sample:
1108
- * // - Enable the API at:
1109
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1110
- * // - Login into gcloud by running:
1111
- * // `$ gcloud auth application-default login`
1112
- * // - Install the npm module by running:
1113
- * // `$ npm install googleapis`
1114
- *
1115
- * const {google} = require('googleapis');
1116
- * const searchconsole = google.searchconsole('v1');
1117
- *
1118
- * async function main() {
1119
- * const auth = new google.auth.GoogleAuth({
1120
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1121
- * scopes: [
1122
- * 'https://www.googleapis.com/auth/webmasters',
1123
- * 'https://www.googleapis.com/auth/webmasters.readonly',
1124
- * ],
1125
- * });
1126
- *
1127
- * // Acquire an auth client, and bind it to all future calls
1128
- * const authClient = await auth.getClient();
1129
- * google.options({auth: authClient});
1130
- *
1131
- * // Do the magic
1132
- * const res = await webmasters.sites.list({});
1133
- * console.log(res.data);
1134
- *
1135
- * // Example response
1136
- * // {
1137
- * // "siteEntry": []
1138
- * // }
1139
- * }
1140
- *
1141
- * main().catch(e => {
1142
- * console.error(e);
1143
- * throw e;
1144
- * });
1145
- *
1146
- * ```
1147
742
  *
1148
743
  * @param params - Parameters for request
1149
744
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1187,58 +782,6 @@ export declare namespace searchconsole_v1 {
1187
782
  constructor(context: APIRequestContext);
1188
783
  /**
1189
784
  * Index inspection.
1190
- * @example
1191
- * ```js
1192
- * // Before running the sample:
1193
- * // - Enable the API at:
1194
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1195
- * // - Login into gcloud by running:
1196
- * // `$ gcloud auth application-default login`
1197
- * // - Install the npm module by running:
1198
- * // `$ npm install googleapis`
1199
- *
1200
- * const {google} = require('googleapis');
1201
- * const searchconsole = google.searchconsole('v1');
1202
- *
1203
- * async function main() {
1204
- * const auth = new google.auth.GoogleAuth({
1205
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1206
- * scopes: [
1207
- * 'https://www.googleapis.com/auth/webmasters',
1208
- * 'https://www.googleapis.com/auth/webmasters.readonly',
1209
- * ],
1210
- * });
1211
- *
1212
- * // Acquire an auth client, and bind it to all future calls
1213
- * const authClient = await auth.getClient();
1214
- * google.options({auth: authClient});
1215
- *
1216
- * // Do the magic
1217
- * const res = await searchconsole.urlInspection.index.inspect({
1218
- * // Request body metadata
1219
- * requestBody: {
1220
- * // request body parameters
1221
- * // {
1222
- * // "inspectionUrl": "my_inspectionUrl",
1223
- * // "languageCode": "my_languageCode",
1224
- * // "siteUrl": "my_siteUrl"
1225
- * // }
1226
- * },
1227
- * });
1228
- * console.log(res.data);
1229
- *
1230
- * // Example response
1231
- * // {
1232
- * // "inspectionResult": {}
1233
- * // }
1234
- * }
1235
- *
1236
- * main().catch(e => {
1237
- * console.error(e);
1238
- * throw e;
1239
- * });
1240
- *
1241
- * ```
1242
785
  *
1243
786
  * @param params - Parameters for request
1244
787
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1268,58 +811,6 @@ export declare namespace searchconsole_v1 {
1268
811
  constructor(context: APIRequestContext);
1269
812
  /**
1270
813
  * Runs Mobile-Friendly Test for a given URL.
1271
- * @example
1272
- * ```js
1273
- * // Before running the sample:
1274
- * // - Enable the API at:
1275
- * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1276
- * // - Login into gcloud by running:
1277
- * // `$ gcloud auth application-default login`
1278
- * // - Install the npm module by running:
1279
- * // `$ npm install googleapis`
1280
- *
1281
- * const {google} = require('googleapis');
1282
- * const searchconsole = google.searchconsole('v1');
1283
- *
1284
- * async function main() {
1285
- * const auth = new google.auth.GoogleAuth({
1286
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1287
- * scopes: [],
1288
- * });
1289
- *
1290
- * // Acquire an auth client, and bind it to all future calls
1291
- * const authClient = await auth.getClient();
1292
- * google.options({auth: authClient});
1293
- *
1294
- * // Do the magic
1295
- * const res = await searchconsole.urlTestingTools.mobileFriendlyTest.run({
1296
- * // Request body metadata
1297
- * requestBody: {
1298
- * // request body parameters
1299
- * // {
1300
- * // "requestScreenshot": false,
1301
- * // "url": "my_url"
1302
- * // }
1303
- * },
1304
- * });
1305
- * console.log(res.data);
1306
- *
1307
- * // Example response
1308
- * // {
1309
- * // "mobileFriendliness": "my_mobileFriendliness",
1310
- * // "mobileFriendlyIssues": [],
1311
- * // "resourceIssues": [],
1312
- * // "screenshot": {},
1313
- * // "testStatus": {}
1314
- * // }
1315
- * }
1316
- *
1317
- * main().catch(e => {
1318
- * console.error(e);
1319
- * throw e;
1320
- * });
1321
- *
1322
- * ```
1323
814
  *
1324
815
  * @param params - Parameters for request
1325
816
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.