google-api-client 0.16.0 → 0.17.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 +18 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +13 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +6 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +13 -1
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +13 -1
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +52 -0
- data/generated/google/apis/container_v1beta1/representations.rb +17 -0
- data/generated/google/apis/container_v1beta1/service.rb +78 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +6 -11
- data/generated/google/apis/content_v2/representations.rb +0 -1
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +6 -11
- data/generated/google/apis/content_v2sandbox/representations.rb +0 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/service.rb +3 -3
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/service.rb +3 -3
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +149 -51
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +66 -16
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +439 -563
- data/generated/google/apis/vision_v1/representations.rb +178 -178
- data/generated/google/apis/vision_v1/service.rb +8 -8
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -6
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +0 -37
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +0 -679
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +0 -353
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +0 -453
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171102'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -2702,11 +2702,6 @@ module Google
|
|
2702
2702
|
# @return [Array<Google::Apis::ContentV2::OrderCancellation>]
|
2703
2703
|
attr_accessor :cancellations
|
2704
2704
|
|
2705
|
-
# The channel type of the order: "purchaseOnGoogle" or "googleExpress".
|
2706
|
-
# Corresponds to the JSON property `channelType`
|
2707
|
-
# @return [String]
|
2708
|
-
attr_accessor :channel_type
|
2709
|
-
|
2710
2705
|
# The id of the line item.
|
2711
2706
|
# Corresponds to the JSON property `id`
|
2712
2707
|
# @return [String]
|
@@ -2781,7 +2776,6 @@ module Google
|
|
2781
2776
|
# Update properties of this object
|
2782
2777
|
def update!(**args)
|
2783
2778
|
@cancellations = args[:cancellations] if args.key?(:cancellations)
|
2784
|
-
@channel_type = args[:channel_type] if args.key?(:channel_type)
|
2785
2779
|
@id = args[:id] if args.key?(:id)
|
2786
2780
|
@price = args[:price] if args.key?(:price)
|
2787
2781
|
@product = args[:product] if args.key?(:product)
|
@@ -3363,7 +3357,8 @@ module Google
|
|
3363
3357
|
class OrderShipmentLineItemShipment
|
3364
3358
|
include Google::Apis::Core::Hashable
|
3365
3359
|
|
3366
|
-
# The id of the line item that is shipped.
|
3360
|
+
# The id of the line item that is shipped. Either lineItemId or productId is
|
3361
|
+
# required.
|
3367
3362
|
# Corresponds to the JSON property `lineItemId`
|
3368
3363
|
# @return [String]
|
3369
3364
|
attr_accessor :line_item_id
|
@@ -3460,7 +3455,7 @@ module Google
|
|
3460
3455
|
# @return [Google::Apis::ContentV2::Price]
|
3461
3456
|
attr_accessor :amount
|
3462
3457
|
|
3463
|
-
# The ID of the line item to cancel.
|
3458
|
+
# The ID of the line item to cancel. Either lineItemId or productId is required.
|
3464
3459
|
# Corresponds to the JSON property `lineItemId`
|
3465
3460
|
# @return [String]
|
3466
3461
|
attr_accessor :line_item_id
|
@@ -3778,7 +3773,7 @@ module Google
|
|
3778
3773
|
# @return [Google::Apis::ContentV2::Price]
|
3779
3774
|
attr_accessor :amount
|
3780
3775
|
|
3781
|
-
# The ID of the line item to cancel.
|
3776
|
+
# The ID of the line item to cancel. Either lineItemId or productId is required.
|
3782
3777
|
# Corresponds to the JSON property `lineItemId`
|
3783
3778
|
# @return [String]
|
3784
3779
|
attr_accessor :line_item_id
|
@@ -3847,7 +3842,7 @@ module Google
|
|
3847
3842
|
class OrdersCustomBatchRequestEntryReturnLineItem
|
3848
3843
|
include Google::Apis::Core::Hashable
|
3849
3844
|
|
3850
|
-
# The ID of the line item to return.
|
3845
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
3851
3846
|
# Corresponds to the JSON property `lineItemId`
|
3852
3847
|
# @return [String]
|
3853
3848
|
attr_accessor :line_item_id
|
@@ -4219,7 +4214,7 @@ module Google
|
|
4219
4214
|
class OrdersReturnLineItemRequest
|
4220
4215
|
include Google::Apis::Core::Hashable
|
4221
4216
|
|
4222
|
-
# The ID of the line item to return.
|
4217
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
4223
4218
|
# Corresponds to the JSON property `lineItemId`
|
4224
4219
|
# @return [String]
|
4225
4220
|
attr_accessor :line_item_id
|
@@ -1722,7 +1722,6 @@ module Google
|
|
1722
1722
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1723
1723
|
collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2::OrderCancellation, decorator: Google::Apis::ContentV2::OrderCancellation::Representation
|
1724
1724
|
|
1725
|
-
property :channel_type, as: 'channelType'
|
1726
1725
|
property :id, as: 'id'
|
1727
1726
|
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
1728
1727
|
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2sandbox
|
28
28
|
VERSION = 'V2sandbox'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171102'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -404,11 +404,6 @@ module Google
|
|
404
404
|
# @return [Array<Google::Apis::ContentV2sandbox::OrderCancellation>]
|
405
405
|
attr_accessor :cancellations
|
406
406
|
|
407
|
-
# The channel type of the order: "purchaseOnGoogle" or "googleExpress".
|
408
|
-
# Corresponds to the JSON property `channelType`
|
409
|
-
# @return [String]
|
410
|
-
attr_accessor :channel_type
|
411
|
-
|
412
407
|
# The id of the line item.
|
413
408
|
# Corresponds to the JSON property `id`
|
414
409
|
# @return [String]
|
@@ -483,7 +478,6 @@ module Google
|
|
483
478
|
# Update properties of this object
|
484
479
|
def update!(**args)
|
485
480
|
@cancellations = args[:cancellations] if args.key?(:cancellations)
|
486
|
-
@channel_type = args[:channel_type] if args.key?(:channel_type)
|
487
481
|
@id = args[:id] if args.key?(:id)
|
488
482
|
@price = args[:price] if args.key?(:price)
|
489
483
|
@product = args[:product] if args.key?(:product)
|
@@ -1065,7 +1059,8 @@ module Google
|
|
1065
1059
|
class OrderShipmentLineItemShipment
|
1066
1060
|
include Google::Apis::Core::Hashable
|
1067
1061
|
|
1068
|
-
# The id of the line item that is shipped.
|
1062
|
+
# The id of the line item that is shipped. Either lineItemId or productId is
|
1063
|
+
# required.
|
1069
1064
|
# Corresponds to the JSON property `lineItemId`
|
1070
1065
|
# @return [String]
|
1071
1066
|
attr_accessor :line_item_id
|
@@ -1162,7 +1157,7 @@ module Google
|
|
1162
1157
|
# @return [Google::Apis::ContentV2sandbox::Price]
|
1163
1158
|
attr_accessor :amount
|
1164
1159
|
|
1165
|
-
# The ID of the line item to cancel.
|
1160
|
+
# The ID of the line item to cancel. Either lineItemId or productId is required.
|
1166
1161
|
# Corresponds to the JSON property `lineItemId`
|
1167
1162
|
# @return [String]
|
1168
1163
|
attr_accessor :line_item_id
|
@@ -1480,7 +1475,7 @@ module Google
|
|
1480
1475
|
# @return [Google::Apis::ContentV2sandbox::Price]
|
1481
1476
|
attr_accessor :amount
|
1482
1477
|
|
1483
|
-
# The ID of the line item to cancel.
|
1478
|
+
# The ID of the line item to cancel. Either lineItemId or productId is required.
|
1484
1479
|
# Corresponds to the JSON property `lineItemId`
|
1485
1480
|
# @return [String]
|
1486
1481
|
attr_accessor :line_item_id
|
@@ -1549,7 +1544,7 @@ module Google
|
|
1549
1544
|
class OrdersCustomBatchRequestEntryReturnLineItem
|
1550
1545
|
include Google::Apis::Core::Hashable
|
1551
1546
|
|
1552
|
-
# The ID of the line item to return.
|
1547
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
1553
1548
|
# Corresponds to the JSON property `lineItemId`
|
1554
1549
|
# @return [String]
|
1555
1550
|
attr_accessor :line_item_id
|
@@ -1921,7 +1916,7 @@ module Google
|
|
1921
1916
|
class OrdersReturnLineItemRequest
|
1922
1917
|
include Google::Apis::Core::Hashable
|
1923
1918
|
|
1924
|
-
# The ID of the line item to return.
|
1919
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
1925
1920
|
# Corresponds to the JSON property `lineItemId`
|
1926
1921
|
# @return [String]
|
1927
1922
|
attr_accessor :line_item_id
|
@@ -479,7 +479,6 @@ module Google
|
|
479
479
|
class Representation < Google::Apis::Core::JsonRepresentation
|
480
480
|
collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2sandbox::OrderCancellation, decorator: Google::Apis::ContentV2sandbox::OrderCancellation::Representation
|
481
481
|
|
482
|
-
property :channel_type, as: 'channelType'
|
483
482
|
property :id, as: 'id'
|
484
483
|
property :price, as: 'price', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
485
484
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/dataproc/
|
26
26
|
module DataprocV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171031'
|
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'
|
@@ -446,13 +446,13 @@ module Google
|
|
446
446
|
# Optional. A filter constraining the jobs to list. Filters are case-sensitive
|
447
447
|
# and have the following syntax:field = value AND field = value ...where field
|
448
448
|
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
449
|
-
# match all values. status.state can be either ACTIVE or
|
449
|
+
# match all values. status.state can be either ACTIVE or NON_ACTIVE. Only the
|
450
450
|
# logical AND operator is supported; space-separated items are treated as having
|
451
451
|
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
452
452
|
# staging AND labels.starred = *
|
453
453
|
# @param [String] job_state_matcher
|
454
|
-
# Optional. Specifies enumerated categories of jobs to list (default = match
|
455
|
-
# jobs).
|
454
|
+
# Optional. Specifies enumerated categories of jobs to list. (default = match
|
455
|
+
# ALL jobs).If filter is provided, jobStateMatcher will be ignored.
|
456
456
|
# @param [Fixnum] page_size
|
457
457
|
# Optional. The number of results to return in each response.
|
458
458
|
# @param [String] page_token
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/dataproc/
|
26
26
|
module DataprocV1beta2
|
27
27
|
VERSION = 'V1beta2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171031'
|
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'
|
@@ -788,13 +788,13 @@ module Google
|
|
788
788
|
# Optional. A filter constraining the jobs to list. Filters are case-sensitive
|
789
789
|
# and have the following syntax:field = value AND field = value ...where field
|
790
790
|
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
791
|
-
# match all values. status.state can be either ACTIVE or
|
791
|
+
# match all values. status.state can be either ACTIVE or NON_ACTIVE. Only the
|
792
792
|
# logical AND operator is supported; space-separated items are treated as having
|
793
793
|
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
794
794
|
# staging AND labels.starred = *
|
795
795
|
# @param [String] job_state_matcher
|
796
|
-
# Optional. Specifies enumerated categories of jobs to list (default = match
|
797
|
-
# jobs).
|
796
|
+
# Optional. Specifies enumerated categories of jobs to list. (default = match
|
797
|
+
# ALL jobs).If filter is provided, jobStateMatcher will be ignored.
|
798
798
|
# @param [Fixnum] page_size
|
799
799
|
# Optional. The number of results to return in each response.
|
800
800
|
# @param [String] page_token
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/video-intelligence/docs/
|
26
26
|
module VideointelligenceV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171104'
|
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'
|
@@ -64,8 +64,8 @@ module Google
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
-
#
|
68
|
-
class
|
67
|
+
# Detected entity from video analysis.
|
68
|
+
class GoogleCloudVideointelligenceV1Entity
|
69
69
|
include Google::Apis::Core::Hashable
|
70
70
|
|
71
71
|
# Textual description, e.g. `Fixed-gear bicycle`.
|
@@ -73,16 +73,18 @@ module Google
|
|
73
73
|
# @return [String]
|
74
74
|
attr_accessor :description
|
75
75
|
|
76
|
+
# Opaque entity ID. Some IDs may be available in
|
77
|
+
# [Google Knowledge Graph Search
|
78
|
+
# API](https://developers.google.com/knowledge-graph/).
|
79
|
+
# Corresponds to the JSON property `entityId`
|
80
|
+
# @return [String]
|
81
|
+
attr_accessor :entity_id
|
82
|
+
|
76
83
|
# Language code for `description` in BCP-47 format.
|
77
84
|
# Corresponds to the JSON property `languageCode`
|
78
85
|
# @return [String]
|
79
86
|
attr_accessor :language_code
|
80
87
|
|
81
|
-
# Where the label was detected and with what confidence.
|
82
|
-
# Corresponds to the JSON property `locations`
|
83
|
-
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelLocation>]
|
84
|
-
attr_accessor :locations
|
85
|
-
|
86
88
|
def initialize(**args)
|
87
89
|
update!(**args)
|
88
90
|
end
|
@@ -90,13 +92,100 @@ module Google
|
|
90
92
|
# Update properties of this object
|
91
93
|
def update!(**args)
|
92
94
|
@description = args[:description] if args.key?(:description)
|
95
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
93
96
|
@language_code = args[:language_code] if args.key?(:language_code)
|
94
|
-
@locations = args[:locations] if args.key?(:locations)
|
95
97
|
end
|
96
98
|
end
|
97
99
|
|
98
|
-
#
|
99
|
-
|
100
|
+
# Explicit content annotation (based on per-frame visual signals only).
|
101
|
+
# If no explicit content has been detected in a frame, no annotations are
|
102
|
+
# present for that frame.
|
103
|
+
class GoogleCloudVideointelligenceV1ExplicitContentAnnotation
|
104
|
+
include Google::Apis::Core::Hashable
|
105
|
+
|
106
|
+
# All video frames where explicit content was detected.
|
107
|
+
# Corresponds to the JSON property `frames`
|
108
|
+
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentFrame>]
|
109
|
+
attr_accessor :frames
|
110
|
+
|
111
|
+
def initialize(**args)
|
112
|
+
update!(**args)
|
113
|
+
end
|
114
|
+
|
115
|
+
# Update properties of this object
|
116
|
+
def update!(**args)
|
117
|
+
@frames = args[:frames] if args.key?(:frames)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# Video frame level annotation results for explicit content.
|
122
|
+
class GoogleCloudVideointelligenceV1ExplicitContentFrame
|
123
|
+
include Google::Apis::Core::Hashable
|
124
|
+
|
125
|
+
# Likelihood of the pornography content..
|
126
|
+
# Corresponds to the JSON property `pornographyLikelihood`
|
127
|
+
# @return [String]
|
128
|
+
attr_accessor :pornography_likelihood
|
129
|
+
|
130
|
+
# Time-offset, relative to the beginning of the video, corresponding to the
|
131
|
+
# video frame for this location.
|
132
|
+
# Corresponds to the JSON property `timeOffset`
|
133
|
+
# @return [String]
|
134
|
+
attr_accessor :time_offset
|
135
|
+
|
136
|
+
def initialize(**args)
|
137
|
+
update!(**args)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Update properties of this object
|
141
|
+
def update!(**args)
|
142
|
+
@pornography_likelihood = args[:pornography_likelihood] if args.key?(:pornography_likelihood)
|
143
|
+
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# Label annotation.
|
148
|
+
class GoogleCloudVideointelligenceV1LabelAnnotation
|
149
|
+
include Google::Apis::Core::Hashable
|
150
|
+
|
151
|
+
# Common categories for the detected entity.
|
152
|
+
# E.g. when the label is `Terrier` the category is likely `dog`. And in some
|
153
|
+
# cases there might be more than one categories e.g. `Terrier` could also be
|
154
|
+
# a `pet`.
|
155
|
+
# Corresponds to the JSON property `categoryEntities`
|
156
|
+
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity>]
|
157
|
+
attr_accessor :category_entities
|
158
|
+
|
159
|
+
# Detected entity from video analysis.
|
160
|
+
# Corresponds to the JSON property `entity`
|
161
|
+
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity]
|
162
|
+
attr_accessor :entity
|
163
|
+
|
164
|
+
# All video frames where a label was detected.
|
165
|
+
# Corresponds to the JSON property `frames`
|
166
|
+
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelFrame>]
|
167
|
+
attr_accessor :frames
|
168
|
+
|
169
|
+
# All video segments where a label was detected.
|
170
|
+
# Corresponds to the JSON property `segments`
|
171
|
+
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelSegment>]
|
172
|
+
attr_accessor :segments
|
173
|
+
|
174
|
+
def initialize(**args)
|
175
|
+
update!(**args)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Update properties of this object
|
179
|
+
def update!(**args)
|
180
|
+
@category_entities = args[:category_entities] if args.key?(:category_entities)
|
181
|
+
@entity = args[:entity] if args.key?(:entity)
|
182
|
+
@frames = args[:frames] if args.key?(:frames)
|
183
|
+
@segments = args[:segments] if args.key?(:segments)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Video frame level annotation results for label detection.
|
188
|
+
class GoogleCloudVideointelligenceV1LabelFrame
|
100
189
|
include Google::Apis::Core::Hashable
|
101
190
|
|
102
191
|
# Confidence that the label is accurate. Range: [0, 1].
|
@@ -104,15 +193,11 @@ module Google
|
|
104
193
|
# @return [Float]
|
105
194
|
attr_accessor :confidence
|
106
195
|
|
107
|
-
#
|
108
|
-
#
|
196
|
+
# Time-offset, relative to the beginning of the video, corresponding to the
|
197
|
+
# video frame for this location.
|
198
|
+
# Corresponds to the JSON property `timeOffset`
|
109
199
|
# @return [String]
|
110
|
-
attr_accessor :
|
111
|
-
|
112
|
-
# Video segment.
|
113
|
-
# Corresponds to the JSON property `segment`
|
114
|
-
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment]
|
115
|
-
attr_accessor :segment
|
200
|
+
attr_accessor :time_offset
|
116
201
|
|
117
202
|
def initialize(**args)
|
118
203
|
update!(**args)
|
@@ -121,27 +206,23 @@ module Google
|
|
121
206
|
# Update properties of this object
|
122
207
|
def update!(**args)
|
123
208
|
@confidence = args[:confidence] if args.key?(:confidence)
|
124
|
-
@
|
125
|
-
@segment = args[:segment] if args.key?(:segment)
|
209
|
+
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
126
210
|
end
|
127
211
|
end
|
128
212
|
|
129
|
-
#
|
130
|
-
|
131
|
-
# are present for that frame.
|
132
|
-
class GoogleCloudVideointelligenceV1SafeSearchAnnotation
|
213
|
+
# Video segment level annotation results for label detection.
|
214
|
+
class GoogleCloudVideointelligenceV1LabelSegment
|
133
215
|
include Google::Apis::Core::Hashable
|
134
216
|
|
135
|
-
#
|
136
|
-
# Corresponds to the JSON property `
|
137
|
-
# @return [
|
138
|
-
attr_accessor :
|
217
|
+
# Confidence that the label is accurate. Range: [0, 1].
|
218
|
+
# Corresponds to the JSON property `confidence`
|
219
|
+
# @return [Float]
|
220
|
+
attr_accessor :confidence
|
139
221
|
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
|
144
|
-
attr_accessor :time
|
222
|
+
# Video segment.
|
223
|
+
# Corresponds to the JSON property `segment`
|
224
|
+
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment]
|
225
|
+
attr_accessor :segment
|
145
226
|
|
146
227
|
def initialize(**args)
|
147
228
|
update!(**args)
|
@@ -149,8 +230,8 @@ module Google
|
|
149
230
|
|
150
231
|
# Update properties of this object
|
151
232
|
def update!(**args)
|
152
|
-
@
|
153
|
-
@
|
233
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
234
|
+
@segment = args[:segment] if args.key?(:segment)
|
154
235
|
end
|
155
236
|
end
|
156
237
|
|
@@ -240,27 +321,42 @@ module Google
|
|
240
321
|
# @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus]
|
241
322
|
attr_accessor :error
|
242
323
|
|
324
|
+
# Explicit content annotation (based on per-frame visual signals only).
|
325
|
+
# If no explicit content has been detected in a frame, no annotations are
|
326
|
+
# present for that frame.
|
327
|
+
# Corresponds to the JSON property `explicitAnnotation`
|
328
|
+
# @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation]
|
329
|
+
attr_accessor :explicit_annotation
|
330
|
+
|
331
|
+
# Label annotations on frame level.
|
332
|
+
# There is exactly one element for each unique label.
|
333
|
+
# Corresponds to the JSON property `frameLabelAnnotations`
|
334
|
+
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
|
335
|
+
attr_accessor :frame_label_annotations
|
336
|
+
|
243
337
|
# Video file location in
|
244
338
|
# [Google Cloud Storage](https://cloud.google.com/storage/).
|
245
339
|
# Corresponds to the JSON property `inputUri`
|
246
340
|
# @return [String]
|
247
341
|
attr_accessor :input_uri
|
248
342
|
|
249
|
-
# Label annotations
|
250
|
-
#
|
343
|
+
# Label annotations on video level or user specified segment level.
|
344
|
+
# There is exactly one element for each unique label.
|
345
|
+
# Corresponds to the JSON property `segmentLabelAnnotations`
|
251
346
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
|
252
|
-
attr_accessor :
|
253
|
-
|
254
|
-
# Safe search annotations.
|
255
|
-
# Corresponds to the JSON property `safeSearchAnnotations`
|
256
|
-
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1SafeSearchAnnotation>]
|
257
|
-
attr_accessor :safe_search_annotations
|
347
|
+
attr_accessor :segment_label_annotations
|
258
348
|
|
259
349
|
# Shot annotations. Each shot is represented as a video segment.
|
260
350
|
# Corresponds to the JSON property `shotAnnotations`
|
261
351
|
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment>]
|
262
352
|
attr_accessor :shot_annotations
|
263
353
|
|
354
|
+
# Label annotations on shot level.
|
355
|
+
# There is exactly one element for each unique label.
|
356
|
+
# Corresponds to the JSON property `shotLabelAnnotations`
|
357
|
+
# @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
|
358
|
+
attr_accessor :shot_label_annotations
|
359
|
+
|
264
360
|
def initialize(**args)
|
265
361
|
update!(**args)
|
266
362
|
end
|
@@ -268,10 +364,12 @@ module Google
|
|
268
364
|
# Update properties of this object
|
269
365
|
def update!(**args)
|
270
366
|
@error = args[:error] if args.key?(:error)
|
367
|
+
@explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
|
368
|
+
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
|
271
369
|
@input_uri = args[:input_uri] if args.key?(:input_uri)
|
272
|
-
@
|
273
|
-
@safe_search_annotations = args[:safe_search_annotations] if args.key?(:safe_search_annotations)
|
370
|
+
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
|
274
371
|
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
|
372
|
+
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
|
275
373
|
end
|
276
374
|
end
|
277
375
|
|
@@ -281,15 +379,15 @@ module Google
|
|
281
379
|
|
282
380
|
# Time-offset, relative to the beginning of the video,
|
283
381
|
# corresponding to the end of the segment (inclusive).
|
284
|
-
# Corresponds to the JSON property `
|
382
|
+
# Corresponds to the JSON property `endTimeOffset`
|
285
383
|
# @return [String]
|
286
|
-
attr_accessor :
|
384
|
+
attr_accessor :end_time_offset
|
287
385
|
|
288
386
|
# Time-offset, relative to the beginning of the video,
|
289
387
|
# corresponding to the start of the segment (inclusive).
|
290
|
-
# Corresponds to the JSON property `
|
388
|
+
# Corresponds to the JSON property `startTimeOffset`
|
291
389
|
# @return [String]
|
292
|
-
attr_accessor :
|
390
|
+
attr_accessor :start_time_offset
|
293
391
|
|
294
392
|
def initialize(**args)
|
295
393
|
update!(**args)
|
@@ -297,8 +395,8 @@ module Google
|
|
297
395
|
|
298
396
|
# Update properties of this object
|
299
397
|
def update!(**args)
|
300
|
-
@
|
301
|
-
@
|
398
|
+
@end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset)
|
399
|
+
@start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset)
|
302
400
|
end
|
303
401
|
end
|
304
402
|
|