google-apis-streetviewpublish_v1 0.18.0 → 0.19.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/streetviewpublish_v1/classes.rb +245 -0
- data/lib/google/apis/streetviewpublish_v1/gem_version.rb +2 -2
- data/lib/google/apis/streetviewpublish_v1/representations.rb +96 -0
- data/lib/google/apis/streetviewpublish_v1/service.rb +202 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab1f02b818a7cdf2022189195945fce361903cdbaf2ef4292725ca7b1fee10be
|
4
|
+
data.tar.gz: 4b35d02deb3d61e35abc3020f7f52ea340efd27b2bac132c0185a969bd260454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d2ecc57be2248388fa957cdf8dc9e890177226a8b7d54b21c0ffd63d6e5d03e39d014a85f26450a1aee87302a1052b258165a5176cbbacfb791acd56047f0bb
|
7
|
+
data.tar.gz: dc8dd3783d5827354d9e9411de2b8f91ce5e941dff79f7f52ce3fe0afd7586427004f5536d888908dff54f5e9548c6bf188abb3cdf5757ba438fea7192a45595
|
data/CHANGELOG.md
CHANGED
@@ -156,6 +156,40 @@ module Google
|
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
159
|
+
# IMU data from the device sensors.
|
160
|
+
class Imu
|
161
|
+
include Google::Apis::Core::Hashable
|
162
|
+
|
163
|
+
# The accelerometer measurements in meters/sec^2 with increasing timestamps from
|
164
|
+
# devices.
|
165
|
+
# Corresponds to the JSON property `accelMpsps`
|
166
|
+
# @return [Array<Google::Apis::StreetviewpublishV1::Measurement3d>]
|
167
|
+
attr_accessor :accel_mpsps
|
168
|
+
|
169
|
+
# The gyroscope measurements in radians/sec with increasing timestamps from
|
170
|
+
# devices.
|
171
|
+
# Corresponds to the JSON property `gyroRps`
|
172
|
+
# @return [Array<Google::Apis::StreetviewpublishV1::Measurement3d>]
|
173
|
+
attr_accessor :gyro_rps
|
174
|
+
|
175
|
+
# The magnetometer measurements of the magnetic field in microtesla (uT) with
|
176
|
+
# increasing timestamps from devices.
|
177
|
+
# Corresponds to the JSON property `magUt`
|
178
|
+
# @return [Array<Google::Apis::StreetviewpublishV1::Measurement3d>]
|
179
|
+
attr_accessor :mag_ut
|
180
|
+
|
181
|
+
def initialize(**args)
|
182
|
+
update!(**args)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Update properties of this object
|
186
|
+
def update!(**args)
|
187
|
+
@accel_mpsps = args[:accel_mpsps] if args.key?(:accel_mpsps)
|
188
|
+
@gyro_rps = args[:gyro_rps] if args.key?(:gyro_rps)
|
189
|
+
@mag_ut = args[:mag_ut] if args.key?(:mag_ut)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
159
193
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
160
194
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
161
195
|
# specified otherwise, this object must conform to the WGS84 standard. Values
|
@@ -184,6 +218,37 @@ module Google
|
|
184
218
|
end
|
185
219
|
end
|
186
220
|
|
221
|
+
# A rectangle in geographical coordinates.
|
222
|
+
class LatLngBounds
|
223
|
+
include Google::Apis::Core::Hashable
|
224
|
+
|
225
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
226
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
227
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
228
|
+
# must be within normalized ranges.
|
229
|
+
# Corresponds to the JSON property `northeast`
|
230
|
+
# @return [Google::Apis::StreetviewpublishV1::LatLng]
|
231
|
+
attr_accessor :northeast
|
232
|
+
|
233
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
234
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
235
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
236
|
+
# must be within normalized ranges.
|
237
|
+
# Corresponds to the JSON property `southwest`
|
238
|
+
# @return [Google::Apis::StreetviewpublishV1::LatLng]
|
239
|
+
attr_accessor :southwest
|
240
|
+
|
241
|
+
def initialize(**args)
|
242
|
+
update!(**args)
|
243
|
+
end
|
244
|
+
|
245
|
+
# Update properties of this object
|
246
|
+
def update!(**args)
|
247
|
+
@northeast = args[:northeast] if args.key?(:northeast)
|
248
|
+
@southwest = args[:southwest] if args.key?(:southwest)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
187
252
|
# Level information containing level number and its corresponding name.
|
188
253
|
class Level
|
189
254
|
include Google::Apis::Core::Hashable
|
@@ -213,6 +278,38 @@ module Google
|
|
213
278
|
end
|
214
279
|
end
|
215
280
|
|
281
|
+
# Response to list all photo sequences that belong to a user.
|
282
|
+
class ListPhotoSequencesResponse
|
283
|
+
include Google::Apis::Core::Hashable
|
284
|
+
|
285
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
286
|
+
# results in the list.
|
287
|
+
# Corresponds to the JSON property `nextPageToken`
|
288
|
+
# @return [String]
|
289
|
+
attr_accessor :next_page_token
|
290
|
+
|
291
|
+
# List of photo sequences via Operation interface. The maximum number of items
|
292
|
+
# returned is based on the pageSize field in the request. Each item in the list
|
293
|
+
# can have three possible states, * `Operation.done` = false, if the processing
|
294
|
+
# of PhotoSequence is not finished yet. * `Operation.done` = true and `Operation.
|
295
|
+
# error` is populated, if there was an error in processing. * `Operation.done` =
|
296
|
+
# true and `Operation.response` contains a PhotoSequence message, In each
|
297
|
+
# sequence, only Id is populated.
|
298
|
+
# Corresponds to the JSON property `photoSequences`
|
299
|
+
# @return [Array<Google::Apis::StreetviewpublishV1::Operation>]
|
300
|
+
attr_accessor :photo_sequences
|
301
|
+
|
302
|
+
def initialize(**args)
|
303
|
+
update!(**args)
|
304
|
+
end
|
305
|
+
|
306
|
+
# Update properties of this object
|
307
|
+
def update!(**args)
|
308
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
309
|
+
@photo_sequences = args[:photo_sequences] if args.key?(:photo_sequences)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
216
313
|
# Response to list all photos that belong to a user.
|
217
314
|
class ListPhotosResponse
|
218
315
|
include Google::Apis::Core::Hashable
|
@@ -240,6 +337,43 @@ module Google
|
|
240
337
|
end
|
241
338
|
end
|
242
339
|
|
340
|
+
# A Generic 3d measurement sample.
|
341
|
+
class Measurement3d
|
342
|
+
include Google::Apis::Core::Hashable
|
343
|
+
|
344
|
+
# The timestamp of the IMU measurement.
|
345
|
+
# Corresponds to the JSON property `captureTime`
|
346
|
+
# @return [String]
|
347
|
+
attr_accessor :capture_time
|
348
|
+
|
349
|
+
# The sensor measurement in the x axis.
|
350
|
+
# Corresponds to the JSON property `x`
|
351
|
+
# @return [Float]
|
352
|
+
attr_accessor :x
|
353
|
+
|
354
|
+
# The sensor measurement in the y axis.
|
355
|
+
# Corresponds to the JSON property `y`
|
356
|
+
# @return [Float]
|
357
|
+
attr_accessor :y
|
358
|
+
|
359
|
+
# The sensor measurement in the z axis.
|
360
|
+
# Corresponds to the JSON property `z`
|
361
|
+
# @return [Float]
|
362
|
+
attr_accessor :z
|
363
|
+
|
364
|
+
def initialize(**args)
|
365
|
+
update!(**args)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Update properties of this object
|
369
|
+
def update!(**args)
|
370
|
+
@capture_time = args[:capture_time] if args.key?(:capture_time)
|
371
|
+
@x = args[:x] if args.key?(:x)
|
372
|
+
@y = args[:y] if args.key?(:y)
|
373
|
+
@z = args[:z] if args.key?(:z)
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
243
377
|
# This resource represents a long-running operation that is the result of a
|
244
378
|
# network API call.
|
245
379
|
class Operation
|
@@ -447,6 +581,117 @@ module Google
|
|
447
581
|
end
|
448
582
|
end
|
449
583
|
|
584
|
+
# A sequence of 360 photos along with metadata.
|
585
|
+
class PhotoSequence
|
586
|
+
include Google::Apis::Core::Hashable
|
587
|
+
|
588
|
+
# Optional. Absolute time when the photo sequence starts to be captured. If the
|
589
|
+
# photo sequence is a video, this is the start time of the video. If this field
|
590
|
+
# is populated in input, it overrides the capture time in the video or XDM file.
|
591
|
+
# Corresponds to the JSON property `captureTimeOverride`
|
592
|
+
# @return [String]
|
593
|
+
attr_accessor :capture_time_override
|
594
|
+
|
595
|
+
# Output only. The computed distance of the photo sequence in meters.
|
596
|
+
# Corresponds to the JSON property `distanceMeters`
|
597
|
+
# @return [Float]
|
598
|
+
attr_accessor :distance_meters
|
599
|
+
|
600
|
+
# Output only. If this sequence has processing_state = FAILED, this will contain
|
601
|
+
# the reason why it failed. If the processing_state is any other value, this
|
602
|
+
# field will be unset.
|
603
|
+
# Corresponds to the JSON property `failureReason`
|
604
|
+
# @return [String]
|
605
|
+
attr_accessor :failure_reason
|
606
|
+
|
607
|
+
# Output only. The filename of the upload. Does not include the directory path.
|
608
|
+
# Only available if the sequence was uploaded on a platform that provides the
|
609
|
+
# filename.
|
610
|
+
# Corresponds to the JSON property `filename`
|
611
|
+
# @return [String]
|
612
|
+
attr_accessor :filename
|
613
|
+
|
614
|
+
# Input only. If both raw_gps_timeline and the Camera Motion Metadata Track (
|
615
|
+
# CAMM) contain GPS measurements, indicate which takes precedence.
|
616
|
+
# Corresponds to the JSON property `gpsSource`
|
617
|
+
# @return [String]
|
618
|
+
attr_accessor :gps_source
|
619
|
+
|
620
|
+
# Output only. Unique identifier for the photo sequence. This also acts as a
|
621
|
+
# long running operation ID if uploading is performed asynchronously.
|
622
|
+
# Corresponds to the JSON property `id`
|
623
|
+
# @return [String]
|
624
|
+
attr_accessor :id
|
625
|
+
|
626
|
+
# IMU data from the device sensors.
|
627
|
+
# Corresponds to the JSON property `imu`
|
628
|
+
# @return [Google::Apis::StreetviewpublishV1::Imu]
|
629
|
+
attr_accessor :imu
|
630
|
+
|
631
|
+
# Output only. Photos with increasing timestamps.
|
632
|
+
# Corresponds to the JSON property `photos`
|
633
|
+
# @return [Array<Google::Apis::StreetviewpublishV1::Photo>]
|
634
|
+
attr_accessor :photos
|
635
|
+
|
636
|
+
# Output only. The processing state of this sequence.
|
637
|
+
# Corresponds to the JSON property `processingState`
|
638
|
+
# @return [String]
|
639
|
+
attr_accessor :processing_state
|
640
|
+
|
641
|
+
# Input only. Raw GPS measurements with increasing timestamps from the device
|
642
|
+
# that aren't time synced with each photo. These raw measurements will be used
|
643
|
+
# to infer the pose of each frame. Required in input when InputType is VIDEO and
|
644
|
+
# raw GPS measurements are not in Camera Motion Metadata Track (CAMM). User can
|
645
|
+
# indicate which takes precedence using gps_source if raw GPS measurements are
|
646
|
+
# provided in both raw_gps_timeline and Camera Motion Metadata Track (CAMM).
|
647
|
+
# Corresponds to the JSON property `rawGpsTimeline`
|
648
|
+
# @return [Array<Google::Apis::StreetviewpublishV1::Pose>]
|
649
|
+
attr_accessor :raw_gps_timeline
|
650
|
+
|
651
|
+
# A rectangle in geographical coordinates.
|
652
|
+
# Corresponds to the JSON property `sequenceBounds`
|
653
|
+
# @return [Google::Apis::StreetviewpublishV1::LatLngBounds]
|
654
|
+
attr_accessor :sequence_bounds
|
655
|
+
|
656
|
+
# Upload reference for media files.
|
657
|
+
# Corresponds to the JSON property `uploadReference`
|
658
|
+
# @return [Google::Apis::StreetviewpublishV1::UploadRef]
|
659
|
+
attr_accessor :upload_reference
|
660
|
+
|
661
|
+
# Output only. The time this photo sequence was created in uSV Store service.
|
662
|
+
# Corresponds to the JSON property `uploadTime`
|
663
|
+
# @return [String]
|
664
|
+
attr_accessor :upload_time
|
665
|
+
|
666
|
+
# Output only. The total number of views that all the published images in this
|
667
|
+
# PhotoSequence have received.
|
668
|
+
# Corresponds to the JSON property `viewCount`
|
669
|
+
# @return [Fixnum]
|
670
|
+
attr_accessor :view_count
|
671
|
+
|
672
|
+
def initialize(**args)
|
673
|
+
update!(**args)
|
674
|
+
end
|
675
|
+
|
676
|
+
# Update properties of this object
|
677
|
+
def update!(**args)
|
678
|
+
@capture_time_override = args[:capture_time_override] if args.key?(:capture_time_override)
|
679
|
+
@distance_meters = args[:distance_meters] if args.key?(:distance_meters)
|
680
|
+
@failure_reason = args[:failure_reason] if args.key?(:failure_reason)
|
681
|
+
@filename = args[:filename] if args.key?(:filename)
|
682
|
+
@gps_source = args[:gps_source] if args.key?(:gps_source)
|
683
|
+
@id = args[:id] if args.key?(:id)
|
684
|
+
@imu = args[:imu] if args.key?(:imu)
|
685
|
+
@photos = args[:photos] if args.key?(:photos)
|
686
|
+
@processing_state = args[:processing_state] if args.key?(:processing_state)
|
687
|
+
@raw_gps_timeline = args[:raw_gps_timeline] if args.key?(:raw_gps_timeline)
|
688
|
+
@sequence_bounds = args[:sequence_bounds] if args.key?(:sequence_bounds)
|
689
|
+
@upload_reference = args[:upload_reference] if args.key?(:upload_reference)
|
690
|
+
@upload_time = args[:upload_time] if args.key?(:upload_time)
|
691
|
+
@view_count = args[:view_count] if args.key?(:view_count)
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
450
695
|
# Place metadata for an entity.
|
451
696
|
class Place
|
452
697
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module StreetviewpublishV1
|
18
18
|
# Version of the google-apis-streetviewpublish_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.7.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220623"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -64,24 +64,48 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class Imu
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
67
73
|
class LatLng
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
75
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class LatLngBounds
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class Level
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
76
88
|
include Google::Apis::Core::JsonObjectSupport
|
77
89
|
end
|
78
90
|
|
91
|
+
class ListPhotoSequencesResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
79
97
|
class ListPhotosResponse
|
80
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
99
|
|
82
100
|
include Google::Apis::Core::JsonObjectSupport
|
83
101
|
end
|
84
102
|
|
103
|
+
class Measurement3d
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
85
109
|
class Operation
|
86
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
111
|
|
@@ -106,6 +130,12 @@ module Google
|
|
106
130
|
include Google::Apis::Core::JsonObjectSupport
|
107
131
|
end
|
108
132
|
|
133
|
+
class PhotoSequence
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
109
139
|
class Place
|
110
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
141
|
|
@@ -189,6 +219,18 @@ module Google
|
|
189
219
|
end
|
190
220
|
end
|
191
221
|
|
222
|
+
class Imu
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
collection :accel_mpsps, as: 'accelMpsps', class: Google::Apis::StreetviewpublishV1::Measurement3d, decorator: Google::Apis::StreetviewpublishV1::Measurement3d::Representation
|
226
|
+
|
227
|
+
collection :gyro_rps, as: 'gyroRps', class: Google::Apis::StreetviewpublishV1::Measurement3d, decorator: Google::Apis::StreetviewpublishV1::Measurement3d::Representation
|
228
|
+
|
229
|
+
collection :mag_ut, as: 'magUt', class: Google::Apis::StreetviewpublishV1::Measurement3d, decorator: Google::Apis::StreetviewpublishV1::Measurement3d::Representation
|
230
|
+
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
192
234
|
class LatLng
|
193
235
|
# @private
|
194
236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -197,6 +239,16 @@ module Google
|
|
197
239
|
end
|
198
240
|
end
|
199
241
|
|
242
|
+
class LatLngBounds
|
243
|
+
# @private
|
244
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
245
|
+
property :northeast, as: 'northeast', class: Google::Apis::StreetviewpublishV1::LatLng, decorator: Google::Apis::StreetviewpublishV1::LatLng::Representation
|
246
|
+
|
247
|
+
property :southwest, as: 'southwest', class: Google::Apis::StreetviewpublishV1::LatLng, decorator: Google::Apis::StreetviewpublishV1::LatLng::Representation
|
248
|
+
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
200
252
|
class Level
|
201
253
|
# @private
|
202
254
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -205,6 +257,15 @@ module Google
|
|
205
257
|
end
|
206
258
|
end
|
207
259
|
|
260
|
+
class ListPhotoSequencesResponse
|
261
|
+
# @private
|
262
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
263
|
+
property :next_page_token, as: 'nextPageToken'
|
264
|
+
collection :photo_sequences, as: 'photoSequences', class: Google::Apis::StreetviewpublishV1::Operation, decorator: Google::Apis::StreetviewpublishV1::Operation::Representation
|
265
|
+
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
208
269
|
class ListPhotosResponse
|
209
270
|
# @private
|
210
271
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -214,6 +275,16 @@ module Google
|
|
214
275
|
end
|
215
276
|
end
|
216
277
|
|
278
|
+
class Measurement3d
|
279
|
+
# @private
|
280
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
281
|
+
property :capture_time, as: 'captureTime'
|
282
|
+
property :x, as: 'x'
|
283
|
+
property :y, as: 'y'
|
284
|
+
property :z, as: 'z'
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
217
288
|
class Operation
|
218
289
|
# @private
|
219
290
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -267,6 +338,31 @@ module Google
|
|
267
338
|
end
|
268
339
|
end
|
269
340
|
|
341
|
+
class PhotoSequence
|
342
|
+
# @private
|
343
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
344
|
+
property :capture_time_override, as: 'captureTimeOverride'
|
345
|
+
property :distance_meters, as: 'distanceMeters'
|
346
|
+
property :failure_reason, as: 'failureReason'
|
347
|
+
property :filename, as: 'filename'
|
348
|
+
property :gps_source, as: 'gpsSource'
|
349
|
+
property :id, as: 'id'
|
350
|
+
property :imu, as: 'imu', class: Google::Apis::StreetviewpublishV1::Imu, decorator: Google::Apis::StreetviewpublishV1::Imu::Representation
|
351
|
+
|
352
|
+
collection :photos, as: 'photos', class: Google::Apis::StreetviewpublishV1::Photo, decorator: Google::Apis::StreetviewpublishV1::Photo::Representation
|
353
|
+
|
354
|
+
property :processing_state, as: 'processingState'
|
355
|
+
collection :raw_gps_timeline, as: 'rawGpsTimeline', class: Google::Apis::StreetviewpublishV1::Pose, decorator: Google::Apis::StreetviewpublishV1::Pose::Representation
|
356
|
+
|
357
|
+
property :sequence_bounds, as: 'sequenceBounds', class: Google::Apis::StreetviewpublishV1::LatLngBounds, decorator: Google::Apis::StreetviewpublishV1::LatLngBounds::Representation
|
358
|
+
|
359
|
+
property :upload_reference, as: 'uploadReference', class: Google::Apis::StreetviewpublishV1::UploadRef, decorator: Google::Apis::StreetviewpublishV1::UploadRef::Representation
|
360
|
+
|
361
|
+
property :upload_time, as: 'uploadTime'
|
362
|
+
property :view_count, :numeric_string => true, as: 'viewCount'
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
270
366
|
class Place
|
271
367
|
# @private
|
272
368
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -261,6 +261,208 @@ module Google
|
|
261
261
|
execute_or_queue_command(command, &block)
|
262
262
|
end
|
263
263
|
|
264
|
+
# After the client finishes uploading the PhotoSequence with the returned
|
265
|
+
# UploadRef, CreatePhotoSequence extracts a sequence of 360 photos from a video
|
266
|
+
# or Extensible Device Metadata (XDM, http://www.xdm.org/) to be published to
|
267
|
+
# Street View on Google Maps. `CreatePhotoSequence` returns an Operation, with
|
268
|
+
# the PhotoSequence Id set in the `Operation.name` field. This method returns
|
269
|
+
# the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request
|
270
|
+
# is malformed. * google.rpc.Code.NOT_FOUND if the upload reference does not
|
271
|
+
# exist.
|
272
|
+
# @param [Google::Apis::StreetviewpublishV1::PhotoSequence] photo_sequence_object
|
273
|
+
# @param [String] input_type
|
274
|
+
# Required. The input form of PhotoSequence.
|
275
|
+
# @param [String] fields
|
276
|
+
# Selector specifying which fields to include in a partial response.
|
277
|
+
# @param [String] quota_user
|
278
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
279
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
280
|
+
# @param [Google::Apis::RequestOptions] options
|
281
|
+
# Request-specific options
|
282
|
+
#
|
283
|
+
# @yield [result, err] Result & error if block supplied
|
284
|
+
# @yieldparam result [Google::Apis::StreetviewpublishV1::Operation] parsed result object
|
285
|
+
# @yieldparam err [StandardError] error object if request failed
|
286
|
+
#
|
287
|
+
# @return [Google::Apis::StreetviewpublishV1::Operation]
|
288
|
+
#
|
289
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
290
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
291
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
292
|
+
def create_photo_sequence(photo_sequence_object = nil, input_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
293
|
+
command = make_simple_command(:post, 'v1/photoSequence', options)
|
294
|
+
command.request_representation = Google::Apis::StreetviewpublishV1::PhotoSequence::Representation
|
295
|
+
command.request_object = photo_sequence_object
|
296
|
+
command.response_representation = Google::Apis::StreetviewpublishV1::Operation::Representation
|
297
|
+
command.response_class = Google::Apis::StreetviewpublishV1::Operation
|
298
|
+
command.query['inputType'] = input_type unless input_type.nil?
|
299
|
+
command.query['fields'] = fields unless fields.nil?
|
300
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
301
|
+
execute_or_queue_command(command, &block)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Deletes a PhotoSequence and its metadata. This method returns the following
|
305
|
+
# error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did
|
306
|
+
# not create the requested photo sequence. * google.rpc.Code.NOT_FOUND if the
|
307
|
+
# photo sequence ID does not exist. * google.rpc.Code.FAILED_PRECONDITION if the
|
308
|
+
# photo sequence ID is not yet finished processing.
|
309
|
+
# @param [String] sequence_id
|
310
|
+
# Required. ID of the PhotoSequence.
|
311
|
+
# @param [String] fields
|
312
|
+
# Selector specifying which fields to include in a partial response.
|
313
|
+
# @param [String] quota_user
|
314
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
315
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
316
|
+
# @param [Google::Apis::RequestOptions] options
|
317
|
+
# Request-specific options
|
318
|
+
#
|
319
|
+
# @yield [result, err] Result & error if block supplied
|
320
|
+
# @yieldparam result [Google::Apis::StreetviewpublishV1::Empty] parsed result object
|
321
|
+
# @yieldparam err [StandardError] error object if request failed
|
322
|
+
#
|
323
|
+
# @return [Google::Apis::StreetviewpublishV1::Empty]
|
324
|
+
#
|
325
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
326
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
327
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
328
|
+
def delete_photo_sequence(sequence_id, fields: nil, quota_user: nil, options: nil, &block)
|
329
|
+
command = make_simple_command(:delete, 'v1/photoSequence/{sequenceId}', options)
|
330
|
+
command.response_representation = Google::Apis::StreetviewpublishV1::Empty::Representation
|
331
|
+
command.response_class = Google::Apis::StreetviewpublishV1::Empty
|
332
|
+
command.params['sequenceId'] = sequence_id unless sequence_id.nil?
|
333
|
+
command.query['fields'] = fields unless fields.nil?
|
334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
+
execute_or_queue_command(command, &block)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Gets the metadata of the specified PhotoSequence via the Operation interface.
|
339
|
+
# This method returns the following three types of responses: * `Operation.done`
|
340
|
+
# = false, if the processing of PhotoSequence is not finished yet. * `Operation.
|
341
|
+
# done` = true and `Operation.error` is populated, if there was an error in
|
342
|
+
# processing. * `Operation.done` = true and `Operation.response` is poulated,
|
343
|
+
# which contains a PhotoSequence message. This method returns the following
|
344
|
+
# error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did
|
345
|
+
# not create the requested PhotoSequence. * google.rpc.Code.NOT_FOUND if the
|
346
|
+
# requested PhotoSequence does not exist.
|
347
|
+
# @param [String] sequence_id
|
348
|
+
# Required. ID of the photo sequence.
|
349
|
+
# @param [String] filter
|
350
|
+
# Optional. The filter expression. For example: `published_status=PUBLISHED`.
|
351
|
+
# The filters supported are: `published_status`. See https://google.aip.dev/160
|
352
|
+
# for more information.
|
353
|
+
# @param [String] view
|
354
|
+
# Specifies if a download URL for the photo sequence should be returned in `
|
355
|
+
# download_url` of individual photos in the PhotoSequence response. > Note:
|
356
|
+
# Currently not implemented.
|
357
|
+
# @param [String] fields
|
358
|
+
# Selector specifying which fields to include in a partial response.
|
359
|
+
# @param [String] quota_user
|
360
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
361
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
362
|
+
# @param [Google::Apis::RequestOptions] options
|
363
|
+
# Request-specific options
|
364
|
+
#
|
365
|
+
# @yield [result, err] Result & error if block supplied
|
366
|
+
# @yieldparam result [Google::Apis::StreetviewpublishV1::Operation] parsed result object
|
367
|
+
# @yieldparam err [StandardError] error object if request failed
|
368
|
+
#
|
369
|
+
# @return [Google::Apis::StreetviewpublishV1::Operation]
|
370
|
+
#
|
371
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
372
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
373
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
374
|
+
def get_photo_sequence(sequence_id, filter: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
375
|
+
command = make_simple_command(:get, 'v1/photoSequence/{sequenceId}', options)
|
376
|
+
command.response_representation = Google::Apis::StreetviewpublishV1::Operation::Representation
|
377
|
+
command.response_class = Google::Apis::StreetviewpublishV1::Operation
|
378
|
+
command.params['sequenceId'] = sequence_id unless sequence_id.nil?
|
379
|
+
command.query['filter'] = filter unless filter.nil?
|
380
|
+
command.query['view'] = view unless view.nil?
|
381
|
+
command.query['fields'] = fields unless fields.nil?
|
382
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
383
|
+
execute_or_queue_command(command, &block)
|
384
|
+
end
|
385
|
+
|
386
|
+
# Creates an upload session to start uploading photo sequence data. The upload
|
387
|
+
# URL of the returned UploadRef is used to upload the data for the `
|
388
|
+
# photoSequence`. After the upload is complete, the UploadRef is used with
|
389
|
+
# CreatePhotoSequence to create the PhotoSequence object entry.
|
390
|
+
# @param [Google::Apis::StreetviewpublishV1::Empty] empty_object
|
391
|
+
# @param [String] fields
|
392
|
+
# Selector specifying which fields to include in a partial response.
|
393
|
+
# @param [String] quota_user
|
394
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
395
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
396
|
+
# @param [Google::Apis::RequestOptions] options
|
397
|
+
# Request-specific options
|
398
|
+
#
|
399
|
+
# @yield [result, err] Result & error if block supplied
|
400
|
+
# @yieldparam result [Google::Apis::StreetviewpublishV1::UploadRef] parsed result object
|
401
|
+
# @yieldparam err [StandardError] error object if request failed
|
402
|
+
#
|
403
|
+
# @return [Google::Apis::StreetviewpublishV1::UploadRef]
|
404
|
+
#
|
405
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
406
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
|
+
def start_photo_sequence_upload(empty_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
409
|
+
command = make_simple_command(:post, 'v1/photoSequence:startUpload', options)
|
410
|
+
command.request_representation = Google::Apis::StreetviewpublishV1::Empty::Representation
|
411
|
+
command.request_object = empty_object
|
412
|
+
command.response_representation = Google::Apis::StreetviewpublishV1::UploadRef::Representation
|
413
|
+
command.response_class = Google::Apis::StreetviewpublishV1::UploadRef
|
414
|
+
command.query['fields'] = fields unless fields.nil?
|
415
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
416
|
+
execute_or_queue_command(command, &block)
|
417
|
+
end
|
418
|
+
|
419
|
+
# Lists all the PhotoSequences that belong to the user, in descending
|
420
|
+
# CreatePhotoSequence timestamp order.
|
421
|
+
# @param [String] filter
|
422
|
+
# Optional. The filter expression. For example: `imagery_type=SPHERICAL`. The
|
423
|
+
# filters supported are: `imagery_type`, `processing_state`, `min_latitude`, `
|
424
|
+
# max_latitude`, `min_longitude`, `max_longitude`, and `filename_query`. See
|
425
|
+
# https://google.aip.dev/160 for more information. Filename queries should sent
|
426
|
+
# as a Phrase in order to support multple words and special characters by adding
|
427
|
+
# escaped quotes. Ex: filename_query="example of a phrase.mp4"
|
428
|
+
# @param [Fixnum] page_size
|
429
|
+
# Optional. The maximum number of photo sequences to return. `pageSize` must be
|
430
|
+
# non-negative. If `pageSize` is zero or is not provided, the default page size
|
431
|
+
# of 100 is used. The number of photo sequences returned in the response may be
|
432
|
+
# less than `pageSize` if the number of matches is less than `pageSize`. This is
|
433
|
+
# currently unimplemented but is in process.
|
434
|
+
# @param [String] page_token
|
435
|
+
# Optional. The nextPageToken value returned from a previous ListPhotoSequences
|
436
|
+
# request, if any.
|
437
|
+
# @param [String] fields
|
438
|
+
# Selector specifying which fields to include in a partial response.
|
439
|
+
# @param [String] quota_user
|
440
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
441
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
442
|
+
# @param [Google::Apis::RequestOptions] options
|
443
|
+
# Request-specific options
|
444
|
+
#
|
445
|
+
# @yield [result, err] Result & error if block supplied
|
446
|
+
# @yieldparam result [Google::Apis::StreetviewpublishV1::ListPhotoSequencesResponse] parsed result object
|
447
|
+
# @yieldparam err [StandardError] error object if request failed
|
448
|
+
#
|
449
|
+
# @return [Google::Apis::StreetviewpublishV1::ListPhotoSequencesResponse]
|
450
|
+
#
|
451
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
452
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
453
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
454
|
+
def list_photo_sequences(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
455
|
+
command = make_simple_command(:get, 'v1/photoSequences', options)
|
456
|
+
command.response_representation = Google::Apis::StreetviewpublishV1::ListPhotoSequencesResponse::Representation
|
457
|
+
command.response_class = Google::Apis::StreetviewpublishV1::ListPhotoSequencesResponse
|
458
|
+
command.query['filter'] = filter unless filter.nil?
|
459
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
460
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
461
|
+
command.query['fields'] = fields unless fields.nil?
|
462
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
463
|
+
execute_or_queue_command(command, &block)
|
464
|
+
end
|
465
|
+
|
264
466
|
# Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos
|
265
467
|
# fails, either critical fields are missing or there is an authentication error.
|
266
468
|
# Even if BatchDeletePhotos succeeds, individual photos in the batch may have
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-streetviewpublish_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-streetviewpublish_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-streetviewpublish_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-streetviewpublish_v1/v0.19.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-streetviewpublish_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|