google-cloud-video_intelligence 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a19ec0a75a0302b5f7117fc05bbffa67fe0d732a
4
- data.tar.gz: ee059f64f413d6752ac91db1ddef5fa4920de100
2
+ SHA256:
3
+ metadata.gz: fdb9f985ef44ab13f99c1a9ee285b050e692b2daf8585308b4bcf09182060935
4
+ data.tar.gz: 281e7842701af2c4517a789f54083479912fbdd6f62f8591014ddb0267edcf16
5
5
  SHA512:
6
- metadata.gz: 15f41f0ce2b8399dba88a0e7cdd0a3d5dfa4dce673c677d68acfbcb2f14b4b01bc3ca3d6fde1c9b0a9c59c46db84476d90aa1e0f74c75746dd2f56af94bceb1c
7
- data.tar.gz: 1c6bde9c9911eca52d74fc57dd9d4e12e878991f10ec52b81224bbd19c49485956fe3f28e04df67ab8e7832f2d4f55464c7fb55c0863a593486ebedf7a48c46b
6
+ metadata.gz: '09fc6689bbce02dcd26b5aa35c9fff9c83fc9fe6725cf905981ea7ddd4b222094d24805cfdbc54a9d75a42572612ae8f22337c742ee325d308f325ec27ea8e7b'
7
+ data.tar.gz: 3e019a41e56ec40a20740c694cfed998161686bcac839c14faa2c83875ebbe07ecd6a96c6832bb962192bf09809d1360c0e7e9f59a4cd854c17508fef738994f
@@ -34,44 +34,6 @@ module Google
34
34
  # 2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
35
35
  # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
36
36
  #
37
- # ### Preview
38
- # #### VideoIntelligenceServiceClient
39
- # ```rb
40
- # require "google/cloud/video_intelligence"
41
- #
42
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
43
- # input_uri = "gs://cloud-ml-sandbox/video/chicago.mp4"
44
- # features_element = :LABEL_DETECTION
45
- # features = [features_element]
46
- #
47
- # # Register a callback during the method call.
48
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
49
- # raise op.results.message if op.error?
50
- # op_results = op.results
51
- # # Process the results.
52
- #
53
- # metadata = op.metadata
54
- # # Process the metadata.
55
- # end
56
- #
57
- # # Or use the return value to register a callback.
58
- # operation.on_done do |op|
59
- # raise op.results.message if op.error?
60
- # op_results = op.results
61
- # # Process the results.
62
- #
63
- # metadata = op.metadata
64
- # # Process the metadata.
65
- # end
66
- #
67
- # # Manually reload the operation.
68
- # operation.reload!
69
- #
70
- # # Or block until the operation completes, triggering callbacks on
71
- # # completion.
72
- # operation.wait_until_done!
73
- # ```
74
- #
75
37
  # ### Next Steps
76
38
  # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
77
39
  # to learn more about the product and see How-to Guides.
@@ -98,11 +60,11 @@ module Google
98
60
  # @param version [Symbol, String]
99
61
  # The major version of the service to be used. By default :v1beta2
100
62
  # is used.
101
- # @overload
102
- # @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
63
+ # @overload new(version:, credentials:, scopes:, client_config:, timeout:)
64
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
103
65
  # Provides the means for authenticating requests made by the client. This parameter can
104
66
  # be many types.
105
- # A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
67
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
106
68
  # authenticating requests made by this client.
107
69
  # A `String` will be treated as the path to the keyfile to be used for the construction of
108
70
  # credentials for this client.
@@ -12,18 +12,19 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require "google/gax"
15
+ require "googleauth"
16
16
 
17
17
  module Google
18
18
  module Cloud
19
19
  module VideoIntelligence
20
- class Credentials < Google::Gax::Credentials
20
+ class Credentials < Google::Auth::Credentials
21
21
  SCOPE = [
22
22
  "https://www.googleapis.com/auth/cloud-platform"
23
23
  ].freeze
24
24
  PATH_ENV_VARS = %w(VIDEO_INTELLIGENCE_KEYFILE, GOOGLE_CLOUD_KEYFILE, GCLOUD_KEYFILE)
