Skip to content

Commit

Permalink
feat: Automated regeneration of solar v1 client (#18935)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-05 09:50:48 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 5, 2024
1 parent c4995b4 commit 56e0637
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions api_names_out.yaml
Expand Up @@ -311140,6 +311140,7 @@
"/solar:v1/solar.buildingInsights.findClosest/location.longitude": location_longitude
"/solar:v1/solar.buildingInsights.findClosest/requiredQuality": required_quality
"/solar:v1/solar.dataLayers.get": get_data_layer
"/solar:v1/solar.dataLayers.get/exactQualityRequired": exact_quality_required
"/solar:v1/solar.dataLayers.get/location.latitude": location_latitude
"/solar:v1/solar.dataLayers.get/location.longitude": location_longitude
"/solar:v1/solar.dataLayers.get/pixelSizeMeters": pixel_size_meters
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-solar_v1/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release history for google-apis-solar_v1

### v0.2.0 (2024-05-05)

* Regenerated from discovery document revision 20240430

### v0.1.0 (2024-04-07)

* Regenerated from discovery document revision 20240327
Expand Down
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module SolarV1
# Version of the google-apis-solar_v1 gem
GEM_VERSION = "0.1.0"
GEM_VERSION = "0.2.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"

# Revision of the discovery document this client was generated from
REVISION = "20240327"
REVISION = "20240430"
end
end
end
Expand Up @@ -93,6 +93,13 @@ def find_building_insight_closest(location_latitude: nil, location_longitude: ni

# Gets solar information for a region surrounding a location. Returns an error
# with code `NOT_FOUND` if the location is outside the coverage area.
# @param [Boolean] exact_quality_required
# 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`.
# @param [Float] location_latitude
# The latitude in degrees. It must be in the range [-90.0, +90.0].
# @param [Float] location_longitude
Expand Down Expand Up @@ -134,10 +141,11 @@ def find_building_insight_closest(location_latitude: nil, location_longitude: ni
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_data_layer(location_latitude: nil, location_longitude: nil, pixel_size_meters: nil, radius_meters: nil, required_quality: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_data_layer(exact_quality_required: nil, location_latitude: nil, location_longitude: nil, pixel_size_meters: nil, radius_meters: nil, required_quality: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/dataLayers:get', options)
command.response_representation = Google::Apis::SolarV1::DataLayers::Representation
command.response_class = Google::Apis::SolarV1::DataLayers
command.query['exactQualityRequired'] = exact_quality_required unless exact_quality_required.nil?
command.query['location.latitude'] = location_latitude unless location_latitude.nil?
command.query['location.longitude'] = location_longitude unless location_longitude.nil?
command.query['pixelSizeMeters'] = pixel_size_meters unless pixel_size_meters.nil?
Expand Down

0 comments on commit 56e0637

Please sign in to comment.