@googleapis/solar 0.2.1 → 2.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,55 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/solar-v2.0.0...solar-v2.0.1) (2025-07-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **solar:** update the API ([2e3e0b9](https://github.com/googleapis/google-api-nodejs-client/commit/2e3e0b98179042e889bb842039ebdb4448b0ae22))
9
+ * **solar:** update the API ([6a93f68](https://github.com/googleapis/google-api-nodejs-client/commit/6a93f682ff13cfec9e105ed00011d851116063ea))
10
+
11
+ ## [2.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/solar-v1.0.1...solar-v2.0.0) (2025-06-30)
12
+
13
+
14
+ ### ⚠ BREAKING CHANGES
15
+
16
+ * upgrade to node 18
17
+
18
+ ### Features
19
+
20
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
26
+ * **solar:** update the API ([6a93f68](https://github.com/googleapis/google-api-nodejs-client/commit/6a93f682ff13cfec9e105ed00011d851116063ea))
27
+
28
+ ## [1.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/solar-v1.0.0...solar-v1.0.1) (2025-06-04)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
34
+
35
+ ## [1.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/solar-v0.2.2...solar-v1.0.0) (2025-05-29)
36
+
37
+
38
+ ### ⚠ BREAKING CHANGES
39
+
40
+ * upgrade to node 18
41
+
42
+ ### Features
43
+
44
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
45
+
46
+ ## [0.2.2](https://github.com/googleapis/google-api-nodejs-client/compare/solar-v0.2.1...solar-v0.2.2) (2025-03-18)
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * **solar:** update the API ([4d718f8](https://github.com/googleapis/google-api-nodejs-client/commit/4d718f85abc0dfa13a894c8b10c31a34b64bbaa6))
52
+
3
53
  ## [0.2.1](https://github.com/googleapis/google-api-nodejs-client/compare/solar-v0.2.0...solar-v0.2.1) (2025-02-04)
4
54
 
5
55
 
package/README.md CHANGED
@@ -4,6 +4,15 @@
4
4
 
5
5
  > Solar API.
6
6
 
7
+ ## Support status
8
+ **Note**: Google provides multiple libraries for this service. This library is in
9
+ maintenance mode, and will continue to be made available for users who have
10
+ existing applications. If you're building a new application, or modernizing a
11
+ legacy application, please use [@googlemaps/solar](https://www.npmjs.com/package/@googlemaps/solar) instead.
12
+ The [@googlemaps/solar](https://www.npmjs.com/package/@googlemaps/solar) library is faster, easier to use, and better maintained.
13
+
14
+ To learn more, see [Client Libraries Explained](https://cloud.google.com/apis/docs/client-libraries-explained).
15
+
7
16
  ## Installation
8
17
 
9
18
  ```sh
package/build/index.d.ts CHANGED
@@ -9,4 +9,4 @@ export declare function solar(options: solar_v1.Options): solar_v1.Solar;
9
9
  declare const auth: AuthPlus;
10
10
  export { auth };
11
11
  export { solar_v1 };
12
- export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
12
+ export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
@@ -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,6BAA8B;AAiBtB,yFAjBA,aAAQ,OAiBA;AAfH,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,aAAQ,CAAC,KAAK;CACnB,CAAC;AAIF,SAAgB,KAAK,CAEnB,gBAAyC;IAEzC,OAAO,IAAA,0BAAM,EAAI,OAAO,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AAC9D,CAAC;AALD,sBAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
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,6BAA8B;AAiBtB,yFAjBA,aAAQ,OAiBA;AAfH,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,aAAQ,CAAC,KAAK;CACnB,CAAC;AAIF,SAAgB,KAAK,CAEnB,gBAAyC;IAEzC,OAAO,IAAA,0BAAM,EAAI,OAAO,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AAC9D,CAAC;AALD,sBAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
package/build/v1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace solar_v1 {
5
5
  export interface Options extends GlobalOptions {
@@ -594,15 +594,77 @@ export declare namespace solar_v1 {
594
594
  context: APIRequestContext;
595
595
  constructor(context: APIRequestContext);
596
596
  /**
597
- * Locates the closest building to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.
597
+ * Locates the building whose centroid is closest to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.
598
+ * @example
599
+ * ```js
600
+ * // Before running the sample:
601
+ * // - Enable the API at:
602
+ * // https://console.developers.google.com/apis/api/solar.googleapis.com
603
+ * // - Login into gcloud by running:
604
+ * // ```sh
605
+ * // $ gcloud auth application-default login
606
+ * // ```
607
+ * // - Install the npm module by running:
608
+ * // ```sh
609
+ * // $ npm install googleapis
610
+ * // ```
611
+ *
612
+ * const {google} = require('googleapis');
613
+ * const solar = google.solar('v1');
614
+ *
615
+ * async function main() {
616
+ * const auth = new google.auth.GoogleAuth({
617
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
618
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
619
+ * });
620
+ *
621
+ * // Acquire an auth client, and bind it to all future calls
622
+ * const authClient = await auth.getClient();
623
+ * google.options({auth: authClient});
624
+ *
625
+ * // Do the magic
626
+ * const res = await solar.buildingInsights.findClosest({
627
+ * // Optional. Specifies the pre-GA features to enable.
628
+ * experiments: 'placeholder-value',
629
+ * // The latitude in degrees. It must be in the range [-90.0, +90.0].
630
+ * 'location.latitude': 'placeholder-value',
631
+ * // The longitude in degrees. It must be in the range [-180.0, +180.0].
632
+ * 'location.longitude': 'placeholder-value',
633
+ * // Optional. The minimum quality level allowed in the results. No result with lower quality than this will be returned. Not specifying this is equivalent to restricting to HIGH quality only.
634
+ * requiredQuality: 'placeholder-value',
635
+ * });
636
+ * console.log(res.data);
637
+ *
638
+ * // Example response
639
+ * // {
640
+ * // "administrativeArea": "my_administrativeArea",
641
+ * // "boundingBox": {},
642
+ * // "center": {},
643
+ * // "imageryDate": {},
644
+ * // "imageryProcessedDate": {},
645
+ * // "imageryQuality": "my_imageryQuality",
646
+ * // "name": "my_name",
647
+ * // "postalCode": "my_postalCode",
648
+ * // "regionCode": "my_regionCode",
649
+ * // "solarPotential": {},
650
+ * // "statisticalArea": "my_statisticalArea"
651
+ * // }
652
+ * }
653
+ *
654
+ * main().catch(e => {
655
+ * console.error(e);
656
+ * throw e;
657
+ * });
658
+ *
659
+ * ```
598
660
  *
599
661
  * @param params - Parameters for request
600
662
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
601
663
  * @param callback - Optional callback that handles the response.
602
664
  * @returns A promise if used with async/await, or void if used with a callback.
603
665
  */
604
- findClosest(params: Params$Resource$Buildinginsights$Findclosest, options: StreamMethodOptions): GaxiosPromise<Readable>;
605
- findClosest(params?: Params$Resource$Buildinginsights$Findclosest, options?: MethodOptions): GaxiosPromise<Schema$BuildingInsights>;
666
+ findClosest(params: Params$Resource$Buildinginsights$Findclosest, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
667
+ findClosest(params?: Params$Resource$Buildinginsights$Findclosest, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BuildingInsights>>;
606
668
  findClosest(params: Params$Resource$Buildinginsights$Findclosest, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
607
669
  findClosest(params: Params$Resource$Buildinginsights$Findclosest, options: MethodOptions | BodyResponseCallback<Schema$BuildingInsights>, callback: BodyResponseCallback<Schema$BuildingInsights>): void;
608
670
  findClosest(params: Params$Resource$Buildinginsights$Findclosest, callback: BodyResponseCallback<Schema$BuildingInsights>): void;
@@ -631,14 +693,82 @@ export declare namespace solar_v1 {
631
693
  constructor(context: APIRequestContext);
632
694
  /**
633
695
  * Gets solar information for a region surrounding a location. Returns an error with code `NOT_FOUND` if the location is outside the coverage area.
696
+ * @example
697
+ * ```js
698
+ * // Before running the sample:
699
+ * // - Enable the API at:
700
+ * // https://console.developers.google.com/apis/api/solar.googleapis.com
701
+ * // - Login into gcloud by running:
702
+ * // ```sh
703
+ * // $ gcloud auth application-default login
704
+ * // ```
705
+ * // - Install the npm module by running:
706
+ * // ```sh
707
+ * // $ npm install googleapis
708
+ * // ```
709
+ *
710
+ * const {google} = require('googleapis');
711
+ * const solar = google.solar('v1');
712
+ *
713
+ * async function main() {
714
+ * const auth = new google.auth.GoogleAuth({
715
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
716
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
717
+ * });
718
+ *
719
+ * // Acquire an auth client, and bind it to all future calls
720
+ * const authClient = await auth.getClient();
721
+ * google.options({auth: authClient});
722
+ *
723
+ * // Do the magic
724
+ * const res = await solar.dataLayers.get({
725
+ * // Optional. Whether to require exact quality of the imagery. If set to false, the `required_quality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `required_quality` is set to MEDIUM. If set to true, `required_quality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `required_quality` is set to `MEDIUM`.
726
+ * exactQualityRequired: 'placeholder-value',
727
+ * // Optional. Specifies the pre-GA experiments to enable.
728
+ * experiments: 'placeholder-value',
729
+ * // The latitude in degrees. It must be in the range [-90.0, +90.0].
730
+ * 'location.latitude': 'placeholder-value',
731
+ * // The longitude in degrees. It must be in the range [-180.0, +180.0].
732
+ * 'location.longitude': 'placeholder-value',
733
+ * // Optional. The minimum scale, in meters per pixel, of the data to return. Values of 0.1 (the default, if this field is not set explicitly), 0.25, 0.5, and 1.0 are supported. Imagery components whose normal resolution is less than `pixel_size_meters` will be returned at the resolution specified by `pixel_size_meters`; imagery components whose normal resolution is equal to or greater than `pixel_size_meters` will be returned at that normal resolution.
734
+ * pixelSizeMeters: 'placeholder-value',
735
+ * // Required. The radius, in meters, defining the region surrounding that centre point for which data should be returned. The limitations on this value are: * Any value up to 100m can always be specified. * Values over 100m can be specified, as long as `radius_meters` <= `pixel_size_meters * 1000`. * However, for values over 175m, the `DataLayerView` in the request must not include monthly flux or hourly shade.
736
+ * radiusMeters: 'placeholder-value',
737
+ * // Optional. The minimum quality level allowed in the results. No result with lower quality than this will be returned. Not specifying this is equivalent to restricting to HIGH quality only.
738
+ * requiredQuality: 'placeholder-value',
739
+ * // Optional. The desired subset of the data to return.
740
+ * view: 'placeholder-value',
741
+ * });
742
+ * console.log(res.data);
743
+ *
744
+ * // Example response
745
+ * // {
746
+ * // "annualFluxUrl": "my_annualFluxUrl",
747
+ * // "dsmUrl": "my_dsmUrl",
748
+ * // "hourlyShadeUrls": [],
749
+ * // "imageryDate": {},
750
+ * // "imageryProcessedDate": {},
751
+ * // "imageryQuality": "my_imageryQuality",
752
+ * // "maskUrl": "my_maskUrl",
753
+ * // "monthlyFluxUrl": "my_monthlyFluxUrl",
754
+ * // "rgbUrl": "my_rgbUrl"
755
+ * // }
756
+ * }
757
+ *
758
+ * main().catch(e => {
759
+ * console.error(e);
760
+ * throw e;
761
+ * });
762
+ *
763
+ * ```
634
764
  *
635
765
  * @param params - Parameters for request
636
766
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
637
767
  * @param callback - Optional callback that handles the response.
638
768
  * @returns A promise if used with async/await, or void if used with a callback.
639
769
  */
640
- get(params: Params$Resource$Datalayers$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
641
- get(params?: Params$Resource$Datalayers$Get, options?: MethodOptions): GaxiosPromise<Schema$DataLayers>;
770
+ get(params: Params$Resource$Datalayers$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
771
+ get(params?: Params$Resource$Datalayers$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DataLayers>>;
642
772
  get(params: Params$Resource$Datalayers$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
643
773
  get(params: Params$Resource$Datalayers$Get, options: MethodOptions | BodyResponseCallback<Schema$DataLayers>, callback: BodyResponseCallback<Schema$DataLayers>): void;
644
774
  get(params: Params$Resource$Datalayers$Get, callback: BodyResponseCallback<Schema$DataLayers>): void;
@@ -683,14 +813,62 @@ export declare namespace solar_v1 {
683
813
  constructor(context: APIRequestContext);
684
814
  /**
685
815
  * Returns an image by its ID.
816
+ * @example
817
+ * ```js
818
+ * // Before running the sample:
819
+ * // - Enable the API at:
820
+ * // https://console.developers.google.com/apis/api/solar.googleapis.com
821
+ * // - Login into gcloud by running:
822
+ * // ```sh
823
+ * // $ gcloud auth application-default login
824
+ * // ```
825
+ * // - Install the npm module by running:
826
+ * // ```sh
827
+ * // $ npm install googleapis
828
+ * // ```
829
+ *
830
+ * const {google} = require('googleapis');
831
+ * const solar = google.solar('v1');
832
+ *
833
+ * async function main() {
834
+ * const auth = new google.auth.GoogleAuth({
835
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
836
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
837
+ * });
838
+ *
839
+ * // Acquire an auth client, and bind it to all future calls
840
+ * const authClient = await auth.getClient();
841
+ * google.options({auth: authClient});
842
+ *
843
+ * // Do the magic
844
+ * const res = await solar.geoTiff.get({
845
+ * // Required. The ID of the asset being requested.
846
+ * id: 'placeholder-value',
847
+ * });
848
+ * console.log(res.data);
849
+ *
850
+ * // Example response
851
+ * // {
852
+ * // "contentType": "my_contentType",
853
+ * // "data": "my_data",
854
+ * // "extensions": []
855
+ * // }
856
+ * }
857
+ *
858
+ * main().catch(e => {
859
+ * console.error(e);
860
+ * throw e;
861
+ * });
862
+ *
863
+ * ```
686
864
  *
687
865
  * @param params - Parameters for request
688
866
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
689
867
  * @param callback - Optional callback that handles the response.
690
868
  * @returns A promise if used with async/await, or void if used with a callback.
691
869
  */
692
- get(params: Params$Resource$Geotiff$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
693
- get(params?: Params$Resource$Geotiff$Get, options?: MethodOptions): GaxiosPromise<Schema$HttpBody>;
870
+ get(params: Params$Resource$Geotiff$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
871
+ get(params?: Params$Resource$Geotiff$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>;
694
872
  get(params: Params$Resource$Geotiff$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
695
873
  get(params: Params$Resource$Geotiff$Get, options: MethodOptions | BodyResponseCallback<Schema$HttpBody>, callback: BodyResponseCallback<Schema$HttpBody>): void;
696
874
  get(params: Params$Resource$Geotiff$Get, callback: BodyResponseCallback<Schema$HttpBody>): void;
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,QAAQ,CAm7BxB;AAn7BD,WAAiB,QAAQ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D,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM,GAAG,EAAiC,CAAC;gBAC3C,OAAO,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,+BAA+B,CAAC;YACnE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,iBAAiB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChE,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,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,EAAkB,UAAU,CAAC,CAAC;aACtD;QACH,CAAC;KACF;IA5IY,yBAAgB,mBA4I5B,CAAA;AAQH,CAAC,EA9mCgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA8mCxB"}
package/index.ts CHANGED
@@ -38,7 +38,6 @@ export {
38
38
  APIRequestContext,
39
39
  GoogleConfigurable,
40
40
  StreamMethodOptions,
41
- GaxiosPromise,
42
41
  MethodOptions,
43
42
  BodyResponseCallback,
44
43
  } from 'googleapis-common';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/solar",
3
- "version": "0.2.1",
3
+ "version": "2.0.1",
4
4
  "description": "solar",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^7.0.0"
31
+ "googleapis-common": "^8.0.2-rc.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
package/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -651,7 +651,69 @@ export namespace solar_v1 {
651
651
  }
652
652
 
653
653
  /**
654
- * Locates the closest building to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.
654
+ * Locates the building whose centroid is closest to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.
655
+ * @example
656
+ * ```js
657
+ * // Before running the sample:
658
+ * // - Enable the API at:
659
+ * // https://console.developers.google.com/apis/api/solar.googleapis.com
660
+ * // - Login into gcloud by running:
661
+ * // ```sh
662
+ * // $ gcloud auth application-default login
663
+ * // ```
664
+ * // - Install the npm module by running:
665
+ * // ```sh
666
+ * // $ npm install googleapis
667
+ * // ```
668
+ *
669
+ * const {google} = require('googleapis');
670
+ * const solar = google.solar('v1');
671
+ *
672
+ * async function main() {
673
+ * const auth = new google.auth.GoogleAuth({
674
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
675
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
676
+ * });
677
+ *
678
+ * // Acquire an auth client, and bind it to all future calls
679
+ * const authClient = await auth.getClient();
680
+ * google.options({auth: authClient});
681
+ *
682
+ * // Do the magic
683
+ * const res = await solar.buildingInsights.findClosest({
684
+ * // Optional. Specifies the pre-GA features to enable.
685
+ * experiments: 'placeholder-value',
686
+ * // The latitude in degrees. It must be in the range [-90.0, +90.0].
687
+ * 'location.latitude': 'placeholder-value',
688
+ * // The longitude in degrees. It must be in the range [-180.0, +180.0].
689
+ * 'location.longitude': 'placeholder-value',
690
+ * // Optional. The minimum quality level allowed in the results. No result with lower quality than this will be returned. Not specifying this is equivalent to restricting to HIGH quality only.
691
+ * requiredQuality: 'placeholder-value',
692
+ * });
693
+ * console.log(res.data);
694
+ *
695
+ * // Example response
696
+ * // {
697
+ * // "administrativeArea": "my_administrativeArea",
698
+ * // "boundingBox": {},
699
+ * // "center": {},
700
+ * // "imageryDate": {},
701
+ * // "imageryProcessedDate": {},
702
+ * // "imageryQuality": "my_imageryQuality",
703
+ * // "name": "my_name",
704
+ * // "postalCode": "my_postalCode",
705
+ * // "regionCode": "my_regionCode",
706
+ * // "solarPotential": {},
707
+ * // "statisticalArea": "my_statisticalArea"
708
+ * // }
709
+ * }
710
+ *
711
+ * main().catch(e => {
712
+ * console.error(e);
713
+ * throw e;
714
+ * });
715
+ *
716
+ * ```
655
717
  *
656
718
  * @param params - Parameters for request
657
719
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -661,11 +723,11 @@ export namespace solar_v1 {
661
723
  findClosest(
662
724
  params: Params$Resource$Buildinginsights$Findclosest,
663
725
  options: StreamMethodOptions
664
- ): GaxiosPromise<Readable>;
726
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
665
727
  findClosest(
666
728
  params?: Params$Resource$Buildinginsights$Findclosest,
667
729
  options?: MethodOptions
668
- ): GaxiosPromise<Schema$BuildingInsights>;
730
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BuildingInsights>>;
669
731
  findClosest(
670
732
  params: Params$Resource$Buildinginsights$Findclosest,
671
733
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -694,7 +756,10 @@ export namespace solar_v1 {
694
756
  callback?:
695
757
  | BodyResponseCallback<Schema$BuildingInsights>
696
758
  | BodyResponseCallback<Readable>
697
- ): void | GaxiosPromise<Schema$BuildingInsights> | GaxiosPromise<Readable> {
759
+ ):
760
+ | void
761
+ | Promise<GaxiosResponseWithHTTP2<Schema$BuildingInsights>>
762
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
698
763
  let params = (paramsOrCallback ||
699
764
  {}) as Params$Resource$Buildinginsights$Findclosest;
700
765
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -767,6 +832,74 @@ export namespace solar_v1 {
767
832
 
768
833
  /**
769
834
  * Gets solar information for a region surrounding a location. Returns an error with code `NOT_FOUND` if the location is outside the coverage area.
835
+ * @example
836
+ * ```js
837
+ * // Before running the sample:
838
+ * // - Enable the API at:
839
+ * // https://console.developers.google.com/apis/api/solar.googleapis.com
840
+ * // - Login into gcloud by running:
841
+ * // ```sh
842
+ * // $ gcloud auth application-default login
843
+ * // ```
844
+ * // - Install the npm module by running:
845
+ * // ```sh
846
+ * // $ npm install googleapis
847
+ * // ```
848
+ *
849
+ * const {google} = require('googleapis');
850
+ * const solar = google.solar('v1');
851
+ *
852
+ * async function main() {
853
+ * const auth = new google.auth.GoogleAuth({
854
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
855
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
856
+ * });
857
+ *
858
+ * // Acquire an auth client, and bind it to all future calls
859
+ * const authClient = await auth.getClient();
860
+ * google.options({auth: authClient});
861
+ *
862
+ * // Do the magic
863
+ * const res = await solar.dataLayers.get({
864
+ * // Optional. Whether to require exact quality of the imagery. If set to false, the `required_quality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `required_quality` is set to MEDIUM. If set to true, `required_quality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `required_quality` is set to `MEDIUM`.
865
+ * exactQualityRequired: 'placeholder-value',
866
+ * // Optional. Specifies the pre-GA experiments to enable.
867
+ * experiments: 'placeholder-value',
868
+ * // The latitude in degrees. It must be in the range [-90.0, +90.0].
869
+ * 'location.latitude': 'placeholder-value',
870
+ * // The longitude in degrees. It must be in the range [-180.0, +180.0].
871
+ * 'location.longitude': 'placeholder-value',
872
+ * // Optional. The minimum scale, in meters per pixel, of the data to return. Values of 0.1 (the default, if this field is not set explicitly), 0.25, 0.5, and 1.0 are supported. Imagery components whose normal resolution is less than `pixel_size_meters` will be returned at the resolution specified by `pixel_size_meters`; imagery components whose normal resolution is equal to or greater than `pixel_size_meters` will be returned at that normal resolution.
873
+ * pixelSizeMeters: 'placeholder-value',
874
+ * // Required. The radius, in meters, defining the region surrounding that centre point for which data should be returned. The limitations on this value are: * Any value up to 100m can always be specified. * Values over 100m can be specified, as long as `radius_meters` <= `pixel_size_meters * 1000`. * However, for values over 175m, the `DataLayerView` in the request must not include monthly flux or hourly shade.
875
+ * radiusMeters: 'placeholder-value',
876
+ * // Optional. The minimum quality level allowed in the results. No result with lower quality than this will be returned. Not specifying this is equivalent to restricting to HIGH quality only.
877
+ * requiredQuality: 'placeholder-value',
878
+ * // Optional. The desired subset of the data to return.
879
+ * view: 'placeholder-value',
880
+ * });
881
+ * console.log(res.data);
882
+ *
883
+ * // Example response
884
+ * // {
885
+ * // "annualFluxUrl": "my_annualFluxUrl",
886
+ * // "dsmUrl": "my_dsmUrl",
887
+ * // "hourlyShadeUrls": [],
888
+ * // "imageryDate": {},
889
+ * // "imageryProcessedDate": {},
890
+ * // "imageryQuality": "my_imageryQuality",
891
+ * // "maskUrl": "my_maskUrl",
892
+ * // "monthlyFluxUrl": "my_monthlyFluxUrl",
893
+ * // "rgbUrl": "my_rgbUrl"
894
+ * // }
895
+ * }
896
+ *
897
+ * main().catch(e => {
898
+ * console.error(e);
899
+ * throw e;
900
+ * });
901
+ *
902
+ * ```
770
903
  *
771
904
  * @param params - Parameters for request
772
905
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -776,11 +909,11 @@ export namespace solar_v1 {
776
909
  get(
777
910
  params: Params$Resource$Datalayers$Get,
778
911
  options: StreamMethodOptions
779
- ): GaxiosPromise<Readable>;
912
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
780
913
  get(
781
914
  params?: Params$Resource$Datalayers$Get,
782
915
  options?: MethodOptions
783
- ): GaxiosPromise<Schema$DataLayers>;
916
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DataLayers>>;
784
917
  get(
785
918
  params: Params$Resource$Datalayers$Get,
786
919
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -809,7 +942,10 @@ export namespace solar_v1 {
809
942
  callback?:
810
943
  | BodyResponseCallback<Schema$DataLayers>
811
944
  | BodyResponseCallback<Readable>
812
- ): void | GaxiosPromise<Schema$DataLayers> | GaxiosPromise<Readable> {
945
+ ):
946
+ | void
947
+ | Promise<GaxiosResponseWithHTTP2<Schema$DataLayers>>
948
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
813
949
  let params = (paramsOrCallback || {}) as Params$Resource$Datalayers$Get;
814
950
  let options = (optionsOrCallback || {}) as MethodOptions;
815
951
 
@@ -893,6 +1029,54 @@ export namespace solar_v1 {
893
1029
 
894
1030
  /**
895
1031
  * Returns an image by its ID.
1032
+ * @example
1033
+ * ```js
1034
+ * // Before running the sample:
1035
+ * // - Enable the API at:
1036
+ * // https://console.developers.google.com/apis/api/solar.googleapis.com
1037
+ * // - Login into gcloud by running:
1038
+ * // ```sh
1039
+ * // $ gcloud auth application-default login
1040
+ * // ```
1041
+ * // - Install the npm module by running:
1042
+ * // ```sh
1043
+ * // $ npm install googleapis
1044
+ * // ```
1045
+ *
1046
+ * const {google} = require('googleapis');
1047
+ * const solar = google.solar('v1');
1048
+ *
1049
+ * async function main() {
1050
+ * const auth = new google.auth.GoogleAuth({
1051
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1052
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1053
+ * });
1054
+ *
1055
+ * // Acquire an auth client, and bind it to all future calls
1056
+ * const authClient = await auth.getClient();
1057
+ * google.options({auth: authClient});
1058
+ *
1059
+ * // Do the magic
1060
+ * const res = await solar.geoTiff.get({
1061
+ * // Required. The ID of the asset being requested.
1062
+ * id: 'placeholder-value',
1063
+ * });
1064
+ * console.log(res.data);
1065
+ *
1066
+ * // Example response
1067
+ * // {
1068
+ * // "contentType": "my_contentType",
1069
+ * // "data": "my_data",
1070
+ * // "extensions": []
1071
+ * // }
1072
+ * }
1073
+ *
1074
+ * main().catch(e => {
1075
+ * console.error(e);
1076
+ * throw e;
1077
+ * });
1078
+ *
1079
+ * ```
896
1080
  *
897
1081
  * @param params - Parameters for request
898
1082
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -902,11 +1086,11 @@ export namespace solar_v1 {
902
1086
  get(
903
1087
  params: Params$Resource$Geotiff$Get,
904
1088
  options: StreamMethodOptions
905
- ): GaxiosPromise<Readable>;
1089
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
906
1090
  get(
907
1091
  params?: Params$Resource$Geotiff$Get,
908
1092
  options?: MethodOptions
909
- ): GaxiosPromise<Schema$HttpBody>;
1093
+ ): Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>;
910
1094
  get(
911
1095
  params: Params$Resource$Geotiff$Get,
912
1096
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -935,7 +1119,10 @@ export namespace solar_v1 {
935
1119
  callback?:
936
1120
  | BodyResponseCallback<Schema$HttpBody>
937
1121
  | BodyResponseCallback<Readable>
938
- ): void | GaxiosPromise<Schema$HttpBody> | GaxiosPromise<Readable> {
1122
+ ):
1123
+ | void
1124
+ | Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>
1125
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
939
1126
  let params = (paramsOrCallback || {}) as Params$Resource$Geotiff$Get;
940
1127
  let options = (optionsOrCallback || {}) as MethodOptions;
941
1128