25
25
  JSON_ENV_VARS = %w(VIDEO_INTELLIGENCE_KEYFILE_JSON, GOOGLE_CLOUD_KEYFILE_JSON, GCLOUD_KEYFILE_JSON)
26
+ DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
26
27
  end
27
28
  end
28
29
  end
29
- end
30
+ end
@@ -33,11 +33,6 @@ module Google
33
33
  # 2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
34
34
  # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
35
  #
36
- # ### Installation
37
- # ```
38
- # $ gem install google-cloud-video_intelligence
39
- # ```
40
- #
41
36
  # ### Next Steps
42
37
  # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
43
38
  # to learn more about the product and see How-to Guides.
@@ -54,10 +49,10 @@ module Google
54
49
  ##
55
50
  # Service that implements Google Cloud Video Intelligence API.
56
51
  #
57
- # @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
52
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
58
53
  # Provides the means for authenticating requests made by the client. This parameter can
59
54
  # be many types.
60
- # A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
55
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
61
56
  # authenticating requests made by this client.
62
57
  # A `String` will be treated as the path to the keyfile to be used for the construction of
63
58
  # credentials for this client.
@@ -0,0 +1,53 @@
1
+ # Copyright 2017, Google Inc. All rights reserved.
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
+ module Google
16
+ module Cloud
17
+ # rubocop:disable LineLength
18
+
19
+ ##
20
+ # # Ruby Client for Google Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
+ #
22
+ # [Google Cloud Video Intelligence API][Product Documentation]:
23
+ # Google Cloud Video Intelligence API.
24
+ # - [Product Documentation][]
25
+ #
26
+ # ## Quick Start
27
+ # In order to use this library, you first need to go through the following
28
+ # steps:
29
+ #
30
+ # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
31
+ # 2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
32
+ # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
+ #
34
+ # ### Installation
35
+ # ```
36
+ # $ gem install google-cloud-video_intelligence
37
+ # ```
38
+ #
39
+ # ### Next Steps
40
+ # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
41
+ # to learn more about the product and see How-to Guides.
42
+ # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
43
+ # to see the full list of Cloud APIs that we cover.
44
+ #
45
+ # [Product Documentation]: https://cloud.google.com/video-intelligence
46
+ #
47
+ #
48
+ module VideoIntelligence
49
+ module V1beta1
50
+ end
51
+ end
52
+ end
53
+ end
@@ -57,10 +57,10 @@ module Google
57
57
  "https://www.googleapis.com/auth/cloud-platform"
58
58
  ].freeze
59
59
 
60
- # @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
60
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
61
61
  # Provides the means for authenticating requests made by the client. This parameter can
62
62
  # be many types.
63
- # A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
63
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
64
64
  # authenticating requests made by this client.
65
65
  # A `String` will be treated as the path to the keyfile to be used for the construction of
66
66
  # credentials for this client.
@@ -134,13 +134,13 @@ module Google
134
134
  if credentials.is_a?(Proc)
135
135
  updater_proc = credentials
136
136
  end
137
- if credentials.is_a?(Google::Gax::Credentials)
137
+ if credentials.is_a?(Google::Auth::Credentials)
138
138
  updater_proc = credentials.updater_proc
139
139
  end
140
140
 
141
141
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
142
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
143
- google_api_client << " gapic/0.6.8 gax/#{Google::Gax::VERSION}"
143
+ google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
144
144
  google_api_client << " grpc/#{GRPC::VERSION}"
145
145
  google_api_client.freeze
146
146
 
@@ -222,8 +222,9 @@ module Google
222
222
  # require "google/cloud/video_intelligence/v1beta1"
223
223
  #
224
224
  # video_intelligence_service_client = Google::Cloud::VideoIntelligence::V1beta1.new
225
- # input_uri = ''
226
- # features = []
225
+ # input_uri = "gs://demomaker/cat.mp4"
226
+ # features_element = :LABEL_DETECTION
227
+ # features = [features_element]
227
228
  #
