google-api-client 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -2
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -2
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +2 -3
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +59 -1
- data/generated/google/apis/appengine_v1/representations.rb +18 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +0 -8
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +97 -12
- data/generated/google/apis/compute_alpha/representations.rb +23 -0
- data/generated/google/apis/compute_alpha/service.rb +41 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1616 -43
- data/generated/google/apis/compute_beta/representations.rb +685 -20
- data/generated/google/apis/compute_beta/service.rb +1286 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +184 -3
- data/generated/google/apis/compute_v1/representations.rb +43 -0
- data/generated/google/apis/compute_v1/service.rb +108 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +805 -102
- data/generated/google/apis/content_v2/representations.rb +393 -26
- data/generated/google/apis/content_v2/service.rb +242 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +703 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +367 -0
- data/generated/google/apis/content_v2sandbox/service.rb +242 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +280 -2
- data/generated/google/apis/dlp_v2/representations.rb +120 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +35 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +7 -0
- data/generated/google/apis/monitoring_v3/representations.rb +2 -0
- data/generated/google/apis/monitoring_v3/service.rb +5 -3
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +0 -8
- data/generated/google/apis/pubsub_v1/service.rb +4 -8
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +7 -8
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -27
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -15
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -27
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -15
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/service.rb +2 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +34 -0
- data/generated/google/apis/tpu_v1/classes.rb +736 -0
- data/generated/google/apis/tpu_v1/representations.rb +316 -0
- data/generated/google/apis/tpu_v1/service.rb +687 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +26 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +0 -473
- data/generated/google/apis/videointelligence_v1/representations.rb +0 -222
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +0 -473
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +0 -222
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -6
- data/generated/google/apis/photoslibrary_v1.rb +0 -49
- data/generated/google/apis/photoslibrary_v1/classes.rb +0 -1330
- data/generated/google/apis/photoslibrary_v1/representations.rb +0 -625
- data/generated/google/apis/photoslibrary_v1/service.rb +0 -399
@@ -88,54 +88,6 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
|
-
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class GoogleCloudVideointelligenceV1beta1LabelLocation
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
|
-
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
-
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
125
|
-
end
|
126
|
-
|
127
|
-
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
|
128
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
-
|
130
|
-
include Google::Apis::Core::JsonObjectSupport
|
131
|
-
end
|
132
|
-
|
133
|
-
class GoogleCloudVideointelligenceV1beta1VideoSegment
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
91
|
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
|
140
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
93
|
|
@@ -244,12 +196,6 @@ module Google
|
|
244
196
|
include Google::Apis::Core::JsonObjectSupport
|
245
197
|
end
|
246
198
|
|
247
|
-
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
|
248
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
-
|
250
|
-
include Google::Apis::Core::JsonObjectSupport
|
251
|
-
end
|
252
|
-
|
253
199
|
class GoogleCloudVideointelligenceV1p1beta1Entity
|
254
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
201
|
|
@@ -268,30 +214,6 @@ module Google
|
|
268
214
|
include Google::Apis::Core::JsonObjectSupport
|
269
215
|
end
|
270
216
|
|
271
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
|
272
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
-
|
274
|
-
include Google::Apis::Core::JsonObjectSupport
|
275
|
-
end
|
276
|
-
|
277
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
|
278
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
-
|
280
|
-
include Google::Apis::Core::JsonObjectSupport
|
281
|
-
end
|
282
|
-
|
283
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
|
284
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
-
|
286
|
-
include Google::Apis::Core::JsonObjectSupport
|
287
|
-
end
|
288
|
-
|
289
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
|
290
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
-
|
292
|
-
include Google::Apis::Core::JsonObjectSupport
|
293
|
-
end
|
294
|
-
|
295
217
|
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
|
296
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
219
|
|
@@ -310,12 +232,6 @@ module Google
|
|
310
232
|
include Google::Apis::Core::JsonObjectSupport
|
311
233
|
end
|
312
234
|
|
313
|
-
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
|
314
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
-
|
316
|
-
include Google::Apis::Core::JsonObjectSupport
|
317
|
-
end
|
318
|
-
|
319
235
|
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
|
320
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
237
|
|
@@ -473,87 +389,6 @@ module Google
|
|
473
389
|
end
|
474
390
|
end
|
475
391
|
|
476
|
-
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
|
477
|
-
# @private
|
478
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
479
|
-
collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress::Representation
|
480
|
-
|
481
|
-
end
|
482
|
-
end
|
483
|
-
|
484
|
-
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
|
485
|
-
# @private
|
486
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
487
|
-
collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults::Representation
|
488
|
-
|
489
|
-
end
|
490
|
-
end
|
491
|
-
|
492
|
-
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
|
493
|
-
# @private
|
494
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
495
|
-
property :description, as: 'description'
|
496
|
-
property :language_code, as: 'languageCode'
|
497
|
-
collection :locations, as: 'locations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelLocation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelLocation::Representation
|
498
|
-
|
499
|
-
end
|
500
|
-
end
|
501
|
-
|
502
|
-
class GoogleCloudVideointelligenceV1beta1LabelLocation
|
503
|
-
# @private
|
504
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
505
|
-
property :confidence, as: 'confidence'
|
506
|
-
property :level, as: 'level'
|
507
|
-
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation
|
508
|
-
|
509
|
-
end
|
510
|
-
end
|
511
|
-
|
512
|
-
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
|
513
|
-
# @private
|
514
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
515
|
-
property :adult, as: 'adult'
|
516
|
-
property :medical, as: 'medical'
|
517
|
-
property :racy, as: 'racy'
|
518
|
-
property :spoof, as: 'spoof'
|
519
|
-
property :time_offset, :numeric_string => true, as: 'timeOffset'
|
520
|
-
property :violent, as: 'violent'
|
521
|
-
end
|
522
|
-
end
|
523
|
-
|
524
|
-
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
|
525
|
-
# @private
|
526
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
527
|
-
property :input_uri, as: 'inputUri'
|
528
|
-
property :progress_percent, as: 'progressPercent'
|
529
|
-
property :start_time, as: 'startTime'
|
530
|
-
property :update_time, as: 'updateTime'
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
|
535
|
-
# @private
|
536
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
537
|
-
property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus::Representation
|
538
|
-
|
539
|
-
property :input_uri, as: 'inputUri'
|
540
|
-
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelAnnotation::Representation
|
541
|
-
|
542
|
-
collection :safe_search_annotations, as: 'safeSearchAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation::Representation
|
543
|
-
|
544
|
-
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation
|
545
|
-
|
546
|
-
end
|
547
|
-
end
|
548
|
-
|
549
|
-
class GoogleCloudVideointelligenceV1beta1VideoSegment
|
550
|
-
# @private
|
551
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
-
property :end_time_offset, :numeric_string => true, as: 'endTimeOffset'
|
553
|
-
property :start_time_offset, :numeric_string => true, as: 'startTimeOffset'
|
554
|
-
end
|
555
|
-
end
|
556
|
-
|
557
392
|
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
|
558
393
|
# @private
|
559
394
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -729,14 +564,6 @@ module Google
|
|
729
564
|
end
|
730
565
|
end
|
731
566
|
|
732
|
-
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
|
733
|
-
# @private
|
734
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
735
|
-
property :emotion, as: 'emotion'
|
736
|
-
property :score, as: 'score'
|
737
|
-
end
|
738
|
-
end
|
739
|
-
|
740
567
|
class GoogleCloudVideointelligenceV1p1beta1Entity
|
741
568
|
# @private
|
742
569
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -762,43 +589,6 @@ module Google
|
|
762
589
|
end
|
763
590
|
end
|
764
591
|
|
765
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
|
766
|
-
# @private
|
767
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
768
|
-
collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame::Representation
|
769
|
-
|
770
|
-
collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceSegment::Representation
|
771
|
-
|
772
|
-
end
|
773
|
-
end
|
774
|
-
|
775
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
|
776
|
-
# @private
|
777
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
778
|
-
collection :emotions, as: 'emotions', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute::Representation
|
779
|
-
|
780
|
-
property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::Representation
|
781
|
-
|
782
|
-
end
|
783
|
-
end
|
784
|
-
|
785
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
|
786
|
-
# @private
|
787
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
788
|
-
collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute::Representation
|
789
|
-
|
790
|
-
property :time_offset, as: 'timeOffset'
|
791
|
-
end
|
792
|
-
end
|
793
|
-
|
794
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
|
795
|
-
# @private
|
796
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
797
|
-
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
|
798
|
-
|
799
|
-
end
|
800
|
-
end
|
801
|
-
|
802
592
|
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
|
803
593
|
# @private
|
804
594
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -830,16 +620,6 @@ module Google
|
|
830
620
|
end
|
831
621
|
end
|
832
622
|
|
833
|
-
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
|
834
|
-
# @private
|
835
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
836
|
-
property :bottom, as: 'bottom'
|
837
|
-
property :left, as: 'left'
|
838
|
-
property :right, as: 'right'
|
839
|
-
property :top, as: 'top'
|
840
|
-
end
|
841
|
-
end
|
842
|
-
|
843
623
|
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
|
844
624
|
# @private
|
845
625
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -875,8 +655,6 @@ module Google
|
|
875
655
|
|
876
656
|
property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation::Representation
|
877
657
|
|
878
|
-
collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation::Representation
|
879
|
-
|
880
658
|
collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation
|
881
659
|
|
882
660
|
property :input_uri, as: 'inputUri'
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|
@@ -710,10 +710,6 @@ files:
|
|
710
710
|
- generated/google/apis/people_v1/classes.rb
|
711
711
|
- generated/google/apis/people_v1/representations.rb
|
712
712
|
- generated/google/apis/people_v1/service.rb
|
713
|
-
- generated/google/apis/photoslibrary_v1.rb
|
714
|
-
- generated/google/apis/photoslibrary_v1/classes.rb
|
715
|
-
- generated/google/apis/photoslibrary_v1/representations.rb
|
716
|
-
- generated/google/apis/photoslibrary_v1/service.rb
|
717
713
|
- generated/google/apis/playcustomapp_v1.rb
|
718
714
|
- generated/google/apis/playcustomapp_v1/classes.rb
|
719
715
|
- generated/google/apis/playcustomapp_v1/representations.rb
|
@@ -906,6 +902,10 @@ files:
|
|
906
902
|
- generated/google/apis/toolresults_v1beta3/classes.rb
|
907
903
|
- generated/google/apis/toolresults_v1beta3/representations.rb
|
908
904
|
- generated/google/apis/toolresults_v1beta3/service.rb
|
905
|
+
- generated/google/apis/tpu_v1.rb
|
906
|
+
- generated/google/apis/tpu_v1/classes.rb
|
907
|
+
- generated/google/apis/tpu_v1/representations.rb
|
908
|
+
- generated/google/apis/tpu_v1/service.rb
|
909
909
|
- generated/google/apis/tpu_v1alpha1.rb
|
910
910
|
- generated/google/apis/tpu_v1alpha1/classes.rb
|
911
911
|
- generated/google/apis/tpu_v1alpha1/representations.rb
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/photoslibrary_v1/service.rb'
|
16
|
-
require 'google/apis/photoslibrary_v1/classes.rb'
|
17
|
-
require 'google/apis/photoslibrary_v1/representations.rb'
|
18
|
-
|
19
|
-
module Google
|
20
|
-
module Apis
|
21
|
-
# Photos Library API
|
22
|
-
#
|
23
|
-
# Manage photos, videos, and albums in Google Photos
|
24
|
-
#
|
25
|
-
# @see https://developers.google.com/photos/
|
26
|
-
module PhotoslibraryV1
|
27
|
-
VERSION = 'V1'
|
28
|
-
REVISION = '20180508'
|
29
|
-
|
30
|
-
# View the photos, videos and albums in your Google Photos
|
31
|
-
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
|
32
|
-
|
33
|
-
# View and manage your Google Photos library
|
34
|
-
AUTH_PHOTOSLIBRARY = 'https://www.googleapis.com/auth/photoslibrary'
|
35
|
-
|
36
|
-
# Add to your Google Photos library
|
37
|
-
AUTH_PHOTOSLIBRARY_APPENDONLY = 'https://www.googleapis.com/auth/photoslibrary.appendonly'
|
38
|
-
|
39
|
-
# View your Google Photos library
|
40
|
-
AUTH_PHOTOSLIBRARY_READONLY = 'https://www.googleapis.com/auth/photoslibrary.readonly'
|
41
|
-
|
42
|
-
# Manage photos added by this app
|
43
|
-
AUTH_PHOTOSLIBRARY_READONLY_APPCREATEDDATA = 'https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata'
|
44
|
-
|
45
|
-
# Manage and add to shared albums on your behalf
|
46
|
-
AUTH_PHOTOSLIBRARY_SHARING = 'https://www.googleapis.com/auth/photoslibrary.sharing'
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,1330 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module PhotoslibraryV1
|
24
|
-
|
25
|
-
# Request to add an enrichment to a specific album at a specific position.
|
26
|
-
class AddEnrichmentToAlbumRequest
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Specifies a position in an album.
|
30
|
-
# Corresponds to the JSON property `albumPosition`
|
31
|
-
# @return [Google::Apis::PhotoslibraryV1::AlbumPosition]
|
32
|
-
attr_accessor :album_position
|
33
|
-
|
34
|
-
# A new enrichment item to be added to an album, used by the
|
35
|
-
# AddEnrichmentToAlbum call.
|
36
|
-
# Corresponds to the JSON property `newEnrichmentItem`
|
37
|
-
# @return [Google::Apis::PhotoslibraryV1::NewEnrichmentItem]
|
38
|
-
attr_accessor :new_enrichment_item
|
39
|
-
|
40
|
-
def initialize(**args)
|
41
|
-
update!(**args)
|
42
|
-
end
|
43
|
-
|
44
|
-
# Update properties of this object
|
45
|
-
def update!(**args)
|
46
|
-
@album_position = args[:album_position] if args.key?(:album_position)
|
47
|
-
@new_enrichment_item = args[:new_enrichment_item] if args.key?(:new_enrichment_item)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
class AddEnrichmentToAlbumResponse
|
53
|
-
include Google::Apis::Core::Hashable
|
54
|
-
|
55
|
-
# An enrichment item.
|
56
|
-
# Corresponds to the JSON property `enrichmentItem`
|
57
|
-
# @return [Google::Apis::PhotoslibraryV1::EnrichmentItem]
|
58
|
-
attr_accessor :enrichment_item
|
59
|
-
|
60
|
-
def initialize(**args)
|
61
|
-
update!(**args)
|
62
|
-
end
|
63
|
-
|
64
|
-
# Update properties of this object
|
65
|
-
def update!(**args)
|
66
|
-
@enrichment_item = args[:enrichment_item] if args.key?(:enrichment_item)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# Representation of an album in Google Photos.
|
71
|
-
# Albums are a container for media items. They contain an additional
|
72
|
-
# shareInfo property if they have been shared by the application.
|
73
|
-
class Album
|
74
|
-
include Google::Apis::Core::Hashable
|
75
|
-
|
76
|
-
# [Output only] A URL to the cover photo's bytes. This should not be used as
|
77
|
-
# is. Parameters should be appended to this URL before use. For example,
|
78
|
-
# '=w2048-h1024' will set the dimensions of the cover photo to have a width
|
79
|
-
# of 2048 px and height of 1024 px.
|
80
|
-
# Corresponds to the JSON property `coverPhotoBaseUrl`
|
81
|
-
# @return [String]
|
82
|
-
attr_accessor :cover_photo_base_url
|
83
|
-
|
84
|
-
# [Ouput only] Identifier for the album. This is a persistent identifier that
|
85
|
-
# can be used between sessions to identify this album.
|
86
|
-
# Corresponds to the JSON property `id`
|
87
|
-
# @return [String]
|
88
|
-
attr_accessor :id
|
89
|
-
|
90
|
-
# [Output only] True if media items can be created in the album.
|
91
|
-
# This field is based on the scopes granted and permissions of the album. If
|
92
|
-
# the scopes are changed or permissions of the album are changed, this field
|
93
|
-
# will be updated.
|
94
|
-
# Corresponds to the JSON property `isWriteable`
|
95
|
-
# @return [Boolean]
|
96
|
-
attr_accessor :is_writeable
|
97
|
-
alias_method :is_writeable?, :is_writeable
|
98
|
-
|
99
|
-
# [Output only] Google Photos URL for the album. The user needs to be signed
|
100
|
-
# in to their Google Photos account to access this link.
|
101
|
-
# Corresponds to the JSON property `productUrl`
|
102
|
-
# @return [String]
|
103
|
-
attr_accessor :product_url
|
104
|
-
|
105
|
-
# Information about albums that are shared. Note that this
|
106
|
-
# information is only included if the album was created by you and you have the
|
107
|
-
# sharing scope.
|
108
|
-
# Corresponds to the JSON property `shareInfo`
|
109
|
-
# @return [Google::Apis::PhotoslibraryV1::ShareInfo]
|
110
|
-
attr_accessor :share_info
|
111
|
-
|
112
|
-
# Name of the album displayed to the user in their Google Photos account.
|
113
|
-
# This string should not be more than 500 characters.
|
114
|
-
# Corresponds to the JSON property `title`
|
115
|
-
# @return [String]
|
116
|
-
attr_accessor :title
|
117
|
-
|
118
|
-
# [Output only] The number of media items in the album
|
119
|
-
# Corresponds to the JSON property `totalMediaItems`
|
120
|
-
# @return [Fixnum]
|
121
|
-
attr_accessor :total_media_items
|
122
|
-
|
123
|
-
def initialize(**args)
|
124
|
-
update!(**args)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Update properties of this object
|
128
|
-
def update!(**args)
|
129
|
-
@cover_photo_base_url = args[:cover_photo_base_url] if args.key?(:cover_photo_base_url)
|
130
|
-
@id = args[:id] if args.key?(:id)
|
131
|
-
@is_writeable = args[:is_writeable] if args.key?(:is_writeable)
|
132
|
-
@product_url = args[:product_url] if args.key?(:product_url)
|
133
|
-
@share_info = args[:share_info] if args.key?(:share_info)
|
134
|
-
@title = args[:title] if args.key?(:title)
|
135
|
-
@total_media_items = args[:total_media_items] if args.key?(:total_media_items)
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
# Specifies a position in an album.
|
140
|
-
class AlbumPosition
|
141
|
-
include Google::Apis::Core::Hashable
|
142
|
-
|
143
|
-
# Type of position, for a media or enrichment item.
|
144
|
-
# Corresponds to the JSON property `position`
|
145
|
-
# @return [String]
|
146
|
-
attr_accessor :position
|
147
|
-
|
148
|
-
# The enrichment item to which the position is relative to.
|
149
|
-
# Only used when position type is AFTER_ENRICHMENT_ITEM.
|
150
|
-
# Corresponds to the JSON property `relativeEnrichmentItemId`
|
151
|
-
# @return [String]
|
152
|
-
attr_accessor :relative_enrichment_item_id
|
153
|
-
|
154
|
-
# The media item to which the position is relative to.
|
155
|
-
# Only used when position type is AFTER_MEDIA_ITEM.
|
156
|
-
# Corresponds to the JSON property `relativeMediaItemId`
|
157
|
-
# @return [String]
|
158
|
-
attr_accessor :relative_media_item_id
|
159
|
-
|
160
|
-
def initialize(**args)
|
161
|
-
update!(**args)
|
162
|
-
end
|
163
|
-
|
164
|
-
# Update properties of this object
|
165
|
-
def update!(**args)
|
166
|
-
@position = args[:position] if args.key?(:position)
|
167
|
-
@relative_enrichment_item_id = args[:relative_enrichment_item_id] if args.key?(:relative_enrichment_item_id)
|
168
|
-
@relative_media_item_id = args[:relative_media_item_id] if args.key?(:relative_media_item_id)
|
169
|
-
end
|
170
|
-
end
|
171
|
-
|
172
|
-
# Request to create one or more media items in a user's Google Photos library.
|
173
|
-
# If an <code>albumid</code> is specified, the media items are also added to
|
174
|
-
# that album. <code>albumPosition</code> is optional and can only be specified
|
175
|
-
# if an <code>albumId</code> is set.
|
176
|
-
class BatchCreateMediaItemsRequest
|
177
|
-
include Google::Apis::Core::Hashable
|
178
|
-
|
179
|
-
# Identifier of the album where the media item(s) will be added. They will
|
180
|
-
# also be added to the user's library. This is an optional field.
|
181
|
-
# Corresponds to the JSON property `albumId`
|
182
|
-
# @return [String]
|
183
|
-
attr_accessor :album_id
|
184
|
-
|
185
|
-
# Specifies a position in an album.
|
186
|
-
# Corresponds to the JSON property `albumPosition`
|
187
|
-
# @return [Google::Apis::PhotoslibraryV1::AlbumPosition]
|
188
|
-
attr_accessor :album_position
|
189
|
-
|
190
|
-
# List of media items to be created.
|
191
|
-
# Corresponds to the JSON property `newMediaItems`
|
192
|
-
# @return [Array<Google::Apis::PhotoslibraryV1::NewMediaItem>]
|
193
|
-
attr_accessor :new_media_items
|
194
|
-
|
195
|
-
def initialize(**args)
|
196
|
-
update!(**args)
|
197
|
-
end
|
198
|
-
|
199
|
-
# Update properties of this object
|
200
|
-
def update!(**args)
|
201
|
-
@album_id = args[:album_id] if args.key?(:album_id)
|
202
|
-
@album_position = args[:album_position] if args.key?(:album_position)
|
203
|
-
@new_media_items = args[:new_media_items] if args.key?(:new_media_items)
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
|
-
#
|
208
|
-
class BatchCreateMediaItemsResponse
|
209
|
-
include Google::Apis::Core::Hashable
|
210
|
-
|
211
|
-
# [Output only] List of media items which were created.
|
212
|
-
# Corresponds to the JSON property `newMediaItemResults`
|
213
|
-
# @return [Array<Google::Apis::PhotoslibraryV1::NewMediaItemResult>]
|
214
|
-
attr_accessor :new_media_item_results
|
215
|
-
|
216
|
-
def initialize(**args)
|
217
|
-
update!(**args)
|
218
|
-
end
|
219
|
-
|
220
|
-
# Update properties of this object
|
221
|
-
def update!(**args)
|
222
|
-
@new_media_item_results = args[:new_media_item_results] if args.key?(:new_media_item_results)
|
223
|
-
end
|
224
|
-
end
|
225
|
-
|
226
|
-
# This filter is used to define which results to return based on the contents
|
227
|
-
# of the media item.
|
228
|
-
# It is possible to specify a list of categories to include, and/or a list of
|
229
|
-
# categories to exclude. Within each list, the categories are combined with an
|
230
|
-
# OR. For example, if the content filter looks like:
|
231
|
-
# included_content_categories: [c1, c2, c3]
|
232
|
-
# It would get media items that contain (c1 OR c2 OR c3).
|
233
|
-
# And if the content filter looks like:
|
234
|
-
# excluded_content_categories: [c1, c2, c3]
|
235
|
-
# It would get media items that contain NOT (c1 OR c2 OR c3).
|
236
|
-
# You can also include some categories while excluding others, as in this
|
237
|
-
# proto:
|
238
|
-
# included_content_categories: [c1, c2],
|
239
|
-
# excluded_content_category: [c3, c4]
|
240
|
-
# It would get media items that contain (c1 OR c2) AND NOT (c3 OR c4).
|
241
|
-
# A category that appears in <code>includedContentategories</code> must not
|
242
|
-
# appear in <code>excludedContentCategories</code>.
|
243
|
-
class ContentFilter
|
244
|
-
include Google::Apis::Core::Hashable
|
245
|
-
|
246
|
-
# The set of categories that must NOT be present in the media items in the
|
247
|
-
# result. The items in the set are ORed. There is a maximum of 10
|
248
|
-
# excludedContentCategories per request.
|
249
|
-
# Corresponds to the JSON property `excludedContentCategories`
|
250
|
-
# @return [Array<String>]
|
251
|
-
attr_accessor :excluded_content_categories
|
252
|
-
|
253
|
-
# The set of categories that must be present in the media items in the
|
254
|
-
# result. The items in the set are ORed. There is a maximum of 10
|
255
|
-
# includedContentCategories per request.
|
256
|
-
# Corresponds to the JSON property `includedContentCategories`
|
257
|
-
# @return [Array<String>]
|
258
|
-
attr_accessor :included_content_categories
|
259
|
-
|
260
|
-
def initialize(**args)
|
261
|
-
update!(**args)
|
262
|
-
end
|
263
|
-
|
264
|
-
# Update properties of this object
|
265
|
-
def update!(**args)
|
266
|
-
@excluded_content_categories = args[:excluded_content_categories] if args.key?(:excluded_content_categories)
|
267
|
-
@included_content_categories = args[:included_content_categories] if args.key?(:included_content_categories)
|
268
|
-
end
|
269
|
-
end
|
270
|
-
|
271
|
-
# Information about a user who contributed the media item. Note that this
|
272
|
-
# information is only included if the album containing the media item is
|
273
|
-
# shared, was created by you and you have the sharing scope.
|
274
|
-
class ContributorInfo
|
275
|
-
include Google::Apis::Core::Hashable
|
276
|
-
|
277
|
-
# Display name of the contributor.
|
278
|
-
# Corresponds to the JSON property `displayName`
|
279
|
-
# @return [String]
|
280
|
-
attr_accessor :display_name
|
281
|
-
|
282
|
-
# URL to the profile picture of the contributor.
|
283
|
-
# Corresponds to the JSON property `profilePictureBaseUrl`
|
284
|
-
# @return [String]
|
285
|
-
attr_accessor :profile_picture_base_url
|
286
|
-
|
287
|
-
def initialize(**args)
|
288
|
-
update!(**args)
|
289
|
-
end
|
290
|
-
|
291
|
-
# Update properties of this object
|
292
|
-
def update!(**args)
|
293
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
294
|
-
@profile_picture_base_url = args[:profile_picture_base_url] if args.key?(:profile_picture_base_url)
|
295
|
-
end
|
296
|
-
end
|
297
|
-
|
298
|
-
# Request to create an album in Google Photos.
|
299
|
-
class CreateAlbumRequest
|
300
|
-
include Google::Apis::Core::Hashable
|
301
|
-
|
302
|
-
# Representation of an album in Google Photos.
|
303
|
-
# Albums are a container for media items. They contain an additional
|
304
|
-
# shareInfo property if they have been shared by the application.
|
305
|
-
# Corresponds to the JSON property `album`
|
306
|
-
# @return [Google::Apis::PhotoslibraryV1::Album]
|
307
|
-
attr_accessor :album
|
308
|
-
|
309
|
-
def initialize(**args)
|
310
|
-
update!(**args)
|
311
|
-
end
|
312
|
-
|
313
|
-
# Update properties of this object
|
314
|
-
def update!(**args)
|
315
|
-
@album = args[:album] if args.key?(:album)
|
316
|
-
end
|
317
|
-
end
|
318
|
-
|
319
|
-
# Represents a whole calendar date. The day may be 0 to represent a year and
|
320
|
-
# month where the day is not significant, e.g. a whole calendar month. The month
|
321
|
-
# may be 0 to represent a a day and a year where the month is not signficant, e.
|
322
|
-
# g. when you want to specify the same day in every month of a year or a
|
323
|
-
# specific year. The year may be 0 to represent a month and day independent of
|
324
|
-
# year, e.g. anniversary date.
|
325
|
-
class Date
|
326
|
-
include Google::Apis::Core::Hashable
|
327
|
-
|
328
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
329
|
-
# if specifying a year/month where the day is not significant.
|
330
|
-
# Corresponds to the JSON property `day`
|
331
|
-
# @return [Fixnum]
|
332
|
-
attr_accessor :day
|
333
|
-
|
334
|
-
# Month of year. Must be from 1 to 12, or 0 if specifying a date without a
|
335
|
-
# month.
|
336
|
-
# Corresponds to the JSON property `month`
|
337
|
-
# @return [Fixnum]
|
338
|
-
attr_accessor :month
|
339
|
-
|
340
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
341
|
-
# a year.
|
342
|
-
# Corresponds to the JSON property `year`
|
343
|
-
# @return [Fixnum]
|
344
|
-
attr_accessor :year
|
345
|
-
|
346
|
-
def initialize(**args)
|
347
|
-
update!(**args)
|
348
|
-
end
|
349
|
-
|
350
|
-
# Update properties of this object
|
351
|
-
def update!(**args)
|
352
|
-
@day = args[:day] if args.key?(:day)
|
353
|
-
@month = args[:month] if args.key?(:month)
|
354
|
-
@year = args[:year] if args.key?(:year)
|
355
|
-
end
|
356
|
-
end
|
357
|
-
|
358
|
-
# This filter defines the allowed dates or date ranges for the media returned.
|
359
|
-
# It is possible to pick a set of specific dates and a set of date ranges.
|
360
|
-
class DateFilter
|
361
|
-
include Google::Apis::Core::Hashable
|
362
|
-
|
363
|
-
# List of dates that the media items must have been created on. There is a
|
364
|
-
# maximum of 5 dates that can be included per request.
|
365
|
-
# Corresponds to the JSON property `dates`
|
366
|
-
# @return [Array<Google::Apis::PhotoslibraryV1::Date>]
|
367
|
-
attr_accessor :dates
|
368
|
-
|
369
|
-
# List of dates ranges that the media items must have been created in. There
|
370
|
-
# is a maximum of 5 dates ranges that can be included per request.
|
371
|
-
# Corresponds to the JSON property `ranges`
|
372
|
-
# @return [Array<Google::Apis::PhotoslibraryV1::DateRange>]
|
373
|
-
attr_accessor :ranges
|
374
|
-
|
375
|
-
def initialize(**args)
|
376
|
-
update!(**args)
|
377
|
-
end
|
378
|
-
|
379
|
-
# Update properties of this object
|
380
|
-
def update!(**args)
|
381
|
-
@dates = args[:dates] if args.key?(:dates)
|
382
|
-
@ranges = args[:ranges] if args.key?(:ranges)
|
383
|
-
end
|
384
|
-
end
|
385
|
-
|
386
|
-
# Defines a range of dates. Both dates must be of the same format (see Date
|
387
|
-
# definition for more).
|
388
|
-
class DateRange
|
389
|
-
include Google::Apis::Core::Hashable
|
390
|
-
|
391
|
-
# Represents a whole calendar date. The day may be 0 to represent a year and
|
392
|
-
# month where the day is not significant, e.g. a whole calendar month. The month
|
393
|
-
# may be 0 to represent a a day and a year where the month is not signficant, e.
|
394
|
-
# g. when you want to specify the same day in every month of a year or a
|
395
|
-
# specific year. The year may be 0 to represent a month and day independent of
|
396
|
-
# year, e.g. anniversary date.
|
397
|
-
# Corresponds to the JSON property `endDate`
|
398
|
-
# @return [Google::Apis::PhotoslibraryV1::Date]
|
399
|
-
attr_accessor :end_date
|
400
|
-
|
401
|
-
# Represents a whole calendar date. The day may be 0 to represent a year and
|
402
|
-
# month where the day is not significant, e.g. a whole calendar month. The month
|
403
|
-
# may be 0 to represent a a day and a year where the month is not signficant, e.
|
404
|
-
# g. when you want to specify the same day in every month of a year or a
|
405
|
-
# specific year. The year may be 0 to represent a month and day independent of
|
406
|
-
# year, e.g. anniversary date.
|
407
|
-
# Corresponds to the JSON property `startDate`
|
408
|
-
# @return [Google::Apis::PhotoslibraryV1::Date]
|
409
|
-
attr_accessor :start_date
|
410
|
-
|
411
|
-
def initialize(**args)
|
412
|
-
update!(**args)
|
413
|
-
end
|
414
|
-
|
415
|
-
# Update properties of this object
|
416
|
-
def update!(**args)
|
417
|
-
@end_date = args[:end_date] if args.key?(:end_date)
|
418
|
-
@start_date = args[:start_date] if args.key?(:start_date)
|
419
|
-
end
|
420
|
-
end
|
421
|
-
|
422
|
-
# An enrichment item.
|
423
|
-
class EnrichmentItem
|
424
|
-
include Google::Apis::Core::Hashable
|
425
|
-
|
426
|
-
# Identifier of the enrichment item.
|
427
|
-
# Corresponds to the JSON property `id`
|
428
|
-
# @return [String]
|
429
|
-
attr_accessor :id
|
430
|
-
|
431
|
-
def initialize(**args)
|
432
|
-
update!(**args)
|
433
|
-
end
|
434
|
-
|
435
|
-
# Update properties of this object
|
436
|
-
def update!(**args)
|
437
|
-
@id = args[:id] if args.key?(:id)
|
438
|
-
end
|
439
|
-
end
|
440
|
-
|
441
|
-
# Filters that can be applied to a media item search.
|
442
|
-
# If multiple filter options are specified, they are treated as AND with each
|
443
|
-
# other.
|
444
|
-
class Filters
|
445
|
-
include Google::Apis::Core::Hashable
|
446
|
-
|
447
|
-
# This filter is used to define which results to return based on the contents
|
448
|
-
# of the media item.
|
449
|
-
# It is possible to specify a list of categories to include, and/or a list of
|
450
|
-
# categories to exclude. Within each list, the categories are combined with an
|
451
|
-
# OR. For example, if the content filter looks like:
|
452
|
-
# included_content_categories: [c1, c2, c3]
|
453
|
-
# It would get media items that contain (c1 OR c2 OR c3).
|
454
|
-
# And if the content filter looks like:
|
455
|
-
# excluded_content_categories: [c1, c2, c3]
|
456
|
-
# It would get media items that contain NOT (c1 OR c2 OR c3).
|
457
|
-
# You can also include some categories while excluding others, as in this
|
458
|
-
# proto:
|
459
|
-
# included_content_categories: [c1, c2],
|
460
|
-
# excluded_content_category: [c3, c4]
|
461
|
-
# It would get media items that contain (c1 OR c2) AND NOT (c3 OR c4).
|
462
|
-
# A category that appears in <code>includedContentategories</code> must not
|
463
|
-
# appear in <code>excludedContentCategories</code>.
|
464
|
-
# Corresponds to the JSON property `contentFilter`
|
465
|
-
# @return [Google::Apis::PhotoslibraryV1::ContentFilter]
|
466
|
-
attr_accessor :content_filter
|
467
|
-
|
468
|
-
# This filter defines the allowed dates or date ranges for the media returned.
|
469
|
-
# It is possible to pick a set of specific dates and a set of date ranges.
|
470
|
-
# Corresponds to the JSON property `dateFilter`
|
471
|
-
# @return [Google::Apis::PhotoslibraryV1::DateFilter]
|
472
|
-
attr_accessor :date_filter
|
473
|
-
|
474
|
-
# If set, the results will include media items that the user has archived.
|
475
|
-
# Defaults to false (archived media items are not included).
|
476
|
-
# Corresponds to the JSON property `includeArchivedMedia`
|
477
|
-
# @return [Boolean]
|
478
|
-
attr_accessor :include_archived_media
|
479
|
-
alias_method :include_archived_media?, :include_archived_media
|
480
|
-
|
481
|
-
# This filter defines the type of media items to be returned, for example
|
482
|
-
# videos or photos. All the specified media types are treated as an OR with
|
483
|
-
# each other.
|
484
|
-
# Corresponds to the JSON property `mediaTypeFilter`
|
485
|
-
# @return [Google::Apis::PhotoslibraryV1::MediaTypeFilter]
|
486
|
-
attr_accessor :media_type_filter
|
487
|
-
|
488
|
-
def initialize(**args)
|
489
|
-
update!(**args)
|
490
|
-
end
|
491
|
-
|
492
|
-
# Update properties of this object
|
493
|
-
def update!(**args)
|
494
|
-
@content_filter = args[:content_filter] if args.key?(:content_filter)
|
495
|
-
@date_filter = args[:date_filter] if args.key?(:date_filter)
|
496
|
-
@include_archived_media = args[:include_archived_media] if args.key?(:include_archived_media)
|
497
|
-
@media_type_filter = args[:media_type_filter] if args.key?(:media_type_filter)
|
498
|
-
end
|
499
|
-
end
|
500
|
-
|
501
|
-
# Request to join a shared album on behalf of the user. This uses a shareToken
|
502
|
-
# which can be acquired via the shareAlbum or listSharedAlbums calls.
|
503
|
-
class JoinSharedAlbumRequest
|
504
|
-
include Google::Apis::Core::Hashable
|
505
|
-
|
506
|
-
# Token indicating the shared album to join on behalf of the user.
|
507
|
-
# Corresponds to the JSON property `shareToken`
|
508
|
-
# @return [String]
|
509
|
-
attr_accessor :share_token
|
510
|
-
|
511
|
-
def initialize(**args)
|
512
|
-
update!(**args)
|
513
|
-
end
|
514
|
-
|
515
|
-
# Update properties of this object
|
516
|
-
def update!(**args)
|
517
|
-
@share_token = args[:share_token] if args.key?(:share_token)
|
518
|
-
end
|
519
|
-
end
|
520
|
-
|
521
|
-
# Response to successfully joining the shared album on behalf of the user.
|
522
|
-
class JoinSharedAlbumResponse
|
523
|
-
include Google::Apis::Core::Hashable
|
524
|
-
|
525
|
-
def initialize(**args)
|
526
|
-
update!(**args)
|
527
|
-
end
|
528
|
-
|
529
|
-
# Update properties of this object
|
530
|
-
def update!(**args)
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
535
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
536
|
-
# specified otherwise, this must conform to the
|
537
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
538
|
-
# standard</a>. Values must be within normalized ranges.
|
539
|
-
class LatLng
|
540
|
-
include Google::Apis::Core::Hashable
|
541
|
-
|
542
|
-
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
543
|
-
# Corresponds to the JSON property `latitude`
|
544
|
-
# @return [Float]
|
545
|
-
attr_accessor :latitude
|
546
|
-
|
547
|
-
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
548
|
-
# Corresponds to the JSON property `longitude`
|
549
|
-
# @return [Float]
|
550
|
-
attr_accessor :longitude
|
551
|
-
|
552
|
-
def initialize(**args)
|
553
|
-
update!(**args)
|
554
|
-
end
|
555
|
-
|
556
|
-
# Update properties of this object
|
557
|
-
def update!(**args)
|
558
|
-
@latitude = args[:latitude] if args.key?(:latitude)
|
559
|
-
@longitude = args[:longitude] if args.key?(:longitude)
|
560
|
-
end
|
561
|
-
end
|
562
|
-
|
563
|
-
#
|
564
|
-
class ListAlbumsResponse
|
565
|
-
include Google::Apis::Core::Hashable
|
566
|
-
|
567
|
-
# [Output only] List of albums that were created by the user.
|
568
|
-
# Corresponds to the JSON property `albums`
|
569
|
-
# @return [Array<Google::Apis::PhotoslibraryV1::Album>]
|
570
|
-
attr_accessor :albums
|
571
|
-
|
572
|
-
# [Output only] Token to use to get the next set of albums. Populated if
|
573
|
-
# there are more albums to retrieve for this request.
|
574
|
-
# Corresponds to the JSON property `nextPageToken`
|
575
|
-
# @return [String]
|
576
|
-
attr_accessor :next_page_token
|
577
|
-
|
578
|
-
def initialize(**args)
|
579
|
-
update!(**args)
|
580
|
-
end
|
581
|
-
|
582
|
-
# Update properties of this object
|
583
|
-
def update!(**args)
|
584
|
-
@albums = args[:albums] if args.key?(:albums)
|
585
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
586
|
-
end
|
587
|
-
end
|
588
|
-
|
589
|
-
#
|
590
|
-
class ListSharedAlbumsResponse
|
591
|
-
include Google::Apis::Core::Hashable
|
592
|
-
|
593
|
-
# [Output only] Token to use to get the next set of shared albums. Populated
|
594
|
-
# if there are more shared albums to retrieve for this request.
|
595
|
-
# Corresponds to the JSON property `nextPageToken`
|
596
|
-
# @return [String]
|
597
|
-
attr_accessor :next_page_token
|
598
|
-
|
599
|
-
# [Output only] List of shared albums that were requested.
|
600
|
-
# Corresponds to the JSON property `sharedAlbums`
|
601
|
-
# @return [Array<Google::Apis::PhotoslibraryV1::Album>]
|
602
|
-
attr_accessor :shared_albums
|
603
|
-
|
604
|
-
def initialize(**args)
|
605
|
-
update!(**args)
|
606
|
-
end
|
607
|
-
|
608
|
-
# Update properties of this object
|
609
|
-
def update!(**args)
|
610
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
611
|
-
@shared_albums = args[:shared_albums] if args.key?(:shared_albums)
|
612
|
-
end
|
613
|
-
end
|
614
|
-
|
615
|
-
# Represents a physical location.
|
616
|
-
class Location
|
617
|
-
include Google::Apis::Core::Hashable
|
618
|
-
|
619
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
620
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
621
|
-
# specified otherwise, this must conform to the
|
622
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
623
|
-
# standard</a>. Values must be within normalized ranges.
|
624
|
-
# Corresponds to the JSON property `latlng`
|
625
|
-
# @return [Google::Apis::PhotoslibraryV1::LatLng]
|
626
|
-
attr_accessor :latlng
|
627
|
-
|
628
|
-
# Name of the location to be displayed.
|
629
|
-
# Corresponds to the JSON property `locationName`
|
630
|
-
# @return [String]
|
631
|
-
attr_accessor :location_name
|
632
|
-
|
633
|
-
def initialize(**args)
|
634
|
-
update!(**args)
|
635
|
-
end
|
636
|
-
|
637
|
-
# Update properties of this object
|
638
|
-
def update!(**args)
|
639
|
-
@latlng = args[:latlng] if args.key?(:latlng)
|
640
|
-
@location_name = args[:location_name] if args.key?(:location_name)
|
641
|
-
end
|
642
|
-
end
|
643
|
-
|
644
|
-
# An enrichment containing a single location.
|
645
|
-
class LocationEnrichment
|
646
|
-
include Google::Apis::Core::Hashable
|
647
|
-
|
648
|
-
# Represents a physical location.
|
649
|
-
# Corresponds to the JSON property `location`
|
650
|
-
# @return [Google::Apis::PhotoslibraryV1::Location]
|
651
|
-
attr_accessor :location
|
652
|
-
|
653
|
-
def initialize(**args)
|
654
|
-
update!(**args)
|
655
|
-
end
|
656
|
-
|
657
|
-
# Update properties of this object
|
658
|
-
def update!(**args)
|
659
|
-
@location = args[:location] if args.key?(:location)
|
660
|
-
end
|
661
|
-
end
|
662
|
-
|
663
|
-
# An enrichment containing a map, showing origin and destination locations.
|
664
|
-
class MapEnrichment
|
665
|
-
include Google::Apis::Core::Hashable
|
666
|
-
|
667
|
-
# Represents a physical location.
|
668
|
-
# Corresponds to the JSON property `destination`
|
669
|
-
# @return [Google::Apis::PhotoslibraryV1::Location]
|
670
|
-
attr_accessor :destination
|
671
|
-
|
672
|
-
# Represents a physical location.
|
673
|
-
# Corresponds to the JSON property `origin`
|
674
|
-
# @return [Google::Apis::PhotoslibraryV1::Location]
|
675
|
-
attr_accessor :origin
|
676
|
-
|
677
|
-
def initialize(**args)
|
678
|
-
update!(**args)
|
679
|
-
end
|
680
|
-
|
681
|
-
# Update properties of this object
|
682
|
-
def update!(**args)
|
683
|
-
@destination = args[:destination] if args.key?(:destination)
|
684
|
-
@origin = args[:origin] if args.key?(:origin)
|
685
|
-
end
|
686
|
-
end
|
687
|
-
|
688
|
-
# Representation of a media item (e.g. photo, video etc.) in Google Photos.
|
689
|
-
class MediaItem
|
690
|
-
include Google::Apis::Core::Hashable
|
691
|
-
|
692
|
-
# A URL to the media item's bytes. This should not be used as is.
|
693
|
-
# For example, '=w2048-h1024' will set the dimensions of a media item of type
|
694
|
-
# photo to have a width of 2048 px and height of 1024 px.
|
695
|
-
# Corresponds to the JSON property `baseUrl`
|
696
|
-
# @return [String]
|
697
|
-
attr_accessor :base_url
|
698
|
-
|
699
|
-
# Information about a user who contributed the media item. Note that this
|
700
|
-
# information is only included if the album containing the media item is
|
701
|
-
# shared, was created by you and you have the sharing scope.
|
702
|
-
# Corresponds to the JSON property `contributorInfo`
|
703
|
-
# @return [Google::Apis::PhotoslibraryV1::ContributorInfo]
|
704
|
-
attr_accessor :contributor_info
|
705
|
-
|
706
|
-
# Description of the media item. This is shown to the user in the item's
|
707
|
-
# info section in the Google Photos app.
|
708
|
-
# Corresponds to the JSON property `description`
|
709
|
-
# @return [String]
|
710
|
-
attr_accessor :description
|
711
|
-
|
712
|
-
# Identifier for the media item. This is a persistent identifier that can be
|
713
|
-
# used between sessions to identify this media item.
|
714
|
-
# Corresponds to the JSON property `id`
|
715
|
-
# @return [String]
|
716
|
-
attr_accessor :id
|
717
|
-
|
718
|
-
# Metadata for a media item.
|
719
|
-
# Corresponds to the JSON property `mediaMetadata`
|
720
|
-
# @return [Google::Apis::PhotoslibraryV1::MediaMetadata]
|
721
|
-
attr_accessor :media_metadata
|
722
|
-
|
723
|
-
# MIME type of the media item.
|
724
|
-
# Corresponds to the JSON property `mimeType`
|
725
|
-
# @return [String]
|
726
|
-
attr_accessor :mime_type
|
727
|
-
|
728
|
-
# Google Photos URL for the media item. This link will only be available to
|
729
|
-
# the user if they're signed in.
|
730
|
-
# Corresponds to the JSON property `productUrl`
|
731
|
-
# @return [String]
|
732
|
-
attr_accessor :product_url
|
733
|
-
|
734
|
-
def initialize(**args)
|
735
|
-
update!(**args)
|
736
|
-
end
|
737
|
-
|
738
|
-
# Update properties of this object
|
739
|
-
def update!(**args)
|
740
|
-
@base_url = args[:base_url] if args.key?(:base_url)
|
741
|
-
@contributor_info = args[:contributor_info] if args.key?(:contributor_info)
|
742
|
-
@description = args[:description] if args.key?(:description)
|
743
|
-
@id = args[:id] if args.key?(:id)
|
744
|
-
@media_metadata = args[:media_metadata] if args.key?(:media_metadata)
|
745
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
746
|
-
@product_url = args[:product_url] if args.key?(:product_url)
|
747
|
-
end
|
748
|
-
end
|
749
|
-
|
750
|
-
# Metadata for a media item.
|
751
|
-
class MediaMetadata
|
752
|
-
include Google::Apis::Core::Hashable
|
753
|
-
|
754
|
-
# Time when the media item was first created (not when it was uploaded to
|
755
|
-
# Google Photos).
|
756
|
-
# Corresponds to the JSON property `creationTime`
|
757
|
-
# @return [String]
|
758
|
-
attr_accessor :creation_time
|
759
|
-
|
760
|
-
# Original height (in pixels) of the media item.
|
761
|
-
# Corresponds to the JSON property `height`
|
762
|
-
# @return [Fixnum]
|
763
|
-
attr_accessor :height
|
764
|
-
|
765
|
-
# Metadata that is specific to a photo, for example, ISO, focal length and
|
766
|
-
# exposure time. Some of these fields may be null or not included.
|
767
|
-
# Corresponds to the JSON property `photo`
|
768
|
-
# @return [Google::Apis::PhotoslibraryV1::Photo]
|
769
|
-
attr_accessor :photo
|
770
|
-
|
771
|
-
# Metadata that is specific to a video, for example, fps and processing status.
|
772
|
-
# Some of these fields may be null or not included.
|
773
|
-
# Corresponds to the JSON property `video`
|
774
|
-
# @return [Google::Apis::PhotoslibraryV1::Video]
|
775
|
-
attr_accessor :video
|
776
|
-
|
777
|
-
# Original width (in pixels) of the media item.
|
778
|
-
# Corresponds to the JSON property `width`
|
779
|
-
# @return [Fixnum]
|
780
|
-
attr_accessor :width
|
781
|
-
|
782
|
-
def initialize(**args)
|
783
|
-
update!(**args)
|
784
|
-
end
|
785
|
-
|
786
|
-
# Update properties of this object
|
787
|
-
def update!(**args)
|
788
|
-
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
789
|
-
@height = args[:height] if args.key?(:height)
|
790
|
-
@photo = args[:photo] if args.key?(:photo)
|
791
|
-
@video = args[:video] if args.key?(:video)
|
792
|
-
@width = args[:width] if args.key?(:width)
|
793
|
-
end
|
794
|
-
end
|
795
|
-
|
796
|
-
# This filter defines the type of media items to be returned, for example
|
797
|
-
# videos or photos. All the specified media types are treated as an OR with
|
798
|
-
# each other.
|
799
|
-
class MediaTypeFilter
|
800
|
-
include Google::Apis::Core::Hashable
|
801
|
-
|
802
|
-
# The types of media items to be included. This field should only be
|
803
|
-
# populated with one media type, multiple media types will result in an error
|
804
|
-
# response.
|
805
|
-
# Corresponds to the JSON property `mediaTypes`
|
806
|
-
# @return [Array<String>]
|
807
|
-
attr_accessor :media_types
|
808
|
-
|
809
|
-
def initialize(**args)
|
810
|
-
update!(**args)
|
811
|
-
end
|
812
|
-
|
813
|
-
# Update properties of this object
|
814
|
-
def update!(**args)
|
815
|
-
@media_types = args[:media_types] if args.key?(:media_types)
|
816
|
-
end
|
817
|
-
end
|
818
|
-
|
819
|
-
# A new enrichment item to be added to an album, used by the
|
820
|
-
# AddEnrichmentToAlbum call.
|
821
|
-
class NewEnrichmentItem
|
822
|
-
include Google::Apis::Core::Hashable
|
823
|
-
|
824
|
-
# An enrichment containing a single location.
|
825
|
-
# Corresponds to the JSON property `locationEnrichment`
|
826
|
-
# @return [Google::Apis::PhotoslibraryV1::LocationEnrichment]
|
827
|
-
attr_accessor :location_enrichment
|
828
|
-
|
829
|
-
# An enrichment containing a map, showing origin and destination locations.
|
830
|
-
# Corresponds to the JSON property `mapEnrichment`
|
831
|
-
# @return [Google::Apis::PhotoslibraryV1::MapEnrichment]
|
832
|
-
attr_accessor :map_enrichment
|
833
|
-
|
834
|
-
# An enrichment containing text.
|
835
|
-
# Corresponds to the JSON property `textEnrichment`
|
836
|
-
# @return [Google::Apis::PhotoslibraryV1::TextEnrichment]
|
837
|
-
attr_accessor :text_enrichment
|
838
|
-
|
839
|
-
def initialize(**args)
|
840
|
-
update!(**args)
|
841
|
-
end
|
842
|
-
|
843
|
-
# Update properties of this object
|
844
|
-
def update!(**args)
|
845
|
-
@location_enrichment = args[:location_enrichment] if args.key?(:location_enrichment)
|
846
|
-
@map_enrichment = args[:map_enrichment] if args.key?(:map_enrichment)
|
847
|
-
@text_enrichment = args[:text_enrichment] if args.key?(:text_enrichment)
|
848
|
-
end
|
849
|
-
end
|
850
|
-
|
851
|
-
# New media item that will be created in a user's Google Photos account.
|
852
|
-
class NewMediaItem
|
853
|
-
include Google::Apis::Core::Hashable
|
854
|
-
|
855
|
-
# Description of the media item. This will be shown to the user in the item's
|
856
|
-
# info section in the Google Photos app.
|
857
|
-
# This string should not be more than 1000 characters.
|
858
|
-
# Corresponds to the JSON property `description`
|
859
|
-
# @return [String]
|
860
|
-
attr_accessor :description
|
861
|
-
|
862
|
-
# A simple media item to be created in Google Photos via an upload token.
|
863
|
-
# Corresponds to the JSON property `simpleMediaItem`
|
864
|
-
# @return [Google::Apis::PhotoslibraryV1::SimpleMediaItem]
|
865
|
-
attr_accessor :simple_media_item
|
866
|
-
|
867
|
-
def initialize(**args)
|
868
|
-
update!(**args)
|
869
|
-
end
|
870
|
-
|
871
|
-
# Update properties of this object
|
872
|
-
def update!(**args)
|
873
|
-
@description = args[:description] if args.key?(:description)
|
874
|
-
@simple_media_item = args[:simple_media_item] if args.key?(:simple_media_item)
|
875
|
-
end
|
876
|
-
end
|
877
|
-
|
878
|
-
# Result of creating a new media item.
|
879
|
-
class NewMediaItemResult
|
880
|
-
include Google::Apis::Core::Hashable
|
881
|
-
|
882
|
-
# Representation of a media item (e.g. photo, video etc.) in Google Photos.
|
883
|
-
# Corresponds to the JSON property `mediaItem`
|
884
|
-
# @return [Google::Apis::PhotoslibraryV1::MediaItem]
|
885
|
-
attr_accessor :media_item
|
886
|
-
|
887
|
-
# The `Status` type defines a logical error model that is suitable for different
|
888
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
889
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
890
|
-
# - Simple to use and understand for most users
|
891
|
-
# - Flexible enough to meet unexpected needs
|
892
|
-
# # Overview
|
893
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
894
|
-
# and error details. The error code should be an enum value of
|
895
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
896
|
-
# error message should be a developer-facing English message that helps
|
897
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
898
|
-
# error message is needed, put the localized message in the error details or
|
899
|
-
# localize it in the client. The optional error details may contain arbitrary
|
900
|
-
# information about the error. There is a predefined set of error detail types
|
901
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
902
|
-
# # Language mapping
|
903
|
-
# The `Status` message is the logical representation of the error model, but it
|
904
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
905
|
-
# exposed in different client libraries and different wire protocols, it can be
|
906
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
907
|
-
# in Java, but more likely mapped to some error codes in C.
|
908
|
-
# # Other uses
|
909
|
-
# The error model and the `Status` message can be used in a variety of
|
910
|
-
# environments, either with or without APIs, to provide a
|
911
|
-
# consistent developer experience across different environments.
|
912
|
-
# Example uses of this error model include:
|
913
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
914
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
915
|
-
# errors.
|
916
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
917
|
-
# have a `Status` message for error reporting.
|
918
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
919
|
-
# `Status` message should be used directly inside batch response, one for
|
920
|
-
# each error sub-response.
|
921
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
922
|
-
# results in its response, the status of those operations should be
|
923
|
-
# represented directly using the `Status` message.
|
924
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
925
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
926
|
-
# Corresponds to the JSON property `status`
|
927
|
-
# @return [Google::Apis::PhotoslibraryV1::Status]
|
928
|
-
attr_accessor :status
|
929
|
-
|
930
|
-
# The upload token used to create this new media item.
|
931
|
-
# Corresponds to the JSON property `uploadToken`
|
932
|
-
# @return [String]
|
933
|
-
attr_accessor :upload_token
|
934
|
-
|
935
|
-
def initialize(**args)
|
936
|
-
update!(**args)
|
937
|
-
end
|
938
|
-
|
939
|
-
# Update properties of this object
|
940
|
-
def update!(**args)
|
941
|
-
@media_item = args[:media_item] if args.key?(:media_item)
|
942
|
-
@status = args[:status] if args.key?(:status)
|
943
|
-
@upload_token = args[:upload_token] if args.key?(:upload_token)
|
944
|
-
end
|
945
|
-
end
|
946
|
-
|
947
|
-
# Metadata that is specific to a photo, for example, ISO, focal length and
|
948
|
-
# exposure time. Some of these fields may be null or not included.
|
949
|
-
class Photo
|
950
|
-
include Google::Apis::Core::Hashable
|
951
|
-
|
952
|
-
# Apeture f number of the photo.
|
953
|
-
# Corresponds to the JSON property `apertureFNumber`
|
954
|
-
# @return [Float]
|
955
|
-
attr_accessor :aperture_f_number
|
956
|
-
|
957
|
-
# Brand of the camera which took the photo.
|
958
|
-
# Corresponds to the JSON property `cameraMake`
|
959
|
-
# @return [String]
|
960
|
-
attr_accessor :camera_make
|
961
|
-
|
962
|
-
# Model of the camera which took the photo.
|
963
|
-
# Corresponds to the JSON property `cameraModel`
|
964
|
-
# @return [String]
|
965
|
-
attr_accessor :camera_model
|
966
|
-
|
967
|
-
# Exposure time of the photo.
|
968
|
-
# Corresponds to the JSON property `exposureTime`
|
969
|
-
# @return [String]
|
970
|
-
attr_accessor :exposure_time
|
971
|
-
|
972
|
-
# Focal length of the photo.
|
973
|
-
# Corresponds to the JSON property `focalLength`
|
974
|
-
# @return [Float]
|
975
|
-
attr_accessor :focal_length
|
976
|
-
|
977
|
-
# ISO of the photo.
|
978
|
-
# Corresponds to the JSON property `isoEquivalent`
|
979
|
-
# @return [Fixnum]
|
980
|
-
attr_accessor :iso_equivalent
|
981
|
-
|
982
|
-
def initialize(**args)
|
983
|
-
update!(**args)
|
984
|
-
end
|
985
|
-
|
986
|
-
# Update properties of this object
|
987
|
-
def update!(**args)
|
988
|
-
@aperture_f_number = args[:aperture_f_number] if args.key?(:aperture_f_number)
|
989
|
-
@camera_make = args[:camera_make] if args.key?(:camera_make)
|
990
|
-
@camera_model = args[:camera_model] if args.key?(:camera_model)
|
991
|
-
@exposure_time = args[:exposure_time] if args.key?(:exposure_time)
|
992
|
-
@focal_length = args[:focal_length] if args.key?(:focal_length)
|
993
|
-
@iso_equivalent = args[:iso_equivalent] if args.key?(:iso_equivalent)
|
994
|
-
end
|
995
|
-
end
|
996
|
-
|
997
|
-
# Request to search for media items in a user's library.
|
998
|
-
# If the album id is specified, this call will return the list of media items
|
999
|
-
# in the album. If neither filters nor album id are
|
1000
|
-
# specified, this call will return all media items in a user's Google Photos
|
1001
|
-
# library.
|
1002
|
-
# If filters are specified, this call will return all media items in
|
1003
|
-
# the user's library which fulfills the criteria based upon the filters.
|
1004
|
-
# Filters and album id must not both be set, as this will result in an
|
1005
|
-
# invalid request.
|
1006
|
-
class SearchMediaItemsRequest
|
1007
|
-
include Google::Apis::Core::Hashable
|
1008
|
-
|
1009
|
-
# Identifier of an album. If populated will list all media items in
|
1010
|
-
# specified album. Cannot be set in conjunction with any filters.
|
1011
|
-
# Corresponds to the JSON property `albumId`
|
1012
|
-
# @return [String]
|
1013
|
-
attr_accessor :album_id
|
1014
|
-
|
1015
|
-
# Filters that can be applied to a media item search.
|
1016
|
-
# If multiple filter options are specified, they are treated as AND with each
|
1017
|
-
# other.
|
1018
|
-
# Corresponds to the JSON property `filters`
|
1019
|
-
# @return [Google::Apis::PhotoslibraryV1::Filters]
|
1020
|
-
attr_accessor :filters
|
1021
|
-
|
1022
|
-
# Maximum number of media items to return in the response. The default number
|
1023
|
-
# of media items to return at a time is 100. The maximum page size is 500.
|
1024
|
-
# Corresponds to the JSON property `pageSize`
|
1025
|
-
# @return [Fixnum]
|
1026
|
-
attr_accessor :page_size
|
1027
|
-
|
1028
|
-
# A continuation token to get the next page of the results. Adding this to
|
1029
|
-
# the request will return the rows after the pageToken. The pageToken should
|
1030
|
-
# be the value returned in the nextPageToken parameter in the response to the
|
1031
|
-
# searchMediaItems request.
|
1032
|
-
# Corresponds to the JSON property `pageToken`
|
1033
|
-
# @return [String]
|
1034
|
-
attr_accessor :page_token
|
1035
|
-
|
1036
|
-
def initialize(**args)
|
1037
|
-
update!(**args)
|
1038
|
-
end
|
1039
|
-
|
1040
|
-
# Update properties of this object
|
1041
|
-
def update!(**args)
|
1042
|
-
@album_id = args[:album_id] if args.key?(:album_id)
|
1043
|
-
@filters = args[:filters] if args.key?(:filters)
|
1044
|
-
@page_size = args[:page_size] if args.key?(:page_size)
|
1045
|
-
@page_token = args[:page_token] if args.key?(:page_token)
|
1046
|
-
end
|
1047
|
-
end
|
1048
|
-
|
1049
|
-
#
|
1050
|
-
class SearchMediaItemsResponse
|
1051
|
-
include Google::Apis::Core::Hashable
|
1052
|
-
|
1053
|
-
# [Output only] List of media items that match the search parameters.
|
1054
|
-
# Corresponds to the JSON property `mediaItems`
|
1055
|
-
# @return [Array<Google::Apis::PhotoslibraryV1::MediaItem>]
|
1056
|
-
attr_accessor :media_items
|
1057
|
-
|
1058
|
-
# [Output only] Token to use to get the next set of media items. Its presence
|
1059
|
-
# is the only reliable indicator of more media items being available in the
|
1060
|
-
# next request.
|
1061
|
-
# Corresponds to the JSON property `nextPageToken`
|
1062
|
-
# @return [String]
|
1063
|
-
attr_accessor :next_page_token
|
1064
|
-
|
1065
|
-
def initialize(**args)
|
1066
|
-
update!(**args)
|
1067
|
-
end
|
1068
|
-
|
1069
|
-
# Update properties of this object
|
1070
|
-
def update!(**args)
|
1071
|
-
@media_items = args[:media_items] if args.key?(:media_items)
|
1072
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1073
|
-
end
|
1074
|
-
end
|
1075
|
-
|
1076
|
-
# Request to make an album shared in Google Photos.
|
1077
|
-
class ShareAlbumRequest
|
1078
|
-
include Google::Apis::Core::Hashable
|
1079
|
-
|
1080
|
-
# Options that control the sharing of an album.
|
1081
|
-
# Corresponds to the JSON property `sharedAlbumOptions`
|
1082
|
-
# @return [Google::Apis::PhotoslibraryV1::SharedAlbumOptions]
|
1083
|
-
attr_accessor :shared_album_options
|
1084
|
-
|
1085
|
-
def initialize(**args)
|
1086
|
-
update!(**args)
|
1087
|
-
end
|
1088
|
-
|
1089
|
-
# Update properties of this object
|
1090
|
-
def update!(**args)
|
1091
|
-
@shared_album_options = args[:shared_album_options] if args.key?(:shared_album_options)
|
1092
|
-
end
|
1093
|
-
end
|
1094
|
-
|
1095
|
-
#
|
1096
|
-
class ShareAlbumResponse
|
1097
|
-
include Google::Apis::Core::Hashable
|
1098
|
-
|
1099
|
-
# Information about albums that are shared. Note that this
|
1100
|
-
# information is only included if the album was created by you and you have the
|
1101
|
-
# sharing scope.
|
1102
|
-
# Corresponds to the JSON property `shareInfo`
|
1103
|
-
# @return [Google::Apis::PhotoslibraryV1::ShareInfo]
|
1104
|
-
attr_accessor :share_info
|
1105
|
-
|
1106
|
-
def initialize(**args)
|
1107
|
-
update!(**args)
|
1108
|
-
end
|
1109
|
-
|
1110
|
-
# Update properties of this object
|
1111
|
-
def update!(**args)
|
1112
|
-
@share_info = args[:share_info] if args.key?(:share_info)
|
1113
|
-
end
|
1114
|
-
end
|
1115
|
-
|
1116
|
-
# Information about albums that are shared. Note that this
|
1117
|
-
# information is only included if the album was created by you and you have the
|
1118
|
-
# sharing scope.
|
1119
|
-
class ShareInfo
|
1120
|
-
include Google::Apis::Core::Hashable
|
1121
|
-
|
1122
|
-
# A token which can be used to join this shared album on behalf of other
|
1123
|
-
# users via the API.
|
1124
|
-
# Corresponds to the JSON property `shareToken`
|
1125
|
-
# @return [String]
|
1126
|
-
attr_accessor :share_token
|
1127
|
-
|
1128
|
-
# A link to the album that's now shared on the Google Photos website and app.
|
1129
|
-
# Anyone with the link can access this shared album and see all of the items
|
1130
|
-
# present in the album.
|
1131
|
-
# Corresponds to the JSON property `shareableUrl`
|
1132
|
-
# @return [String]
|
1133
|
-
attr_accessor :shareable_url
|
1134
|
-
|
1135
|
-
# Options that control the sharing of an album.
|
1136
|
-
# Corresponds to the JSON property `sharedAlbumOptions`
|
1137
|
-
# @return [Google::Apis::PhotoslibraryV1::SharedAlbumOptions]
|
1138
|
-
attr_accessor :shared_album_options
|
1139
|
-
|
1140
|
-
def initialize(**args)
|
1141
|
-
update!(**args)
|
1142
|
-
end
|
1143
|
-
|
1144
|
-
# Update properties of this object
|
1145
|
-
def update!(**args)
|
1146
|
-
@share_token = args[:share_token] if args.key?(:share_token)
|
1147
|
-
@shareable_url = args[:shareable_url] if args.key?(:shareable_url)
|
1148
|
-
@shared_album_options = args[:shared_album_options] if args.key?(:shared_album_options)
|
1149
|
-
end
|
1150
|
-
end
|
1151
|
-
|
1152
|
-
# Options that control the sharing of an album.
|
1153
|
-
class SharedAlbumOptions
|
1154
|
-
include Google::Apis::Core::Hashable
|
1155
|
-
|
1156
|
-
# True if the shared album allows collaborators (users who have joined
|
1157
|
-
# the album) to add media items to it. Defaults to false.
|
1158
|
-
# Corresponds to the JSON property `isCollaborative`
|
1159
|
-
# @return [Boolean]
|
1160
|
-
attr_accessor :is_collaborative
|
1161
|
-
alias_method :is_collaborative?, :is_collaborative
|
1162
|
-
|
1163
|
-
# True if the shared album allows the owner and the collaborators (users
|
1164
|
-
# who have joined the album) to add comments to the album. Defaults to false.
|
1165
|
-
# Corresponds to the JSON property `isCommentable`
|
1166
|
-
# @return [Boolean]
|
1167
|
-
attr_accessor :is_commentable
|
1168
|
-
alias_method :is_commentable?, :is_commentable
|
1169
|
-
|
1170
|
-
def initialize(**args)
|
1171
|
-
update!(**args)
|
1172
|
-
end
|
1173
|
-
|
1174
|
-
# Update properties of this object
|
1175
|
-
def update!(**args)
|
1176
|
-
@is_collaborative = args[:is_collaborative] if args.key?(:is_collaborative)
|
1177
|
-
@is_commentable = args[:is_commentable] if args.key?(:is_commentable)
|
1178
|
-
end
|
1179
|
-
end
|
1180
|
-
|
1181
|
-
# A simple media item to be created in Google Photos via an upload token.
|
1182
|
-
class SimpleMediaItem
|
1183
|
-
include Google::Apis::Core::Hashable
|
1184
|
-
|
1185
|
-
# Token identifying the media bytes which have been uploaded to Google.
|
1186
|
-
# Corresponds to the JSON property `uploadToken`
|
1187
|
-
# @return [String]
|
1188
|
-
attr_accessor :upload_token
|
1189
|
-
|
1190
|
-
def initialize(**args)
|
1191
|
-
update!(**args)
|
1192
|
-
end
|
1193
|
-
|
1194
|
-
# Update properties of this object
|
1195
|
-
def update!(**args)
|
1196
|
-
@upload_token = args[:upload_token] if args.key?(:upload_token)
|
1197
|
-
end
|
1198
|
-
end
|
1199
|
-
|
1200
|
-
# The `Status` type defines a logical error model that is suitable for different
|
1201
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
1202
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1203
|
-
# - Simple to use and understand for most users
|
1204
|
-
# - Flexible enough to meet unexpected needs
|
1205
|
-
# # Overview
|
1206
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
1207
|
-
# and error details. The error code should be an enum value of
|
1208
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1209
|
-
# error message should be a developer-facing English message that helps
|
1210
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
1211
|
-
# error message is needed, put the localized message in the error details or
|
1212
|
-
# localize it in the client. The optional error details may contain arbitrary
|
1213
|
-
# information about the error. There is a predefined set of error detail types
|
1214
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
1215
|
-
# # Language mapping
|
1216
|
-
# The `Status` message is the logical representation of the error model, but it
|
1217
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
1218
|
-
# exposed in different client libraries and different wire protocols, it can be
|
1219
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
1220
|
-
# in Java, but more likely mapped to some error codes in C.
|
1221
|
-
# # Other uses
|
1222
|
-
# The error model and the `Status` message can be used in a variety of
|
1223
|
-
# environments, either with or without APIs, to provide a
|
1224
|
-
# consistent developer experience across different environments.
|
1225
|
-
# Example uses of this error model include:
|
1226
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
1227
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
1228
|
-
# errors.
|
1229
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1230
|
-
# have a `Status` message for error reporting.
|
1231
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
1232
|
-
# `Status` message should be used directly inside batch response, one for
|
1233
|
-
# each error sub-response.
|
1234
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1235
|
-
# results in its response, the status of those operations should be
|
1236
|
-
# represented directly using the `Status` message.
|
1237
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1238
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
1239
|
-
class Status
|
1240
|
-
include Google::Apis::Core::Hashable
|
1241
|
-
|
1242
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
1243
|
-
# Corresponds to the JSON property `code`
|
1244
|
-
# @return [Fixnum]
|
1245
|
-
attr_accessor :code
|
1246
|
-
|
1247
|
-
# A list of messages that carry the error details. There is a common set of
|
1248
|
-
# message types for APIs to use.
|
1249
|
-
# Corresponds to the JSON property `details`
|
1250
|
-
# @return [Array<Hash<String,Object>>]
|
1251
|
-
attr_accessor :details
|
1252
|
-
|
1253
|
-
# A developer-facing error message, which should be in English. Any
|
1254
|
-
# user-facing error message should be localized and sent in the
|
1255
|
-
# google.rpc.Status.details field, or localized by the client.
|
1256
|
-
# Corresponds to the JSON property `message`
|
1257
|
-
# @return [String]
|
1258
|
-
attr_accessor :message
|
1259
|
-
|
1260
|
-
def initialize(**args)
|
1261
|
-
update!(**args)
|
1262
|
-
end
|
1263
|
-
|
1264
|
-
# Update properties of this object
|
1265
|
-
def update!(**args)
|
1266
|
-
@code = args[:code] if args.key?(:code)
|
1267
|
-
@details = args[:details] if args.key?(:details)
|
1268
|
-
@message = args[:message] if args.key?(:message)
|
1269
|
-
end
|
1270
|
-
end
|
1271
|
-
|
1272
|
-
# An enrichment containing text.
|
1273
|
-
class TextEnrichment
|
1274
|
-
include Google::Apis::Core::Hashable
|
1275
|
-
|
1276
|
-
# Text for this text enrichment item.
|
1277
|
-
# Corresponds to the JSON property `text`
|
1278
|
-
# @return [String]
|
1279
|
-
attr_accessor :text
|
1280
|
-
|
1281
|
-
def initialize(**args)
|
1282
|
-
update!(**args)
|
1283
|
-
end
|
1284
|
-
|
1285
|
-
# Update properties of this object
|
1286
|
-
def update!(**args)
|
1287
|
-
@text = args[:text] if args.key?(:text)
|
1288
|
-
end
|
1289
|
-
end
|
1290
|
-
|
1291
|
-
# Metadata that is specific to a video, for example, fps and processing status.
|
1292
|
-
# Some of these fields may be null or not included.
|
1293
|
-
class Video
|
1294
|
-
include Google::Apis::Core::Hashable
|
1295
|
-
|
1296
|
-
# Brand of the camera which took the video.
|
1297
|
-
# Corresponds to the JSON property `cameraMake`
|
1298
|
-
# @return [String]
|
1299
|
-
attr_accessor :camera_make
|
1300
|
-
|
1301
|
-
# Model of the camera which took the video.
|
1302
|
-
# Corresponds to the JSON property `cameraModel`
|
1303
|
-
# @return [String]
|
1304
|
-
attr_accessor :camera_model
|
1305
|
-
|
1306
|
-
# Frame rate of the video.
|
1307
|
-
# Corresponds to the JSON property `fps`
|
1308
|
-
# @return [Float]
|
1309
|
-
attr_accessor :fps
|
1310
|
-
|
1311
|
-
# Processing status of the video.
|
1312
|
-
# Corresponds to the JSON property `status`
|
1313
|
-
# @return [String]
|
1314
|
-
attr_accessor :status
|
1315
|
-
|
1316
|
-
def initialize(**args)
|
1317
|
-
update!(**args)
|
1318
|
-
end
|
1319
|
-
|
1320
|
-
# Update properties of this object
|
1321
|
-
def update!(**args)
|
1322
|
-
@camera_make = args[:camera_make] if args.key?(:camera_make)
|
1323
|
-
@camera_model = args[:camera_model] if args.key?(:camera_model)
|
1324
|
-
@fps = args[:fps] if args.key?(:fps)
|
1325
|
-
@status = args[:status] if args.key?(:status)
|
1326
|
-
end
|
1327
|
-
end
|
1328
|
-
end
|
1329
|
-
end
|
1330
|
-
end
|