From 51a5d6535790c7c937d7d3d1d1f3e3d1b74a5f06 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:34:26 -0700 Subject: [PATCH] feat: Automated regeneration of StreetViewPublish client (#10929) Auto-created at 2024-03-12 02:31:29 +0000 using the toys pull request generator. --- .../street_view_publish/v1/api/photo.ex | 2 +- .../v1/api/photo_sequences.ex | 2 +- .../street_view_publish/v1/api/photos.ex | 2 +- .../street_view_publish/v1/metadata.ex | 2 +- .../model/no_overlap_gps_failure_details.ex | 55 +++++++++++++++++++ .../street_view_publish/v1/model/operation.ex | 2 +- .../v1/model/processing_failure_details.ex | 4 ++ .../v1/model/update_photo_request.ex | 2 +- 8 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 clients/street_view_publish/lib/google_api/street_view_publish/v1/model/no_overlap_gps_failure_details.ex diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex index cc44105440..f33973f0a9 100644 --- a/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex @@ -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 diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo_sequences.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo_sequences.ex index 2ce42550be..2378e680ff 100644 --- a/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo_sequences.ex +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo_sequences.ex @@ -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 diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex index e4aa087000..70e84a0f89 100644 --- a/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex @@ -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. diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/metadata.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/metadata.ex index f5e521c6f9..a32faa150c 100644 --- a/clients/street_view_publish/lib/google_api/street_view_publish/v1/metadata.ex +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/metadata.ex @@ -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 diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/no_overlap_gps_failure_details.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/no_overlap_gps_failure_details.ex new file mode 100644 index 0000000000..317ad83024 --- /dev/null +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/no_overlap_gps_failure_details.ex @@ -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 diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/operation.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/operation.ex index 73a18be7d5..fdb1c97fd5 100644 --- a/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/operation.ex +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/operation.ex @@ -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 diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/processing_failure_details.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/processing_failure_details.ex index d505a57691..e36b45e39a 100644 --- a/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/processing_failure_details.ex +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/processing_failure_details.ex @@ -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. """ @@ -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 } @@ -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 diff --git a/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/update_photo_request.ex b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/update_photo_request.ex index 12da8fa80e..223518de15 100644 --- a/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/update_photo_request.ex +++ b/clients/street_view_publish/lib/google_api/street_view_publish/v1/model/update_photo_request.ex @@ -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