228
229
  # # Register a callback during the method call.
229
230
  # operation = video_intelligence_service_client.annotate_video(input_uri, features) do |op|
@@ -33,44 +33,6 @@ module Google
33
33
  # 2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
34
34
  # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
35
  #
36
- # ### Preview
37
- # #### VideoIntelligenceServiceClient
38
- # ```rb
39
- # require "google/cloud/video_intelligence/v1beta2"
40
- #
41
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
42
- # input_uri = "gs://cloud-ml-sandbox/video/chicago.mp4"
43
- # features_element = :LABEL_DETECTION
44
- # features = [features_element]
45
- #
46
- # # Register a callback during the method call.
47
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
48
- # raise op.results.message if op.error?
49
- # op_results = op.results
50
- # # Process the results.
51
- #
52
- # metadata = op.metadata
53
- # # Process the metadata.
54
- # end
55
- #
56
- # # Or use the return value to register a callback.
57
- # operation.on_done do |op|
58
- # raise op.results.message if op.error?
59
- # op_results = op.results
60
- # # Process the results.
61
- #
62
- # metadata = op.metadata
63
- # # Process the metadata.
64
- # end
65
- #
66
- # # Manually reload the operation.
67
- # operation.reload!
68
- #
69
- # # Or block until the operation completes, triggering callbacks on
70
- # # completion.
71
- # operation.wait_until_done!
72
- # ```
73
- #
74
36
  # ### Next Steps
75
37
  # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
76
38
  # to learn more about the product and see How-to Guides.
@@ -87,10 +49,10 @@ module Google
87
49
  ##
88
50
  # Service that implements Google Cloud Video Intelligence API.
89
51
  #
90
- # @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
52
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
91
53
  # Provides the means for authenticating requests made by the client. This parameter can
92
54
  # be many types.
93
- # A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
55
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
94
56
  # authenticating requests made by this client.
95
57
  # A `String` will be treated as the path to the keyfile to be used for the construction of
96
58
  # credentials for this client.
@@ -42,8 +42,9 @@ module Google
42
42
  # in the request as +input_content+. If set, +input_content+ should be unset.
43
43
  # @!attribute [rw] input_content
44
44
  # @return [String]
45
- # The video data bytes. Encoding: base64. If unset, the input video(s)
46
- # should be specified via +input_uri+. If set, +input_uri+ should be unset.
45
+ # The video data bytes.
46
+ # If unset, the input video(s) should be specified via +input_uri+.
47
+ # If set, +input_uri+ should be unset.
47
48
  # @!attribute [rw] features
48
49
  # @return [Array<Google::Cloud::Videointelligence::V1beta2::Feature>]
49
50
  # Requested video annotation features.
@@ -248,7 +249,7 @@ module Google
248
249
  # Face annotation.
249
250
  # @!attribute [rw] thumbnail
250
251
  # @return [String]
251
- # Thumbnail of a representative face view (in JPEG format). Encoding: base64.
252
+ # Thumbnail of a representative face view (in JPEG format).
252
253
  # @!attribute [rw] segments
253
254
  # @return [Array<Google::Cloud::Videointelligence::V1beta2::FaceSegment>]
254
255
  # All video segments where a face was detected.
@@ -36,44 +36,6 @@ module Google
36
36
  # $ gem install google-cloud-video_intelligence
37
37
  # ```
38
38
  #
39
- # ### Preview
40
- # #### VideoIntelligenceServiceClient
41
- # ```rb
42
- # require "google/cloud/video_intelligence"
43
- #
44
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
45
- # input_uri = "gs://cloud-ml-sandbox/video/chicago.mp4"
46
- # features_element = :LABEL_DETECTION
47
- # features = [features_element]
48
- #
49
- # # Register a callback during the method call.
50
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
51
- # raise op.results.message if op.error?
52
- # op_results = op.results
53
- # # Process the results.
54
- #
55
- # metadata = op.metadata
56
- # # Process the metadata.
57
- # end
58
- #
59
- # # Or use the return value to register a callback.
60
- # operation.on_done do |op|
61
- # raise op.results.message if op.error?
62
- # op_results = op.results
63
- # # Process the results.
64
- #
65
- # metadata = op.metadata
66
- # # Process the metadata.
67
- # end
68
- #
69
- # # Manually reload the operation.
70
- # operation.reload!
71
- #
72
- # # Or block until the operation completes, triggering callbacks on
73
- # # completion.
74
- # operation.wait_until_done!
75
- # ```
76
- #
77
39
  # ### Next Steps
