google-cloud-video_intelligence 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/README.md +2 -2
  5. data/lib/google/cloud/video_intelligence.rb +2 -2
  6. data/lib/google/cloud/video_intelligence/v1.rb +2 -2
  7. data/lib/google/cloud/video_intelligence/v1/doc/google/longrunning/operations.rb +1 -1
  8. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb +2 -1
  9. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +2 -2
  10. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/longrunning/operations.rb +1 -1
  11. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb +2 -1
  12. data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb +2 -2
  13. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/longrunning/operations.rb +1 -1
  14. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb +2 -1
  15. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +2 -2
  16. data/lib/google/cloud/video_intelligence/v1p1beta1.rb +2 -2
  17. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/longrunning/operations.rb +1 -1
  18. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/any.rb +2 -1
  19. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb +2 -2
  20. data/lib/google/cloud/video_intelligence/v1p2beta1.rb +2 -2
  21. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/longrunning/operations.rb +1 -1
  22. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/any.rb +2 -1
  23. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb +2 -2
  24. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdd61e269b6216532e99e3dba7b5ae4229b7957650cd7af157d842f969ae67b9
4
- data.tar.gz: ef80336588e1e5dfd0e37590db5854c0c22d430b34a4099b3188d1db8cf12b94
3
+ metadata.gz: 3cea7a7a08418a38120bd66b96432731c50fa70b999f747ad44f5d44e049a5fc
4
+ data.tar.gz: 22f0012b527ac1c7f535809203337f956b2314dee943c8aae8aee737c890a01b
5
5
  SHA512:
6
- metadata.gz: b97f0d7ad74918b4aa2dd80e46434e73b77dd161dda704bb0a0a8f9f643bbf75996e6c623d5ccdf304efc4a8e6f6e4b2fe61e157f0bed81e015655d1bbbc04b8
7
- data.tar.gz: 0f15661d7151abe675920e02e39ed30891966eb6ba2707114964162a441c529288c2b2c4af416e5138edf088fa33e7c9d9ca5ec6bf36a8440ff256c1bb248119
6
+ metadata.gz: 85977dbd6f10fd19a4ea484590f181b5a5aa3f86bc7252a93b9af7dd921333ebf1a45ffce9071fa55e43c747554681c73198e2f49e8698892623aaed64a4a617
7
+ data.tar.gz: 5f22dc14d90a74a8adf86521a2098593227cda1c7ee535fd91ee481ae4e99dcf3f00a3c2213c70ca0039e9ee39c5ec182d9e4377b6e635d08c91aafed1bd4856
data/.yardopts CHANGED
@@ -7,3 +7,5 @@
7
7
  ./lib/**/*.rb
8
8
  -
9
9
  README.md
