Skip to content

Commit

Permalink
feat: Automated regeneration of StreetViewPublish client (#10929)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 02:31:29 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 3685374 commit 51a5d65
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ defmodule GoogleApi.StreetViewPublish.V1.Api.Photo do
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:updateMask` (*type:* `String.t`) - Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` > Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.
* `:updateMask` (*type:* `String.t`) - Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` > Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.
* `:body` (*type:* `GoogleApi.StreetViewPublish.V1.Model.Photo.t`) -
* `opts` (*type:* `keyword()`) - Call options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule GoogleApi.StreetViewPublish.V1.Api.PhotoSequences do
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:filter` (*type:* `String.t`) - Optional. The filter expression. For example: `imagery_type=SPHERICAL`. The filters supported are: `imagery_type`, `processing_state`, `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`, and `filename_query`. See https://google.aip.dev/160 for more information. Filename queries should sent as a Phrase in order to support multple words and special characters by adding escaped quotes. Ex: filename_query="example of a phrase.mp4"
* `:filter` (*type:* `String.t`) - Optional. The filter expression. For example: `imagery_type=SPHERICAL`. The filters supported are: `imagery_type`, `processing_state`, `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`, `filename_query`, `min_capture_time_seconds`, `max_capture_time_seconds. See https://google.aip.dev/160 for more information. Filename queries should sent as a Phrase in order to support multiple words and special characters by adding escaped quotes. Ex: filename_query="example of a phrase.mp4"
* `:pageSize` (*type:* `integer()`) - Optional. The maximum number of photo sequences to return. `pageSize` must be non-negative. If `pageSize` is zero or is not provided, the default page size of 100 is used. The number of photo sequences returned in the response may be less than `pageSize` if the number of matches is less than `pageSize`. This is currently unimplemented but is in process.
* `:pageToken` (*type:* `String.t`) - Optional. The nextPageToken value returned from a previous ListPhotoSequences request, if any.
* `opts` (*type:* `keyword()`) - Call options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ defmodule GoogleApi.StreetViewPublish.V1.Api.Photos do
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:filter` (*type:* `String.t`) - Optional. The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. The filters supported are: `placeId`, `min_latitude`, `max_latitude`, `min_longitude`, and `max_longitude`. See https://google.aip.dev/160 for more information.
* `:filter` (*type:* `String.t`) - Optional. The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. The filters supported are: `placeId`, `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`. See https://google.aip.dev/160 for more information.
* `:languageCode` (*type:* `String.t`) - Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user's language preference for Google services is used.
* `:pageSize` (*type:* `integer()`) - Optional. The maximum number of photos to return. `pageSize` must be non-negative. If `pageSize` is zero or is not provided, the default page size of 100 is used. The number of photos returned in the response may be less than `pageSize` if the number of photos that belong to the user is less than `pageSize`.
* `:pageToken` (*type:* `String.t`) - Optional. The nextPageToken value returned from a previous ListPhotos request, if any.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.StreetViewPublish.V1 do
API client metadata for GoogleApi.StreetViewPublish.V1.
"""

@discovery_revision "20220720"
@discovery_revision "20240310"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.StreetViewPublish.V1.Model.NoOverlapGpsFailureDetails do
@moduledoc """
Details related to PhotoSequenceProcessingFailureReason#NO_OVERLAP_GPS.
## Attributes
* `gpsEndTime` (*type:* `DateTime.t`, *default:* `nil`) - Time of last recorded GPS point.
* `gpsStartTime` (*type:* `DateTime.t`, *default:* `nil`) - Time of first recorded GPS point.
* `videoEndTime` (*type:* `DateTime.t`, *default:* `nil`) - End time of video.
* `videoStartTime` (*type:* `DateTime.t`, *default:* `nil`) - Start time of video.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:gpsEndTime => DateTime.t() | nil,
:gpsStartTime => DateTime.t() | nil,
:videoEndTime => DateTime.t() | nil,
:videoStartTime => DateTime.t() | nil
}

field(:gpsEndTime, as: DateTime)
field(:gpsStartTime, as: DateTime)
field(:videoEndTime, as: DateTime)
field(:videoStartTime, as: DateTime)
end

defimpl Poison.Decoder, for: GoogleApi.StreetViewPublish.V1.Model.NoOverlapGpsFailureDetails do
def decode(value, options) do
GoogleApi.StreetViewPublish.V1.Model.NoOverlapGpsFailureDetails.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.StreetViewPublish.V1.Model.NoOverlapGpsFailureDetails do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule GoogleApi.StreetViewPublish.V1.Model.Operation do
* `error` (*type:* `GoogleApi.StreetViewPublish.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation.
* `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
* `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ defmodule GoogleApi.StreetViewPublish.V1.Model.ProcessingFailureDetails do
* `gpsDataGapDetails` (*type:* `GoogleApi.StreetViewPublish.V1.Model.GpsDataGapFailureDetails.t`, *default:* `nil`) - See GpsDataGapFailureDetails.
* `imuDataGapDetails` (*type:* `GoogleApi.StreetViewPublish.V1.Model.ImuDataGapFailureDetails.t`, *default:* `nil`) - See ImuDataGapFailureDetails.
* `insufficientGpsDetails` (*type:* `GoogleApi.StreetViewPublish.V1.Model.InsufficientGpsFailureDetails.t`, *default:* `nil`) - See InsufficientGpsFailureDetails.
* `noOverlapGpsDetails` (*type:* `GoogleApi.StreetViewPublish.V1.Model.NoOverlapGpsFailureDetails.t`, *default:* `nil`) - See NoOverlapGpsFailureDetails.
* `notOutdoorsDetails` (*type:* `GoogleApi.StreetViewPublish.V1.Model.NotOutdoorsFailureDetails.t`, *default:* `nil`) - See NotOutdoorsFailureDetails.
"""

Expand All @@ -36,6 +37,8 @@ defmodule GoogleApi.StreetViewPublish.V1.Model.ProcessingFailureDetails do
GoogleApi.StreetViewPublish.V1.Model.ImuDataGapFailureDetails.t() | nil,
:insufficientGpsDetails =>
GoogleApi.StreetViewPublish.V1.Model.InsufficientGpsFailureDetails.t() | nil,
:noOverlapGpsDetails =>
GoogleApi.StreetViewPublish.V1.Model.NoOverlapGpsFailureDetails.t() | nil,
:notOutdoorsDetails =>
GoogleApi.StreetViewPublish.V1.Model.NotOutdoorsFailureDetails.t() | nil
}
Expand All @@ -47,6 +50,7 @@ defmodule GoogleApi.StreetViewPublish.V1.Model.ProcessingFailureDetails do
as: GoogleApi.StreetViewPublish.V1.Model.InsufficientGpsFailureDetails
)

field(:noOverlapGpsDetails, as: GoogleApi.StreetViewPublish.V1.Model.NoOverlapGpsFailureDetails)
field(:notOutdoorsDetails, as: GoogleApi.StreetViewPublish.V1.Model.NotOutdoorsFailureDetails)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.StreetViewPublish.V1.Model.UpdatePhotoRequest do
## Attributes
* `photo` (*type:* `GoogleApi.StreetViewPublish.V1.Model.Photo.t`, *default:* `nil`) - Required. Photo object containing the new metadata.
* `updateMask` (*type:* `String.t`, *default:* `nil`) - Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` > Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.
* `updateMask` (*type:* `String.t`, *default:* `nil`) - Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` > Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.
"""

use GoogleApi.Gax.ModelBase
Expand Down

0 comments on commit 51a5d65

Please sign in to comment.