78
40
  # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
79
41
  # to learn more about the product and see How-to Guides.
@@ -88,4 +50,4 @@ module Google
88
50
  end
89
51
  end
90
52
  end
91
- end
53
+ end
@@ -57,10 +57,10 @@ module Google
57
57
  "https://www.googleapis.com/auth/cloud-platform"
58
58
  ].freeze
59
59
 
60
- # @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
60
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
61
61
  # Provides the means for authenticating requests made by the client. This parameter can
62
62
  # be many types.
63
- # A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
63
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
64
64
  # authenticating requests made by this client.
65
65
  # A `String` will be treated as the path to the keyfile to be used for the construction of
66
66
  # credentials for this client.
@@ -134,13 +134,13 @@ module Google
134
134
  if credentials.is_a?(Proc)
135
135
  updater_proc = credentials
136
136
  end
137
- if credentials.is_a?(Google::Gax::Credentials)
137
+ if credentials.is_a?(Google::Auth::Credentials)
138
138
  updater_proc = credentials.updater_proc
139
139
  end
140
140
 
141
141
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
142
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
143
- google_api_client << " gapic/0.6.8 gax/#{Google::Gax::VERSION}"
143
+ google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
144
144
  google_api_client << " grpc/#{GRPC::VERSION}"
145
145
  google_api_client.freeze
146
146
 
@@ -194,8 +194,9 @@ module Google
194
194
  # '?' to match 1 character. If unset, the input video should be embedded
195
195
  # in the request as +input_content+. If set, +input_content+ should be unset.
196
196
  # @param input_content [String]
197
- # The video data bytes. Encoding: base64. If unset, the input video(s)
198
- # should be specified via +input_uri+. If set, +input_uri+ should be unset.
197
+ # The video data bytes.
198
+ # If unset, the input video(s) should be specified via +input_uri+.
199
+ # If set, +input_uri+ should be unset.
199
200
  # @param features [Array<Google::Cloud::Videointelligence::V1beta2::Feature>]
200
201
  # Requested video annotation features.
201
202
  # @param video_context [Google::Cloud::Videointelligence::V1beta2::VideoContext | Hash]
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: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2017-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.6
19
+ version: 0.10.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.6
27
- - !ruby/object:Gem::Dependency
28
- name: googleapis-common-protos
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 1.3.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 1.3.1
26
+ version: 0.10.1
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: minitest
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,34 +66,6 @@ dependencies:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0.9'
83
- - !ruby/object:Gem::Dependency
84
- name: yard
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.9'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '0.9'
97
- - !ruby/object:Gem::Dependency
98
- name: yard-doctest
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "<="
102
- - !ruby/object:Gem::Version
103
- version: 0.1.8
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "<="
109
- - !ruby/object:Gem::Version
110
- version: 0.1.8
111
69
  description: google-cloud-video_intelligence is the official library for Google Cloud
112
70
  Video Intelligence API.
113
71
  email: googleapis-packages@google.com
@@ -124,6 +82,7 @@ files:
124
82
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb
125
83
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb
126
84
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb
85
+ - lib/google/cloud/video_intelligence/v1beta1/doc/overview.rb
127
86
  - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb
128
87
  - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client_config.json
129
88
  - lib/google/cloud/video_intelligence/v1beta2.rb
@@ -158,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
117
  version: '0'
159
118
  requirements: []
160
119
  rubyforge_project:
161
- rubygems_version: 2.6.13
120
+ rubygems_version: 2.7.2
162
121
  signing_key:
163
122
  specification_version: 4
164
123
  summary: API Client library for Google Cloud Video Intelligence API