10
+ AUTHENTICATION.md
11
+ LICENSE
@@ -0,0 +1,199 @@
1
+ # Authentication
2
+
3
+ In general, the google-cloud-video_intelligence library uses [Service
4
+ Account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
5
+ credentials to connect to Google Cloud services. When running within [Google
6
+ Cloud Platform environments](#google-cloud-platform-environments)
7
+ the credentials will be discovered automatically. When running on other
8
+ environments, the Service Account credentials can be specified by providing the
9
+ path to the [JSON
10
+ keyfile](https://cloud.google.com/iam/docs/managing-service-account-keys) for
11
+ the account (or the JSON itself) in [environment
12
+ variables](#environment-variables). Additionally, Cloud SDK credentials can also
13
+ be discovered automatically, but this is only recommended during development.
14
+
15
+ ## Quickstart
16
+
17
+ 1. [Create a service account and credentials](#creating-a-service-account).
18
+ 2. Set the [environment variable](#environment-variables).
19
+
20
+ ```sh
21
+ export VIDEO_INTELLIGENCE_CREDENTIALS=/path/to/json`
22
+ ```
23
+
24
+ 3. Initialize the client.
25
+
26
+ ```ruby
27
+ require "google/cloud/video_intelligence"
28
+
29
+ client = Google::Cloud::VideoIntelligence.new
30
+ ```
31
+
32
+ ## Project and Credential Lookup
33
+
34
+ The google-cloud-video_intelligence library aims to make authentication
35
+ as simple as possible, and provides several mechanisms to configure your system
36
+ without providing **Project ID** and **Service Account Credentials** directly in
37
+ code.
38
+
39
+ **Project ID** is discovered in the following order:
40
+
41
+ 1. Specify project ID in method arguments
42
+ 2. Specify project ID in configuration
43
+ 3. Discover project ID in environment variables
44
+ 4. Discover GCE project ID
45
+ 5. Discover project ID in credentials JSON
46
+
47
+ **Credentials** are discovered in the following order:
48
+
49
+ 1. Specify credentials in method arguments
50
+ 2. Specify credentials in configuration
51
+ 3. Discover credentials path in environment variables
52
+ 4. Discover credentials JSON in environment variables
53
+ 5. Discover credentials file in the Cloud SDK's path
54
+ 6. Discover GCE credentials
55
+
56
+ ### Google Cloud Platform environments
57
+
58
+ While running on Google Cloud Platform environments such as Google Compute
59
+ Engine, Google App Engine and Google Kubernetes Engine, no extra work is needed.
60
+ The **Project ID** and **Credentials** and are discovered automatically. Code
61
+ should be written as if already authenticated. Just be sure when you [set up the
62
+ GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
63
+ access. For example:
64
+
65
+ * **All APIs**
66
+ * `https://www.googleapis.com/auth/cloud-platform`
67
+ * `https://www.googleapis.com/auth/cloud-platform.read-only`
68
+ * **BigQuery**
69
+ * `https://www.googleapis.com/auth/bigquery`
70
+ * `https://www.googleapis.com/auth/bigquery.insertdata`
71
+ * **Compute Engine**
72
+ * `https://www.googleapis.com/auth/compute`
73
+ * **Datastore**
74
+ * `https://www.googleapis.com/auth/datastore`
75
+ * `https://www.googleapis.com/auth/userinfo.email`
76
+ * **DNS**
77
+ * `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
78
+ * **Pub/Sub**
79
+ * `https://www.googleapis.com/auth/pubsub`
80
+ * **Storage**
81
+ * `https://www.googleapis.com/auth/devstorage.full_control`
82
+ * `https://www.googleapis.com/auth/devstorage.read_only`
83
+ * `https://www.googleapis.com/auth/devstorage.read_write`
84
+
85
+ ### Environment Variables
86
+
87
+ The **Project ID** and **Credentials JSON** can be placed in environment
88
+ variables instead of declaring them directly in code. Each service has its own
89
+ environment variable, allowing for different service accounts to be used for
90
+ different services. (See the READMEs for the individual service gems for
91
+ details.) The path to the **Credentials JSON** file can be stored in the
92
+ environment variable, or the **Credentials JSON** itself can be stored for
93
+ environments such as Docker containers where writing files is difficult or not
94
+ encouraged.
95
+
96
+ The environment variables that google-cloud-video_intelligence checks for project ID are:
97
+
98
+ 1. `VIDEO_INTELLIGENCE_PROJECT`
99
+ 2. `GOOGLE_CLOUD_PROJECT`
100
+
101
+ The environment variables that google-cloud-video_intelligence checks for credentials are configured on {Google::Cloud::VideoIntelligence::V1::Credentials}:
102
+
103
+ 1. `VIDEO_INTELLIGENCE_CREDENTIALS` - Path to JSON file, or JSON contents
104
+ 2. `VIDEO_INTELLIGENCE_KEYFILE` - Path to JSON file, or JSON contents
105
+ 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
106
+ 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
107
+ 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
108
+
109
+ ```ruby
110
+ require "google/cloud/video_intelligence"
111
+
112
+ ENV["VIDEO_INTELLIGENCE_PROJECT"] = "my-project-id"
113
+ ENV["VIDEO_INTELLIGENCE_CREDENTIALS"] = "path/to/keyfile.json"
114
+
115
+ client = Google::Cloud::VideoIntelligence.new
116
+ ```
117
+
118
+ ### Configuration
119
+
120
+ The **Project ID** and **Credentials JSON** can be configured instead of placing them in environment variables or providing them as arguments.
121
+
122
+ ```ruby
123
+ require "google/cloud/video_intelligence"
124
+
125
+ Google::Cloud::VideoIntelligence.configure do |config|
126
+ config.project_id = "my-project-id"
127
+ config.credentials = "path/to/keyfile.json"
128
+ end
129
+
130
+ client = Google::Cloud::VideoIntelligence.new
131
+ ```
132
+
133
+ ### Cloud SDK
134
+
135
+ This option allows for an easy way to authenticate during development. If
136
+ credentials are not provided in code or in environment variables, then Cloud SDK
137
+ credentials are discovered.
138
+
139
+ To configure your system for this, simply:
140
+
141
+ 1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
142
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
143
+ 3. Write code as if already authenticated.
144
+
145
+ **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
146
+ *should* only be used during development.
147
+
148
+ [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
149
+ [dev-console]: https://console.cloud.google.com/project
150
+
151
+ [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
152
+
153
+ [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
154
+ [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
155
+ [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
156
+
157
+ ## Creating a Service Account
158
+
159
+ Google Cloud requires a **Project ID** and **Service Account Credentials** to
160
+ connect to the APIs. You will use the **Project ID** and **JSON key file** to
161
+ connect to most services with google-cloud-video_intelligence.
162
+
163
+ If you are not running this client within [Google Cloud Platform
164
+ environments](#google-cloud-platform-environments), you need a Google
165
+ Developers service account.
166
+
167
+ 1. Visit the [Google Developers Console][dev-console].
168
+ 1. Create a new project or click on an existing project.
169
+ 1. Activate the slide-out navigation tray and select **API Manager**. From
170
+ here, you will enable the APIs that your application requires.
171
+
172
+ ![Enable the APIs that your application requires][enable-apis]
173
+
174
+ *Note: You may need to enable billing in order to use these services.*
175
+
176
+ 1. Select **Credentials** from the side navigation.
177
+
178
+ You should see a screen like one of the following.
179
+
180
+ ![Create a new service account][create-new-service-account]
181
+
182
+ ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
183
+
184
+ Find the "Add credentials" drop down and select "Service account" to be
185
+ guided through downloading a new JSON key file.
186
+
187
+ If you want to re-use an existing service account, you can easily generate a
188
+ new key file. Just select the account you wish to re-use, and click "Generate
189
+ new JSON key":
190
+
191
+ ![Re-use an existing service account][reuse-service-account]
192
+
193
+ The key file you download will be used by this library to authenticate API
194
+ requests and should be stored in a secure location.
195
+
196
+ ## Troubleshooting
197
+
198
+ If you're having trouble authenticating you can ask for help by following the
199
+ {file:TROUBLESHOOTING.md Troubleshooting Guide}.
data/README.md CHANGED
@@ -24,13 +24,13 @@ $ gem install google-cloud-video_intelligence
24
24
  ```rb
25
25
  require "google/cloud/video_intelligence"
26
26
 
27
- video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
27
+ video_intelligence_client = Google::Cloud::VideoIntelligence.new
28
28
  input_uri = "gs://demomaker/cat.mp4"
29
29
  features_element = :LABEL_DETECTION
30
30
  features = [features_element]
31
31
 
32
32
  # Register a callback during the method call.
33
- operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
33
+ operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
34
34
  raise op.results.message if op.error?
35
35
  op_results = op.results
36
36
  # Process the results.
@@ -46,13 +46,13 @@ module Google
46
46
  # ```rb
47
47
  # require "google/cloud/video_intelligence"
48
48
  #
49
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
49
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new
50
50
  # input_uri = "gs://demomaker/cat.mp4"
51
51
  # features_element = :LABEL_DETECTION
52
52
  # features = [features_element]
53
53
  #
54
54
  # # Register a callback during the method call.
55
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
55
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
56
56
  # raise op.results.message if op.error?
57
57
  # op_results = op.results
58
58
  # # Process the results.
@@ -48,13 +48,13 @@ module Google
48
48
  # ```rb
49
49
  # require "google/cloud/video_intelligence"
50
50
  #
51
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1)
51
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1)
52
52
  # input_uri = "gs://demomaker/cat.mp4"
53
53
  # features_element = :LABEL_DETECTION
54
54
  # features = [features_element]
55
55
  #
56
56
  # # Register a callback during the method call.
57
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
57
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
58
58
  # raise op.results.message if op.error?
59
59
  # op_results = op.results
60
60
  # # Process the results.
@@ -31,7 +31,7 @@ module Google
31
31
  # @!attribute [rw] done
32
32
  # @return [true, false]
33
33
  # If the value is `false`, it means the operation is still in progress.
34
- # If true, the operation is completed, and either `error` or `response` is
34
+ # If `true`, the operation is completed, and either `error` or `response` is
35
35
  # available.
36
36
  # @!attribute [rw] error
37
37
  # @return [Google::Rpc::Status]
@@ -97,7 +97,8 @@ module Google
97
97
  # @!attribute [rw] type_url
98
98
  # @return [String]
99
99
  # A URL/resource name that uniquely identifies the type of the serialized
100
- # protocol buffer message. The last segment of the URL's path must represent
100
+ # protocol buffer message. This string must contain at least
101
+ # one "/" character. The last segment of the URL's path must represent
101
102
  # the fully qualified name of the type (as in
102
103
  # `path/google.protobuf.Duration`). The name should be in a canonical form
103
104
  # (e.g., leading "." is not accepted).
@@ -230,13 +230,13 @@ module Google
230
230
  # @example
231
231
  # require "google/cloud/video_intelligence"
232
232
  #
233
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1)
233
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1)
234
234
  # input_uri = "gs://demomaker/cat.mp4"
235
235
  # features_element = :LABEL_DETECTION
236
236
  # features = [features_element]
237
237
  #
238
238
  # # Register a callback during the method call.
239
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
239
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
240
240
  # raise op.results.message if op.error?
241
241
  # op_results = op.results
242
242
  # # Process the results.
@@ -31,7 +31,7 @@ module Google
31
31
  # @!attribute [rw] done
32
32
  # @return [true, false]
33
33
  # If the value is `false`, it means the operation is still in progress.
34
- # If true, the operation is completed, and either `error` or `response` is
34
+ # If `true`, the operation is completed, and either `error` or `response` is
35
35
  # available.
36
36
  # @!attribute [rw] error
37
37
  # @return [Google::Rpc::Status]
@@ -97,7 +97,8 @@ module Google
97
97
  # @!attribute [rw] type_url
98
98
  # @return [String]
99
99
  # A URL/resource name that uniquely identifies the type of the serialized
100
- # protocol buffer message. The last segment of the URL's path must represent
100
+ # protocol buffer message. This string must contain at least
101
+ # one "/" character. The last segment of the URL's path must represent
101
102
  # the fully qualified name of the type (as in
102
103
  # `path/google.protobuf.Duration`). The name should be in a canonical form
103
104
  # (e.g., leading "." is not accepted).
@@ -229,13 +229,13 @@ module Google
229
229
  # @example
230
230
  # require "google/cloud/video_intelligence"
231
231
  #
232
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1beta1)
232
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1beta1)
233
233
  # input_uri = "gs://demomaker/cat.mp4"
234
234
  # features_element = :LABEL_DETECTION
235
235
  # features = [features_element]
236
236
  #
237
237
  # # Register a callback during the method call.
238
- # operation = video_intelligence_service_client.annotate_video(input_uri, features) do |op|
238
+ # operation = video_intelligence_client.annotate_video(input_uri, features) do |op|
239
239
  # raise op.results.message if op.error?
240
240
  # op_results = op.results
241
241
  # # Process the results.
@@ -31,7 +31,7 @@ module Google
31
31
  # @!attribute [rw] done
32
32
  # @return [true, false]
33
33
  # If the value is `false`, it means the operation is still in progress.
34
- # If true, the operation is completed, and either `error` or `response` is
34
+ # If `true`, the operation is completed, and either `error` or `response` is
35
35
  # available.
36
36
  # @!attribute [rw] error
37
37
  # @return [Google::Rpc::Status]
@@ -97,7 +97,8 @@ module Google
97
97
  # @!attribute [rw] type_url
98
98
  # @return [String]
99
99
  # A URL/resource name that uniquely identifies the type of the serialized
100
- # protocol buffer message. The last segment of the URL's path must represent
100
+ # protocol buffer message. This string must contain at least
101
+ # one "/" character. The last segment of the URL's path must represent
101
102
  # the fully qualified name of the type (as in
102
103
  # `path/google.protobuf.Duration`). The name should be in a canonical form
103
104
  # (e.g., leading "." is not accepted).
@@ -230,13 +230,13 @@ module Google
230
230
  # @example
231
231
  # require "google/cloud/video_intelligence"
232
232
  #
233
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1beta2)
233
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1beta2)
234
234
  # input_uri = "gs://demomaker/cat.mp4"
235
235
  # features_element = :LABEL_DETECTION
236
236
  # features = [features_element]
237
237
  #
238
238
  # # Register a callback during the method call.
239
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
239
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
240
240
  # raise op.results.message if op.error?
241
241
  # op_results = op.results
242
242
  # # Process the results.
@@ -48,13 +48,13 @@ module Google
48
48
  # ```rb
49
49
  # require "google/cloud/video_intelligence"
50
50
  #
51
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1p1beta1)
51
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p1beta1)
52
52
  # input_uri = "gs://demomaker/cat.mp4"
53
53
  # features_element = :LABEL_DETECTION
54
54
  # features = [features_element]
55
55
  #
56
56
  # # Register a callback during the method call.
57
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
57
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
58
58
  # raise op.results.message if op.error?
59
59
  # op_results = op.results
60
60
  # # Process the results.
@@ -31,7 +31,7 @@ module Google
31
31
  # @!attribute [rw] done
32
32
  # @return [true, false]
33
33
  # If the value is `false`, it means the operation is still in progress.
34
- # If true, the operation is completed, and either `error` or `response` is
34
+ # If `true`, the operation is completed, and either `error` or `response` is
35
35
  # available.
36
36
  # @!attribute [rw] error
37
37
  # @return [Google::Rpc::Status]
@@ -97,7 +97,8 @@ module Google
97
97
  # @!attribute [rw] type_url
98
98
  # @return [String]
99
99
  # A URL/resource name that uniquely identifies the type of the serialized
100
- # protocol buffer message. The last segment of the URL's path must represent
100
+ # protocol buffer message. This string must contain at least
101
+ # one "/" character. The last segment of the URL's path must represent
101
102
  # the fully qualified name of the type (as in
102
103
  # `path/google.protobuf.Duration`). The name should be in a canonical form
103
104
  # (e.g., leading "." is not accepted).
@@ -230,13 +230,13 @@ module Google
230
230
  # @example
231
231
  # require "google/cloud/video_intelligence"
232
232
  #
233
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1p1beta1)
233
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p1beta1)
234
234
  # input_uri = "gs://demomaker/cat.mp4"
