google-api-client 0.22.0 → 0.23.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 +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
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/tpu/
|
|
26
26
|
module TpuV1alpha1
|
|
27
27
|
VERSION = 'V1alpha1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180601'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -350,6 +350,11 @@ module Google
|
|
|
350
350
|
# @return [String]
|
|
351
351
|
attr_accessor :port
|
|
352
352
|
|
|
353
|
+
#
|
|
354
|
+
# Corresponds to the JSON property `schedulingConfig`
|
|
355
|
+
# @return [Google::Apis::TpuV1alpha1::SchedulingConfig]
|
|
356
|
+
attr_accessor :scheduling_config
|
|
357
|
+
|
|
353
358
|
# Output only.
|
|
354
359
|
# The service account used to run the tensor flow services within the node.
|
|
355
360
|
# To share resources, including Google Cloud Storage data, with the
|
|
@@ -389,6 +394,7 @@ module Google
|
|
|
389
394
|
@network = args[:network] if args.key?(:network)
|
|
390
395
|
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
|
|
391
396
|
@port = args[:port] if args.key?(:port)
|
|
397
|
+
@scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config)
|
|
392
398
|
@service_account = args[:service_account] if args.key?(:service_account)
|
|
393
399
|
@state = args[:state] if args.key?(:state)
|
|
394
400
|
@tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
|
|
@@ -583,6 +589,26 @@ module Google
|
|
|
583
589
|
end
|
|
584
590
|
end
|
|
585
591
|
|
|
592
|
+
#
|
|
593
|
+
class SchedulingConfig
|
|
594
|
+
include Google::Apis::Core::Hashable
|
|
595
|
+
|
|
596
|
+
#
|
|
597
|
+
# Corresponds to the JSON property `preemptible`
|
|
598
|
+
# @return [Boolean]
|
|
599
|
+
attr_accessor :preemptible
|
|
600
|
+
alias_method :preemptible?, :preemptible
|
|
601
|
+
|
|
602
|
+
def initialize(**args)
|
|
603
|
+
update!(**args)
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
# Update properties of this object
|
|
607
|
+
def update!(**args)
|
|
608
|
+
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
586
612
|
# Request for StartNode.
|
|
587
613
|
class StartNodeRequest
|
|
588
614
|
include Google::Apis::Core::Hashable
|
|
@@ -106,6 +106,12 @@ module Google
|
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
+
class SchedulingConfig
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
109
115
|
class StartNodeRequest
|
|
110
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
117
|
|
|
@@ -224,6 +230,8 @@ module Google
|
|
|
224
230
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV1alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV1alpha1::NetworkEndpoint::Representation
|
|
225
231
|
|
|
226
232
|
property :port, as: 'port'
|
|
233
|
+
property :scheduling_config, as: 'schedulingConfig', class: Google::Apis::TpuV1alpha1::SchedulingConfig, decorator: Google::Apis::TpuV1alpha1::SchedulingConfig::Representation
|
|
234
|
+
|
|
227
235
|
property :service_account, as: 'serviceAccount'
|
|
228
236
|
property :state, as: 'state'
|
|
229
237
|
property :tensorflow_version, as: 'tensorflowVersion'
|
|
@@ -268,6 +276,13 @@ module Google
|
|
|
268
276
|
end
|
|
269
277
|
end
|
|
270
278
|
|
|
279
|
+
class SchedulingConfig
|
|
280
|
+
# @private
|
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
282
|
+
property :preemptible, as: 'preemptible'
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
|
|
271
286
|
class StartNodeRequest
|
|
272
287
|
# @private
|
|
273
288
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/video-intelligence/docs/
|
|
26
26
|
module VideointelligenceV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180530'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -587,310 +587,6 @@ module Google
|
|
|
587
587
|
end
|
|
588
588
|
end
|
|
589
589
|
|
|
590
|
-
# Video annotation progress. Included in the `metadata`
|
|
591
|
-
# field of the `Operation` returned by the `GetOperation`
|
|
592
|
-
# call of the `google::longrunning::Operations` service.
|
|
593
|
-
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
|
|
594
|
-
include Google::Apis::Core::Hashable
|
|
595
|
-
|
|
596
|
-
# Progress metadata for all videos specified in `AnnotateVideoRequest`.
|
|
597
|
-
# Corresponds to the JSON property `annotationProgress`
|
|
598
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>]
|
|
599
|
-
attr_accessor :annotation_progress
|
|
600
|
-
|
|
601
|
-
def initialize(**args)
|
|
602
|
-
update!(**args)
|
|
603
|
-
end
|
|
604
|
-
|
|
605
|
-
# Update properties of this object
|
|
606
|
-
def update!(**args)
|
|
607
|
-
@annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
|
|
608
|
-
end
|
|
609
|
-
end
|
|
610
|
-
|
|
611
|
-
# Video annotation response. Included in the `response`
|
|
612
|
-
# field of the `Operation` returned by the `GetOperation`
|
|
613
|
-
# call of the `google::longrunning::Operations` service.
|
|
614
|
-
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
|
|
615
|
-
include Google::Apis::Core::Hashable
|
|
616
|
-
|
|
617
|
-
# Annotation results for all videos specified in `AnnotateVideoRequest`.
|
|
618
|
-
# Corresponds to the JSON property `annotationResults`
|
|
619
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>]
|
|
620
|
-
attr_accessor :annotation_results
|
|
621
|
-
|
|
622
|
-
def initialize(**args)
|
|
623
|
-
update!(**args)
|
|
624
|
-
end
|
|
625
|
-
|
|
626
|
-
# Update properties of this object
|
|
627
|
-
def update!(**args)
|
|
628
|
-
@annotation_results = args[:annotation_results] if args.key?(:annotation_results)
|
|
629
|
-
end
|
|
630
|
-
end
|
|
631
|
-
|
|
632
|
-
# Label annotation.
|
|
633
|
-
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
|
|
634
|
-
include Google::Apis::Core::Hashable
|
|
635
|
-
|
|
636
|
-
# Textual description, e.g. `Fixed-gear bicycle`.
|
|
637
|
-
# Corresponds to the JSON property `description`
|
|
638
|
-
# @return [String]
|
|
639
|
-
attr_accessor :description
|
|
640
|
-
|
|
641
|
-
# Language code for `description` in BCP-47 format.
|
|
642
|
-
# Corresponds to the JSON property `languageCode`
|
|
643
|
-
# @return [String]
|
|
644
|
-
attr_accessor :language_code
|
|
645
|
-
|
|
646
|
-
# Where the label was detected and with what confidence.
|
|
647
|
-
# Corresponds to the JSON property `locations`
|
|
648
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelLocation>]
|
|
649
|
-
attr_accessor :locations
|
|
650
|
-
|
|
651
|
-
def initialize(**args)
|
|
652
|
-
update!(**args)
|
|
653
|
-
end
|
|
654
|
-
|
|
655
|
-
# Update properties of this object
|
|
656
|
-
def update!(**args)
|
|
657
|
-
@description = args[:description] if args.key?(:description)
|
|
658
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
|
659
|
-
@locations = args[:locations] if args.key?(:locations)
|
|
660
|
-
end
|
|
661
|
-
end
|
|
662
|
-
|
|
663
|
-
# Label location.
|
|
664
|
-
class GoogleCloudVideointelligenceV1beta1LabelLocation
|
|
665
|
-
include Google::Apis::Core::Hashable
|
|
666
|
-
|
|
667
|
-
# Confidence that the label is accurate. Range: [0, 1].
|
|
668
|
-
# Corresponds to the JSON property `confidence`
|
|
669
|
-
# @return [Float]
|
|
670
|
-
attr_accessor :confidence
|
|
671
|
-
|
|
672
|
-
# Label level.
|
|
673
|
-
# Corresponds to the JSON property `level`
|
|
674
|
-
# @return [String]
|
|
675
|
-
attr_accessor :level
|
|
676
|
-
|
|
677
|
-
# Video segment.
|
|
678
|
-
# Corresponds to the JSON property `segment`
|
|
679
|
-
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment]
|
|
680
|
-
attr_accessor :segment
|
|
681
|
-
|
|
682
|
-
def initialize(**args)
|
|
683
|
-
update!(**args)
|
|
684
|
-
end
|
|
685
|
-
|
|
686
|
-
# Update properties of this object
|
|
687
|
-
def update!(**args)
|
|
688
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
|
689
|
-
@level = args[:level] if args.key?(:level)
|
|
690
|
-
@segment = args[:segment] if args.key?(:segment)
|
|
691
|
-
end
|
|
692
|
-
end
|
|
693
|
-
|
|
694
|
-
# Safe search annotation (based on per-frame visual signals only).
|
|
695
|
-
# If no unsafe content has been detected in a frame, no annotations
|
|
696
|
-
# are present for that frame. If only some types of unsafe content
|
|
697
|
-
# have been detected in a frame, the likelihood is set to `UNKNOWN`
|
|
698
|
-
# for all other types of unsafe content.
|
|
699
|
-
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
|
|
700
|
-
include Google::Apis::Core::Hashable
|
|
701
|
-
|
|
702
|
-
# Likelihood of adult content.
|
|
703
|
-
# Corresponds to the JSON property `adult`
|
|
704
|
-
# @return [String]
|
|
705
|
-
attr_accessor :adult
|
|
706
|
-
|
|
707
|
-
# Likelihood of medical content.
|
|
708
|
-
# Corresponds to the JSON property `medical`
|
|
709
|
-
# @return [String]
|
|
710
|
-
attr_accessor :medical
|
|
711
|
-
|
|
712
|
-
# Likelihood of racy content.
|
|
713
|
-
# Corresponds to the JSON property `racy`
|
|
714
|
-
# @return [String]
|
|
715
|
-
attr_accessor :racy
|
|
716
|
-
|
|
717
|
-
# Likelihood that an obvious modification was made to the original
|
|
718
|
-
# version to make it appear funny or offensive.
|
|
719
|
-
# Corresponds to the JSON property `spoof`
|
|
720
|
-
# @return [String]
|
|
721
|
-
attr_accessor :spoof
|
|
722
|
-
|
|
723
|
-
# Video time offset in microseconds.
|
|
724
|
-
# Corresponds to the JSON property `timeOffset`
|
|
725
|
-
# @return [Fixnum]
|
|
726
|
-
attr_accessor :time_offset
|
|
727
|
-
|
|
728
|
-
# Likelihood of violent content.
|
|
729
|
-
# Corresponds to the JSON property `violent`
|
|
730
|
-
# @return [String]
|
|
731
|
-
attr_accessor :violent
|
|
732
|
-
|
|
733
|
-
def initialize(**args)
|
|
734
|
-
update!(**args)
|
|
735
|
-
end
|
|
736
|
-
|
|
737
|
-
# Update properties of this object
|
|
738
|
-
def update!(**args)
|
|
739
|
-
@adult = args[:adult] if args.key?(:adult)
|
|
740
|
-
@medical = args[:medical] if args.key?(:medical)
|
|
741
|
-
@racy = args[:racy] if args.key?(:racy)
|
|
742
|
-
@spoof = args[:spoof] if args.key?(:spoof)
|
|
743
|
-
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
|
744
|
-
@violent = args[:violent] if args.key?(:violent)
|
|
745
|
-
end
|
|
746
|
-
end
|
|
747
|
-
|
|
748
|
-
# Annotation progress for a single video.
|
|
749
|
-
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
|
|
750
|
-
include Google::Apis::Core::Hashable
|
|
751
|
-
|
|
752
|
-
# Video file location in
|
|
753
|
-
# [Google Cloud Storage](https://cloud.google.com/storage/).
|
|
754
|
-
# Corresponds to the JSON property `inputUri`
|
|
755
|
-
# @return [String]
|
|
756
|
-
attr_accessor :input_uri
|
|
757
|
-
|
|
758
|
-
# Approximate percentage processed thus far.
|
|
759
|
-
# Guaranteed to be 100 when fully processed.
|
|
760
|
-
# Corresponds to the JSON property `progressPercent`
|
|
761
|
-
# @return [Fixnum]
|
|
762
|
-
attr_accessor :progress_percent
|
|
763
|
-
|
|
764
|
-
# Time when the request was received.
|
|
765
|
-
# Corresponds to the JSON property `startTime`
|
|
766
|
-
# @return [String]
|
|
767
|
-
attr_accessor :start_time
|
|
768
|
-
|
|
769
|
-
# Time of the most recent update.
|
|
770
|
-
# Corresponds to the JSON property `updateTime`
|
|
771
|
-
# @return [String]
|
|
772
|
-
attr_accessor :update_time
|
|
773
|
-
|
|
774
|
-
def initialize(**args)
|
|
775
|
-
update!(**args)
|
|
776
|
-
end
|
|
777
|
-
|
|
778
|
-
# Update properties of this object
|
|
779
|
-
def update!(**args)
|
|
780
|
-
@input_uri = args[:input_uri] if args.key?(:input_uri)
|
|
781
|
-
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
|
|
782
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
783
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
|
784
|
-
end
|
|
785
|
-
end
|
|
786
|
-
|
|
787
|
-
# Annotation results for a single video.
|
|
788
|
-
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
|
|
789
|
-
include Google::Apis::Core::Hashable
|
|
790
|
-
|
|
791
|
-
# The `Status` type defines a logical error model that is suitable for different
|
|
792
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
793
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
794
|
-
# - Simple to use and understand for most users
|
|
795
|
-
# - Flexible enough to meet unexpected needs
|
|
796
|
-
# # Overview
|
|
797
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
|
798
|
-
# and error details. The error code should be an enum value of
|
|
799
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
800
|
-
# error message should be a developer-facing English message that helps
|
|
801
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
802
|
-
# error message is needed, put the localized message in the error details or
|
|
803
|
-
# localize it in the client. The optional error details may contain arbitrary
|
|
804
|
-
# information about the error. There is a predefined set of error detail types
|
|
805
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
|
806
|
-
# # Language mapping
|
|
807
|
-
# The `Status` message is the logical representation of the error model, but it
|
|
808
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
|
809
|
-
# exposed in different client libraries and different wire protocols, it can be
|
|
810
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
811
|
-
# in Java, but more likely mapped to some error codes in C.
|
|
812
|
-
# # Other uses
|
|
813
|
-
# The error model and the `Status` message can be used in a variety of
|
|
814
|
-
# environments, either with or without APIs, to provide a
|
|
815
|
-
# consistent developer experience across different environments.
|
|
816
|
-
# Example uses of this error model include:
|
|
817
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
|
818
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
|
819
|
-
# errors.
|
|
820
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
821
|
-
# have a `Status` message for error reporting.
|
|
822
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
|
823
|
-
# `Status` message should be used directly inside batch response, one for
|
|
824
|
-
# each error sub-response.
|
|
825
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
826
|
-
# results in its response, the status of those operations should be
|
|
827
|
-
# represented directly using the `Status` message.
|
|
828
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
829
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
|
830
|
-
# Corresponds to the JSON property `error`
|
|
831
|
-
# @return [Google::Apis::VideointelligenceV1::GoogleRpcStatus]
|
|
832
|
-
attr_accessor :error
|
|
833
|
-
|
|
834
|
-
# Video file location in
|
|
835
|
-
# [Google Cloud Storage](https://cloud.google.com/storage/).
|
|
836
|
-
# Corresponds to the JSON property `inputUri`
|
|
837
|
-
# @return [String]
|
|
838
|
-
attr_accessor :input_uri
|
|
839
|
-
|
|
840
|
-
# Label annotations. There is exactly one element for each unique label.
|
|
841
|
-
# Corresponds to the JSON property `labelAnnotations`
|
|
842
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelAnnotation>]
|
|
843
|
-
attr_accessor :label_annotations
|
|
844
|
-
|
|
845
|
-
# Safe search annotations.
|
|
846
|
-
# Corresponds to the JSON property `safeSearchAnnotations`
|
|
847
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>]
|
|
848
|
-
attr_accessor :safe_search_annotations
|
|
849
|
-
|
|
850
|
-
# Shot annotations. Each shot is represented as a video segment.
|
|
851
|
-
# Corresponds to the JSON property `shotAnnotations`
|
|
852
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment>]
|
|
853
|
-
attr_accessor :shot_annotations
|
|
854
|
-
|
|
855
|
-
def initialize(**args)
|
|
856
|
-
update!(**args)
|
|
857
|
-
end
|
|
858
|
-
|
|
859
|
-
# Update properties of this object
|
|
860
|
-
def update!(**args)
|
|
861
|
-
@error = args[:error] if args.key?(:error)
|
|
862
|
-
@input_uri = args[:input_uri] if args.key?(:input_uri)
|
|
863
|
-
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
|
864
|
-
@safe_search_annotations = args[:safe_search_annotations] if args.key?(:safe_search_annotations)
|
|
865
|
-
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
|
|
866
|
-
end
|
|
867
|
-
end
|
|
868
|
-
|
|
869
|
-
# Video segment.
|
|
870
|
-
class GoogleCloudVideointelligenceV1beta1VideoSegment
|
|
871
|
-
include Google::Apis::Core::Hashable
|
|
872
|
-
|
|
873
|
-
# End offset in microseconds (inclusive). Unset means 0.
|
|
874
|
-
# Corresponds to the JSON property `endTimeOffset`
|
|
875
|
-
# @return [Fixnum]
|
|
876
|
-
attr_accessor :end_time_offset
|
|
877
|
-
|
|
878
|
-
# Start offset in microseconds (inclusive). Unset means 0.
|
|
879
|
-
# Corresponds to the JSON property `startTimeOffset`
|
|
880
|
-
# @return [Fixnum]
|
|
881
|
-
attr_accessor :start_time_offset
|
|
882
|
-
|
|
883
|
-
def initialize(**args)
|
|
884
|
-
update!(**args)
|
|
885
|
-
end
|
|
886
|
-
|
|
887
|
-
# Update properties of this object
|
|
888
|
-
def update!(**args)
|
|
889
|
-
@end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset)
|
|
890
|
-
@start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset)
|
|
891
|
-
end
|
|
892
|
-
end
|
|
893
|
-
|
|
894
590
|
# Video annotation progress. Included in the `metadata`
|
|
895
591
|
# field of the `Operation` returned by the `GetOperation`
|
|
896
592
|
# call of the `google::longrunning::Operations` service.
|
|
@@ -1311,31 +1007,6 @@ module Google
|
|
|
1311
1007
|
end
|
|
1312
1008
|
end
|
|
1313
1009
|
|
|
1314
|
-
# Emotion attribute.
|
|
1315
|
-
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
|
|
1316
|
-
include Google::Apis::Core::Hashable
|
|
1317
|
-
|
|
1318
|
-
# Emotion entry.
|
|
1319
|
-
# Corresponds to the JSON property `emotion`
|
|
1320
|
-
# @return [String]
|
|
1321
|
-
attr_accessor :emotion
|
|
1322
|
-
|
|
1323
|
-
# Confidence score.
|
|
1324
|
-
# Corresponds to the JSON property `score`
|
|
1325
|
-
# @return [Float]
|
|
1326
|
-
attr_accessor :score
|
|
1327
|
-
|
|
1328
|
-
def initialize(**args)
|
|
1329
|
-
update!(**args)
|
|
1330
|
-
end
|
|
1331
|
-
|
|
1332
|
-
# Update properties of this object
|
|
1333
|
-
def update!(**args)
|
|
1334
|
-
@emotion = args[:emotion] if args.key?(:emotion)
|
|
1335
|
-
@score = args[:score] if args.key?(:score)
|
|
1336
|
-
end
|
|
1337
|
-
end
|
|
1338
|
-
|
|
1339
1010
|
# Detected entity from video analysis.
|
|
1340
1011
|
class GoogleCloudVideointelligenceV1p1beta1Entity
|
|
1341
1012
|
include Google::Apis::Core::Hashable
|
|
@@ -1416,105 +1087,6 @@ module Google
|
|
|
1416
1087
|
end
|
|
1417
1088
|
end
|
|
1418
1089
|
|
|
1419
|
-
# Face detection annotation.
|
|
1420
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
|
|
1421
|
-
include Google::Apis::Core::Hashable
|
|
1422
|
-
|
|
1423
|
-
# All video frames where a face was detected.
|
|
1424
|
-
# Corresponds to the JSON property `frames`
|
|
1425
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame>]
|
|
1426
|
-
attr_accessor :frames
|
|
1427
|
-
|
|
1428
|
-
# All video segments where a face was detected.
|
|
1429
|
-
# Corresponds to the JSON property `segments`
|
|
1430
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceSegment>]
|
|
1431
|
-
attr_accessor :segments
|
|
1432
|
-
|
|
1433
|
-
def initialize(**args)
|
|
1434
|
-
update!(**args)
|
|
1435
|
-
end
|
|
1436
|
-
|
|
1437
|
-
# Update properties of this object
|
|
1438
|
-
def update!(**args)
|
|
1439
|
-
@frames = args[:frames] if args.key?(:frames)
|
|
1440
|
-
@segments = args[:segments] if args.key?(:segments)
|
|
1441
|
-
end
|
|
1442
|
-
end
|
|
1443
|
-
|
|
1444
|
-
# Face detection attribute.
|
|
1445
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
|
|
1446
|
-
include Google::Apis::Core::Hashable
|
|
1447
|
-
|
|
1448
|
-
# Emotion attributes.
|
|
1449
|
-
# Corresponds to the JSON property `emotions`
|
|
1450
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute>]
|
|
1451
|
-
attr_accessor :emotions
|
|
1452
|
-
|
|
1453
|
-
# Normalized bounding box.
|
|
1454
|
-
# The normalized vertex coordinates are relative to the original image.
|
|
1455
|
-
# Range: [0, 1].
|
|
1456
|
-
# Corresponds to the JSON property `normalizedBoundingBox`
|
|
1457
|
-
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox]
|
|
1458
|
-
attr_accessor :normalized_bounding_box
|
|
1459
|
-
|
|
1460
|
-
def initialize(**args)
|
|
1461
|
-
update!(**args)
|
|
1462
|
-
end
|
|
1463
|
-
|
|
1464
|
-
# Update properties of this object
|
|
1465
|
-
def update!(**args)
|
|
1466
|
-
@emotions = args[:emotions] if args.key?(:emotions)
|
|
1467
|
-
@normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box)
|
|
1468
|
-
end
|
|
1469
|
-
end
|
|
1470
|
-
|
|
1471
|
-
# Video frame level annotation results for face detection.
|
|
1472
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
|
|
1473
|
-
include Google::Apis::Core::Hashable
|
|
1474
|
-
|
|
1475
|
-
# Face attributes in a frame.
|
|
1476
|
-
# There can be more than one attributes if the same face is detected in
|
|
1477
|
-
# multiple locations within the current frame.
|
|
1478
|
-
# Corresponds to the JSON property `attributes`
|
|
1479
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute>]
|
|
1480
|
-
attr_accessor :attributes
|
|
1481
|
-
|
|
1482
|
-
# Time-offset, relative to the beginning of the video,
|
|
1483
|
-
# corresponding to the video frame for this location.
|
|
1484
|
-
# Corresponds to the JSON property `timeOffset`
|
|
1485
|
-
# @return [String]
|
|
1486
|
-
attr_accessor :time_offset
|
|
1487
|
-
|
|
1488
|
-
def initialize(**args)
|
|
1489
|
-
update!(**args)
|
|
1490
|
-
end
|
|
1491
|
-
|
|
1492
|
-
# Update properties of this object
|
|
1493
|
-
def update!(**args)
|
|
1494
|
-
@attributes = args[:attributes] if args.key?(:attributes)
|
|
1495
|
-
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
|
1496
|
-
end
|
|
1497
|
-
end
|
|
1498
|
-
|
|
1499
|
-
# Video segment level annotation results for face detection.
|
|
1500
|
-
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
|
|
1501
|
-
include Google::Apis::Core::Hashable
|
|
1502
|
-
|
|
1503
|
-
# Video segment.
|
|
1504
|
-
# Corresponds to the JSON property `segment`
|
|
1505
|
-
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
|
|
1506
|
-
attr_accessor :segment
|
|
1507
|
-
|
|
1508
|
-
def initialize(**args)
|
|
1509
|
-
update!(**args)
|
|
1510
|
-
end
|
|
1511
|
-
|
|
1512
|
-
# Update properties of this object
|
|
1513
|
-
def update!(**args)
|
|
1514
|
-
@segment = args[:segment] if args.key?(:segment)
|
|
1515
|
-
end
|
|
1516
|
-
end
|
|
1517
|
-
|
|
1518
1090
|
# Label annotation.
|
|
1519
1091
|
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
|
|
1520
1092
|
include Google::Apis::Core::Hashable
|
|
@@ -1606,45 +1178,6 @@ module Google
|
|
|
1606
1178
|
end
|
|
1607
1179
|
end
|
|
1608
1180
|
|
|
1609
|
-
# Normalized bounding box.
|
|
1610
|
-
# The normalized vertex coordinates are relative to the original image.
|
|
1611
|
-
# Range: [0, 1].
|
|
1612
|
-
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
|
|
1613
|
-
include Google::Apis::Core::Hashable
|
|
1614
|
-
|
|
1615
|
-
# Bottom Y coordinate.
|
|
1616
|
-
# Corresponds to the JSON property `bottom`
|
|
1617
|
-
# @return [Float]
|
|
1618
|
-
attr_accessor :bottom
|
|
1619
|
-
|
|
1620
|
-
# Left X coordinate.
|
|
1621
|
-
# Corresponds to the JSON property `left`
|
|
1622
|
-
# @return [Float]
|
|
1623
|
-
attr_accessor :left
|
|
1624
|
-
|
|
1625
|
-
# Right X coordinate.
|
|
1626
|
-
# Corresponds to the JSON property `right`
|
|
1627
|
-
# @return [Float]
|
|
1628
|
-
attr_accessor :right
|
|
1629
|
-
|
|
1630
|
-
# Top Y coordinate.
|
|
1631
|
-
# Corresponds to the JSON property `top`
|
|
1632
|
-
# @return [Float]
|
|
1633
|
-
attr_accessor :top
|
|
1634
|
-
|
|
1635
|
-
def initialize(**args)
|
|
1636
|
-
update!(**args)
|
|
1637
|
-
end
|
|
1638
|
-
|
|
1639
|
-
# Update properties of this object
|
|
1640
|
-
def update!(**args)
|
|
1641
|
-
@bottom = args[:bottom] if args.key?(:bottom)
|
|
1642
|
-
@left = args[:left] if args.key?(:left)
|
|
1643
|
-
@right = args[:right] if args.key?(:right)
|
|
1644
|
-
@top = args[:top] if args.key?(:top)
|
|
1645
|
-
end
|
|
1646
|
-
end
|
|
1647
|
-
|
|
1648
1181
|
# Alternative hypotheses (a.k.a. n-best list).
|
|
1649
1182
|
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
|
|
1650
1183
|
include Google::Apis::Core::Hashable
|
|
@@ -1796,11 +1329,6 @@ module Google
|
|
|
1796
1329
|
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation]
|
|
1797
1330
|
attr_accessor :explicit_annotation
|
|
1798
1331
|
|
|
1799
|
-
# Face detection annotations.
|
|
1800
|
-
# Corresponds to the JSON property `faceDetectionAnnotations`
|
|
1801
|
-
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation>]
|
|
1802
|
-
attr_accessor :face_detection_annotations
|
|
1803
|
-
|
|
1804
1332
|
# Label annotations on frame level.
|
|
1805
1333
|
# There is exactly one element for each unique label.
|
|
1806
1334
|
# Corresponds to the JSON property `frameLabelAnnotations`
|
|
@@ -1843,7 +1371,6 @@ module Google
|
|
|
1843
1371
|
def update!(**args)
|
|
1844
1372
|
@error = args[:error] if args.key?(:error)
|
|
1845
1373
|
@explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
|
|
1846
|
-
@face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations)
|
|
1847
1374
|
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
|
|
1848
1375
|
@input_uri = args[:input_uri] if args.key?(:input_uri)
|
|
1849
1376
|
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
|