@googleapis/slides 1.0.2 → 1.0.4

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.4](https://github.com/googleapis/google-api-nodejs-client/compare/slides-v1.0.3...slides-v1.0.4) (2023-08-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** update dependency googleapis-common to v7 ([9491ec1](https://github.com/googleapis/google-api-nodejs-client/commit/9491ec1cdc3c413e7d73edcfcd59cf5c28a7c855))
9
+
10
+ ## [1.0.3](https://github.com/googleapis/google-api-nodejs-client/compare/slides-v1.0.2...slides-v1.0.3) (2023-08-09)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **slides:** update the API ([5e4d08c](https://github.com/googleapis/google-api-nodejs-client/commit/5e4d08cfae8bfb43f4114931c9c7e0ca0ce492d8))
16
+
3
17
  ## [1.0.2](https://github.com/googleapis/google-api-nodejs-client/compare/slides-v1.0.1...slides-v1.0.2) (2023-03-13)
4
18
 
5
19
 
package/build/v1.d.ts CHANGED
@@ -2593,66 +2593,6 @@ export declare namespace slides_v1 {
2593
2593
  constructor(context: APIRequestContext);
2594
2594
  /**
2595
2595
  * Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies: the reply to the third request, and another empty reply, in that order. Because other users may be editing the presentation, the presentation might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the presentation should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.
2596
- * @example
2597
- * ```js
2598
- * // Before running the sample:
2599
- * // - Enable the API at:
2600
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2601
- * // - Login into gcloud by running:
2602
- * // `$ gcloud auth application-default login`
2603
- * // - Install the npm module by running:
2604
- * // `$ npm install googleapis`
2605
- *
2606
- * const {google} = require('googleapis');
2607
- * const slides = google.slides('v1');
2608
- *
2609
- * async function main() {
2610
- * const auth = new google.auth.GoogleAuth({
2611
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2612
- * scopes: [
2613
- * 'https://www.googleapis.com/auth/drive',
2614
- * 'https://www.googleapis.com/auth/drive.file',
2615
- * 'https://www.googleapis.com/auth/drive.readonly',
2616
- * 'https://www.googleapis.com/auth/presentations',
2617
- * 'https://www.googleapis.com/auth/spreadsheets',
2618
- * 'https://www.googleapis.com/auth/spreadsheets.readonly',
2619
- * ],
2620
- * });
2621
- *
2622
- * // Acquire an auth client, and bind it to all future calls
2623
- * const authClient = await auth.getClient();
2624
- * google.options({auth: authClient});
2625
- *
2626
- * // Do the magic
2627
- * const res = await slides.presentations.batchUpdate({
2628
- * // The presentation to apply the updates to.
2629
- * presentationId: 'placeholder-value',
2630
- *
2631
- * // Request body metadata
2632
- * requestBody: {
2633
- * // request body parameters
2634
- * // {
2635
- * // "requests": [],
2636
- * // "writeControl": {}
2637
- * // }
2638
- * },
2639
- * });
2640
- * console.log(res.data);
2641
- *
2642
- * // Example response
2643
- * // {
2644
- * // "presentationId": "my_presentationId",
2645
- * // "replies": [],
2646
- * // "writeControl": {}
2647
- * // }
2648
- * }
2649
- *
2650
- * main().catch(e => {
2651
- * console.error(e);
2652
- * throw e;
2653
- * });
2654
- *
2655
- * ```
2656
2596
  *
2657
2597
  * @param params - Parameters for request
2658
2598
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2667,73 +2607,6 @@ export declare namespace slides_v1 {
2667
2607
  batchUpdate(callback: BodyResponseCallback<Schema$BatchUpdatePresentationResponse>): void;
2668
2608
  /**
2669
2609
  * Creates a blank presentation using the title given in the request. If a `presentationId` is provided, it is used as the ID of the new presentation. Otherwise, a new ID is generated. Other fields in the request, including any provided content, are ignored. Returns the created presentation.
2670
- * @example
2671
- * ```js
2672
- * // Before running the sample:
2673
- * // - Enable the API at:
2674
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2675
- * // - Login into gcloud by running:
2676
- * // `$ gcloud auth application-default login`
2677
- * // - Install the npm module by running:
2678
- * // `$ npm install googleapis`
2679
- *
2680
- * const {google} = require('googleapis');
2681
- * const slides = google.slides('v1');
2682
- *
2683
- * async function main() {
2684
- * const auth = new google.auth.GoogleAuth({
2685
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2686
- * scopes: [
2687
- * 'https://www.googleapis.com/auth/drive',
2688
- * 'https://www.googleapis.com/auth/drive.file',
2689
- * 'https://www.googleapis.com/auth/presentations',
2690
- * ],
2691
- * });
2692
- *
2693
- * // Acquire an auth client, and bind it to all future calls
2694
- * const authClient = await auth.getClient();
2695
- * google.options({auth: authClient});
2696
- *
2697
- * // Do the magic
2698
- * const res = await slides.presentations.create({
2699
- * // Request body metadata
2700
- * requestBody: {
2701
- * // request body parameters
2702
- * // {
2703
- * // "layouts": [],
2704
- * // "locale": "my_locale",
2705
- * // "masters": [],
2706
- * // "notesMaster": {},
2707
- * // "pageSize": {},
2708
- * // "presentationId": "my_presentationId",
2709
- * // "revisionId": "my_revisionId",
2710
- * // "slides": [],
2711
- * // "title": "my_title"
2712
- * // }
2713
- * },
2714
- * });
2715
- * console.log(res.data);
2716
- *
2717
- * // Example response
2718
- * // {
2719
- * // "layouts": [],
2720
- * // "locale": "my_locale",
2721
- * // "masters": [],
2722
- * // "notesMaster": {},
2723
- * // "pageSize": {},
2724
- * // "presentationId": "my_presentationId",
2725
- * // "revisionId": "my_revisionId",
2726
- * // "slides": [],
2727
- * // "title": "my_title"
2728
- * // }
2729
- * }
2730
- *
2731
- * main().catch(e => {
2732
- * console.error(e);
2733
- * throw e;
2734
- * });
2735
- *
2736
- * ```
2737
2610
  *
2738
2611
  * @param params - Parameters for request
2739
2612
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2748,62 +2621,6 @@ export declare namespace slides_v1 {
2748
2621
  create(callback: BodyResponseCallback<Schema$Presentation>): void;
2749
2622
  /**
2750
2623
  * Gets the latest version of the specified presentation.
2751
- * @example
2752
- * ```js
2753
- * // Before running the sample:
2754
- * // - Enable the API at:
2755
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2756
- * // - Login into gcloud by running:
2757
- * // `$ gcloud auth application-default login`
2758
- * // - Install the npm module by running:
2759
- * // `$ npm install googleapis`
2760
- *
2761
- * const {google} = require('googleapis');
2762
- * const slides = google.slides('v1');
2763
- *
2764
- * async function main() {
2765
- * const auth = new google.auth.GoogleAuth({
2766
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2767
- * scopes: [
2768
- * 'https://www.googleapis.com/auth/drive',
2769
- * 'https://www.googleapis.com/auth/drive.file',
2770
- * 'https://www.googleapis.com/auth/drive.readonly',
2771
- * 'https://www.googleapis.com/auth/presentations',
2772
- * 'https://www.googleapis.com/auth/presentations.readonly',
2773
- * ],
2774
- * });
2775
- *
2776
- * // Acquire an auth client, and bind it to all future calls
2777
- * const authClient = await auth.getClient();
2778
- * google.options({auth: authClient});
2779
- *
2780
- * // Do the magic
2781
- * const res = await slides.presentations.get({
2782
- * // The ID of the presentation to retrieve.
2783
- * presentationId: '[^/]+',
2784
- * });
2785
- * console.log(res.data);
2786
- *
2787
- * // Example response
2788
- * // {
2789
- * // "layouts": [],
2790
- * // "locale": "my_locale",
2791
- * // "masters": [],
2792
- * // "notesMaster": {},
2793
- * // "pageSize": {},
2794
- * // "presentationId": "my_presentationId",
2795
- * // "revisionId": "my_revisionId",
2796
- * // "slides": [],
2797
- * // "title": "my_title"
2798
- * // }
2799
- * }
2800
- *
2801
- * main().catch(e => {
2802
- * console.error(e);
2803
- * throw e;
2804
- * });
2805
- *
2806
- * ```
2807
2624
  *
2808
2625
  * @param params - Parameters for request
2809
2626
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2844,64 +2661,6 @@ export declare namespace slides_v1 {
2844
2661
  constructor(context: APIRequestContext);
2845
2662
  /**
2846
2663
  * Gets the latest version of the specified page in the presentation.
2847
- * @example
2848
- * ```js
2849
- * // Before running the sample:
2850
- * // - Enable the API at:
2851
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2852
- * // - Login into gcloud by running:
2853
- * // `$ gcloud auth application-default login`
2854
- * // - Install the npm module by running:
2855
- * // `$ npm install googleapis`
2856
- *
2857
- * const {google} = require('googleapis');
2858
- * const slides = google.slides('v1');
2859
- *
2860
- * async function main() {
2861
- * const auth = new google.auth.GoogleAuth({
2862
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2863
- * scopes: [
2864
- * 'https://www.googleapis.com/auth/drive',
2865
- * 'https://www.googleapis.com/auth/drive.file',
2866
- * 'https://www.googleapis.com/auth/drive.readonly',
2867
- * 'https://www.googleapis.com/auth/presentations',
2868
- * 'https://www.googleapis.com/auth/presentations.readonly',
2869
- * ],
2870
- * });
2871
- *
2872
- * // Acquire an auth client, and bind it to all future calls
2873
- * const authClient = await auth.getClient();
2874
- * google.options({auth: authClient});
2875
- *
2876
- * // Do the magic
2877
- * const res = await slides.presentations.pages.get({
2878
- * // The object ID of the page to retrieve.
2879
- * pageObjectId: 'placeholder-value',
2880
- * // The ID of the presentation to retrieve.
2881
- * presentationId: 'placeholder-value',
2882
- * });
2883
- * console.log(res.data);
2884
- *
2885
- * // Example response
2886
- * // {
2887
- * // "layoutProperties": {},
2888
- * // "masterProperties": {},
2889
- * // "notesProperties": {},
2890
- * // "objectId": "my_objectId",
2891
- * // "pageElements": [],
2892
- * // "pageProperties": {},
2893
- * // "pageType": "my_pageType",
2894
- * // "revisionId": "my_revisionId",
2895
- * // "slideProperties": {}
2896
- * // }
2897
- * }
2898
- *
2899
- * main().catch(e => {
2900
- * console.error(e);
2901
- * throw e;
2902
- * });
2903
- *
2904
- * ```
2905
2664
  *
2906
2665
  * @param params - Parameters for request
2907
2666
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2916,62 +2675,6 @@ export declare namespace slides_v1 {
2916
2675
  get(callback: BodyResponseCallback<Schema$Page>): void;
2917
2676
  /**
2918
2677
  * Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image. This request counts as an [expensive read request](/slides/limits) for quota purposes.
2919
- * @example
2920
- * ```js
2921
- * // Before running the sample:
2922
- * // - Enable the API at:
2923
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2924
- * // - Login into gcloud by running:
2925
- * // `$ gcloud auth application-default login`
2926
- * // - Install the npm module by running:
2927
- * // `$ npm install googleapis`
2928
- *
2929
- * const {google} = require('googleapis');
2930
- * const slides = google.slides('v1');
2931
- *
2932
- * async function main() {
2933
- * const auth = new google.auth.GoogleAuth({
2934
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2935
- * scopes: [
2936
- * 'https://www.googleapis.com/auth/drive',
2937
- * 'https://www.googleapis.com/auth/drive.file',
2938
- * 'https://www.googleapis.com/auth/drive.readonly',
2939
- * 'https://www.googleapis.com/auth/presentations',
2940
- * 'https://www.googleapis.com/auth/presentations.readonly',
2941
- * ],
2942
- * });
2943
- *
2944
- * // Acquire an auth client, and bind it to all future calls
2945
- * const authClient = await auth.getClient();
2946
- * google.options({auth: authClient});
2947
- *
2948
- * // Do the magic
2949
- * const res = await slides.presentations.pages.getThumbnail({
2950
- * // The object ID of the page whose thumbnail to retrieve.
2951
- * pageObjectId: 'placeholder-value',
2952
- * // The ID of the presentation to retrieve.
2953
- * presentationId: 'placeholder-value',
2954
- * // The optional mime type of the thumbnail image. If you don't specify the mime type, the mime type defaults to PNG.
2955
- * 'thumbnailProperties.mimeType': 'placeholder-value',
2956
- * // The optional thumbnail image size. If you don't specify the size, the server chooses a default size of the image.
2957
- * 'thumbnailProperties.thumbnailSize': 'placeholder-value',
2958
- * });
2959
- * console.log(res.data);
2960
- *
2961
- * // Example response
2962
- * // {
2963
- * // "contentUrl": "my_contentUrl",
2964
- * // "height": 0,
2965
- * // "width": 0
2966
- * // }
2967
- * }
2968
- *
2969
- * main().catch(e => {
2970
- * console.error(e);
2971
- * throw e;
2972
- * });
2973
- *
2974
- * ```
2975
2678
  *
2976
2679
  * @param params - Parameters for request
2977
2680
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
package/build/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.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,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,SAAS,CAk1GzB;AAl1GD,WAAiB,SAAS;IAgExB;;;;;;;;;;OAUG;IACH,MAAa,MAAM;QAIjB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,aAAa,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChE,CAAC;KACF;IAZY,gBAAM,SAYlB,CAAA;IAi9ED,MAAa,sBAAsB;QAGjC,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,KAAK,GAAG,IAAI,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,CAAC;QAiGD,WAAW,CACT,gBAGkC,EAClC,iBAIkC,EAClC,QAEkC;YAKlC,IAAI,MAAM,GAAG,CAAC,gBAAgB;gBAC5B,EAAE,CAA8C,CAAC;YACnD,IAAI,OAAO,GAAG,CAAC,iBAAiB,IAAI,EAAE,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E,gBAAgB,CAAC;gBAC9C,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAmB,UAAU,CAAC,CAAC;aACvD;QACH,CAAC;KACF;IAnLY,sCAA4B,+BAmLxC,CAAA;AAgCH,CAAC,EAziGgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAyiGzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/slides",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "slides",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,12 +28,12 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^6.0.3"
31
+ "googleapis-common": "^7.0.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
35
35
  "@microsoft/api-extractor": "^7.8.10",
36
- "gts": "^3.1.1",
36
+ "gts": "^5.0.0",
37
37
  "null-loader": "^4.0.0",
38
38
  "ts-loader": "^9.0.0",
39
39
  "typescript": "~4.8.4",
package/v1.ts CHANGED
@@ -2645,66 +2645,6 @@ export namespace slides_v1 {
2645
2645
 
2646
2646
  /**
2647
2647
  * Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies: the reply to the third request, and another empty reply, in that order. Because other users may be editing the presentation, the presentation might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the presentation should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.
2648
- * @example
2649
- * ```js
2650
- * // Before running the sample:
2651
- * // - Enable the API at:
2652
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2653
- * // - Login into gcloud by running:
2654
- * // `$ gcloud auth application-default login`
2655
- * // - Install the npm module by running:
2656
- * // `$ npm install googleapis`
2657
- *
2658
- * const {google} = require('googleapis');
2659
- * const slides = google.slides('v1');
2660
- *
2661
- * async function main() {
2662
- * const auth = new google.auth.GoogleAuth({
2663
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2664
- * scopes: [
2665
- * 'https://www.googleapis.com/auth/drive',
2666
- * 'https://www.googleapis.com/auth/drive.file',
2667
- * 'https://www.googleapis.com/auth/drive.readonly',
2668
- * 'https://www.googleapis.com/auth/presentations',
2669
- * 'https://www.googleapis.com/auth/spreadsheets',
2670
- * 'https://www.googleapis.com/auth/spreadsheets.readonly',
2671
- * ],
2672
- * });
2673
- *
2674
- * // Acquire an auth client, and bind it to all future calls
2675
- * const authClient = await auth.getClient();
2676
- * google.options({auth: authClient});
2677
- *
2678
- * // Do the magic
2679
- * const res = await slides.presentations.batchUpdate({
2680
- * // The presentation to apply the updates to.
2681
- * presentationId: 'placeholder-value',
2682
- *
2683
- * // Request body metadata
2684
- * requestBody: {
2685
- * // request body parameters
2686
- * // {
2687
- * // "requests": [],
2688
- * // "writeControl": {}
2689
- * // }
2690
- * },
2691
- * });
2692
- * console.log(res.data);
2693
- *
2694
- * // Example response
2695
- * // {
2696
- * // "presentationId": "my_presentationId",
2697
- * // "replies": [],
2698
- * // "writeControl": {}
2699
- * // }
2700
- * }
2701
- *
2702
- * main().catch(e => {
2703
- * console.error(e);
2704
- * throw e;
2705
- * });
2706
- *
2707
- * ```
2708
2648
  *
2709
2649
  * @param params - Parameters for request
2710
2650
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2800,73 +2740,6 @@ export namespace slides_v1 {
2800
2740
 
2801
2741
  /**
2802
2742
  * Creates a blank presentation using the title given in the request. If a `presentationId` is provided, it is used as the ID of the new presentation. Otherwise, a new ID is generated. Other fields in the request, including any provided content, are ignored. Returns the created presentation.
2803
- * @example
2804
- * ```js
2805
- * // Before running the sample:
2806
- * // - Enable the API at:
2807
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2808
- * // - Login into gcloud by running:
2809
- * // `$ gcloud auth application-default login`
2810
- * // - Install the npm module by running:
2811
- * // `$ npm install googleapis`
2812
- *
2813
- * const {google} = require('googleapis');
2814
- * const slides = google.slides('v1');
2815
- *
2816
- * async function main() {
2817
- * const auth = new google.auth.GoogleAuth({
2818
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2819
- * scopes: [
2820
- * 'https://www.googleapis.com/auth/drive',
2821
- * 'https://www.googleapis.com/auth/drive.file',
2822
- * 'https://www.googleapis.com/auth/presentations',
2823
- * ],
2824
- * });
2825
- *
2826
- * // Acquire an auth client, and bind it to all future calls
2827
- * const authClient = await auth.getClient();
2828
- * google.options({auth: authClient});
2829
- *
2830
- * // Do the magic
2831
- * const res = await slides.presentations.create({
2832
- * // Request body metadata
2833
- * requestBody: {
2834
- * // request body parameters
2835
- * // {
2836
- * // "layouts": [],
2837
- * // "locale": "my_locale",
2838
- * // "masters": [],
2839
- * // "notesMaster": {},
2840
- * // "pageSize": {},
2841
- * // "presentationId": "my_presentationId",
2842
- * // "revisionId": "my_revisionId",
2843
- * // "slides": [],
2844
- * // "title": "my_title"
2845
- * // }
2846
- * },
2847
- * });
2848
- * console.log(res.data);
2849
- *
2850
- * // Example response
2851
- * // {
2852
- * // "layouts": [],
2853
- * // "locale": "my_locale",
2854
- * // "masters": [],
2855
- * // "notesMaster": {},
2856
- * // "pageSize": {},
2857
- * // "presentationId": "my_presentationId",
2858
- * // "revisionId": "my_revisionId",
2859
- * // "slides": [],
2860
- * // "title": "my_title"
2861
- * // }
2862
- * }
2863
- *
2864
- * main().catch(e => {
2865
- * console.error(e);
2866
- * throw e;
2867
- * });
2868
- *
2869
- * ```
2870
2743
  *
2871
2744
  * @param params - Parameters for request
2872
2745
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2951,62 +2824,6 @@ export namespace slides_v1 {
2951
2824
 
2952
2825
  /**
2953
2826
  * Gets the latest version of the specified presentation.
2954
- * @example
2955
- * ```js
2956
- * // Before running the sample:
2957
- * // - Enable the API at:
2958
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
2959
- * // - Login into gcloud by running:
2960
- * // `$ gcloud auth application-default login`
2961
- * // - Install the npm module by running:
2962
- * // `$ npm install googleapis`
2963
- *
2964
- * const {google} = require('googleapis');
2965
- * const slides = google.slides('v1');
2966
- *
2967
- * async function main() {
2968
- * const auth = new google.auth.GoogleAuth({
2969
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2970
- * scopes: [
2971
- * 'https://www.googleapis.com/auth/drive',
2972
- * 'https://www.googleapis.com/auth/drive.file',
2973
- * 'https://www.googleapis.com/auth/drive.readonly',
2974
- * 'https://www.googleapis.com/auth/presentations',
2975
- * 'https://www.googleapis.com/auth/presentations.readonly',
2976
- * ],
2977
- * });
2978
- *
2979
- * // Acquire an auth client, and bind it to all future calls
2980
- * const authClient = await auth.getClient();
2981
- * google.options({auth: authClient});
2982
- *
2983
- * // Do the magic
2984
- * const res = await slides.presentations.get({
2985
- * // The ID of the presentation to retrieve.
2986
- * presentationId: '[^/]+',
2987
- * });
2988
- * console.log(res.data);
2989
- *
2990
- * // Example response
2991
- * // {
2992
- * // "layouts": [],
2993
- * // "locale": "my_locale",
2994
- * // "masters": [],
2995
- * // "notesMaster": {},
2996
- * // "pageSize": {},
2997
- * // "presentationId": "my_presentationId",
2998
- * // "revisionId": "my_revisionId",
2999
- * // "slides": [],
3000
- * // "title": "my_title"
3001
- * // }
3002
- * }
3003
- *
3004
- * main().catch(e => {
3005
- * console.error(e);
3006
- * throw e;
3007
- * });
3008
- *
3009
- * ```
3010
2827
  *
3011
2828
  * @param params - Parameters for request
3012
2829
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3128,64 +2945,6 @@ export namespace slides_v1 {
3128
2945
 
3129
2946
  /**
3130
2947
  * Gets the latest version of the specified page in the presentation.
3131
- * @example
3132
- * ```js
3133
- * // Before running the sample:
3134
- * // - Enable the API at:
3135
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
3136
- * // - Login into gcloud by running:
3137
- * // `$ gcloud auth application-default login`
3138
- * // - Install the npm module by running:
3139
- * // `$ npm install googleapis`
3140
- *
3141
- * const {google} = require('googleapis');
3142
- * const slides = google.slides('v1');
3143
- *
3144
- * async function main() {
3145
- * const auth = new google.auth.GoogleAuth({
3146
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3147
- * scopes: [
3148
- * 'https://www.googleapis.com/auth/drive',
3149
- * 'https://www.googleapis.com/auth/drive.file',
3150
- * 'https://www.googleapis.com/auth/drive.readonly',
3151
- * 'https://www.googleapis.com/auth/presentations',
3152
- * 'https://www.googleapis.com/auth/presentations.readonly',
3153
- * ],
3154
- * });
3155
- *
3156
- * // Acquire an auth client, and bind it to all future calls
3157
- * const authClient = await auth.getClient();
3158
- * google.options({auth: authClient});
3159
- *
3160
- * // Do the magic
3161
- * const res = await slides.presentations.pages.get({
3162
- * // The object ID of the page to retrieve.
3163
- * pageObjectId: 'placeholder-value',
3164
- * // The ID of the presentation to retrieve.
3165
- * presentationId: 'placeholder-value',
3166
- * });
3167
- * console.log(res.data);
3168
- *
3169
- * // Example response
3170
- * // {
3171
- * // "layoutProperties": {},
3172
- * // "masterProperties": {},
3173
- * // "notesProperties": {},
3174
- * // "objectId": "my_objectId",
3175
- * // "pageElements": [],
3176
- * // "pageProperties": {},
3177
- * // "pageType": "my_pageType",
3178
- * // "revisionId": "my_revisionId",
3179
- * // "slideProperties": {}
3180
- * // }
3181
- * }
3182
- *
3183
- * main().catch(e => {
3184
- * console.error(e);
3185
- * throw e;
3186
- * });
3187
- *
3188
- * ```
3189
2948
  *
3190
2949
  * @param params - Parameters for request
3191
2950
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3273,62 +3032,6 @@ export namespace slides_v1 {
3273
3032
 
3274
3033
  /**
3275
3034
  * Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image. This request counts as an [expensive read request](/slides/limits) for quota purposes.
3276
- * @example
3277
- * ```js
3278
- * // Before running the sample:
3279
- * // - Enable the API at:
3280
- * // https://console.developers.google.com/apis/api/slides.googleapis.com
3281
- * // - Login into gcloud by running:
3282
- * // `$ gcloud auth application-default login`
3283
- * // - Install the npm module by running:
3284
- * // `$ npm install googleapis`
3285
- *
3286
- * const {google} = require('googleapis');
3287
- * const slides = google.slides('v1');
3288
- *
3289
- * async function main() {
3290
- * const auth = new google.auth.GoogleAuth({
3291
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3292
- * scopes: [
3293
- * 'https://www.googleapis.com/auth/drive',
3294
- * 'https://www.googleapis.com/auth/drive.file',
3295
- * 'https://www.googleapis.com/auth/drive.readonly',
3296
- * 'https://www.googleapis.com/auth/presentations',
3297
- * 'https://www.googleapis.com/auth/presentations.readonly',
3298
- * ],
3299
- * });
3300
- *
3301
- * // Acquire an auth client, and bind it to all future calls
3302
- * const authClient = await auth.getClient();
3303
- * google.options({auth: authClient});
3304
- *
3305
- * // Do the magic
3306
- * const res = await slides.presentations.pages.getThumbnail({
3307
- * // The object ID of the page whose thumbnail to retrieve.
3308
- * pageObjectId: 'placeholder-value',
3309
- * // The ID of the presentation to retrieve.
3310
- * presentationId: 'placeholder-value',
3311
- * // The optional mime type of the thumbnail image. If you don't specify the mime type, the mime type defaults to PNG.
3312
- * 'thumbnailProperties.mimeType': 'placeholder-value',
3313
- * // The optional thumbnail image size. If you don't specify the size, the server chooses a default size of the image.
3314
- * 'thumbnailProperties.thumbnailSize': 'placeholder-value',
3315
- * });
3316
- * console.log(res.data);
3317
- *
3318
- * // Example response
3319
- * // {
3320
- * // "contentUrl": "my_contentUrl",
3321
- * // "height": 0,
3322
- * // "width": 0
3323
- * // }
3324
- * }
3325
- *
3326
- * main().catch(e => {
3327
- * console.error(e);
3328
- * throw e;
3329
- * });
3330
- *
3331
- * ```
3332
3035
  *
3333
3036
  * @param params - Parameters for request
3334
3037
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.