235
235
  # features_element = :LABEL_DETECTION
236
236
  # features = [features_element]
237
237
  #
238
238
  # # Register a callback during the method call.
239
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
239
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
240
240
  # raise op.results.message if op.error?
241
241
  # op_results = op.results
242
242
  # # Process the results.
@@ -48,13 +48,13 @@ module Google
48
48
  # ```rb
49
49
  # require "google/cloud/video_intelligence"
50
50
  #
51
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1p2beta1)
51
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p2beta1)
52
52
  # input_uri = "gs://demomaker/cat.mp4"
53
53
  # features_element = :LABEL_DETECTION
54
54
  # features = [features_element]
55
55
  #
56
56
  # # Register a callback during the method call.
57
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
57
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
58
58
  # raise op.results.message if op.error?
59
59
  # op_results = op.results
60
60
  # # Process the results.
@@ -31,7 +31,7 @@ module Google
31
31
  # @!attribute [rw] done
32
32
  # @return [true, false]
33
33
  # If the value is `false`, it means the operation is still in progress.
34
- # If true, the operation is completed, and either `error` or `response` is
34
+ # If `true`, the operation is completed, and either `error` or `response` is
35
35
  # available.
36
36
  # @!attribute [rw] error
37
37
  # @return [Google::Rpc::Status]
@@ -97,7 +97,8 @@ module Google
97
97
  # @!attribute [rw] type_url
98
98
  # @return [String]
99
99
  # A URL/resource name that uniquely identifies the type of the serialized
100
- # protocol buffer message. The last segment of the URL's path must represent
100
+ # protocol buffer message. This string must contain at least
101
+ # one "/" character. The last segment of the URL's path must represent
101
102
  # the fully qualified name of the type (as in
102
103
  # `path/google.protobuf.Duration`). The name should be in a canonical form
103
104
  # (e.g., leading "." is not accepted).
@@ -230,13 +230,13 @@ module Google
230
230
  # @example
231
231
  # require "google/cloud/video_intelligence"
232
232
  #
233
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new(version: :v1p2beta1)
233
+ # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p2beta1)
234
234
  # input_uri = "gs://demomaker/cat.mp4"
235
235
  # features_element = :LABEL_DETECTION
236
236
  # features = [features_element]
237
237
  #
238
238
  # # Register a callback during the method call.
239
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
239
+ # operation = video_intelligence_client.annotate_video(input_uri: input_uri, features: features) do |op|
240
240
  # raise op.results.message if op.error?
241
241
  # op_results = op.results
242
242
  # # Process the results.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video_intelligence
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-04 00:00:00.000000000 Z
11
+ date: 2019-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -102,6 +102,7 @@ extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - ".yardopts"
105
+ - AUTHENTICATION.md
105
106
  - LICENSE
106
107
  - README.md
107
108
  - lib/google/cloud/video_intelligence.rb
@@ -179,8 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
180
  - !ruby/object:Gem::Version
180
181
  version: '0'
181
182
  requirements: []
182
- rubyforge_project:
183
- rubygems_version: 2.7.6
183
+ rubygems_version: 3.0.3
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: API Client library for Cloud Video Intelligence API