google-cloud-video_intelligence 2.0.3 → 3.0.2

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -59
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +274 -0
  6. data/README.md +36 -62
  7. data/lib/{google/cloud/video_intelligence/credentials.rb → google-cloud-video_intelligence.rb} +5 -13
  8. data/lib/google/cloud/video_intelligence.rb +87 -156
  9. data/lib/google/cloud/video_intelligence/version.rb +6 -2
  10. metadata +99 -83
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/video_intelligence/v1.rb +0 -186
  13. data/lib/google/cloud/video_intelligence/v1/credentials.rb +0 -41
  14. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +0 -707
  15. data/lib/google/cloud/video_intelligence/v1/doc/google/longrunning/operations.rb +0 -51
  16. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb +0 -131
  17. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb +0 -91
  18. data/lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb +0 -39
  19. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +0 -306
  20. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json +0 -31
  21. data/lib/google/cloud/video_intelligence/v1beta2.rb +0 -149
  22. data/lib/google/cloud/video_intelligence/v1beta2/credentials.rb +0 -41
  23. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb +0 -372
  24. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/longrunning/operations.rb +0 -51
  25. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb +0 -131
  26. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb +0 -91
  27. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb +0 -39
  28. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +0 -306
  29. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client_config.json +0 -31
  30. data/lib/google/cloud/video_intelligence/v1p1beta1.rb +0 -187
  31. data/lib/google/cloud/video_intelligence/v1p1beta1/credentials.rb +0 -41
  32. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/cloud/videointelligence/v1p1beta1/video_intelligence.rb +0 -410
  33. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/longrunning/operations.rb +0 -51
  34. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/any.rb +0 -131
  35. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/duration.rb +0 -91
  36. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/rpc/status.rb +0 -39
  37. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb +0 -306
  38. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client_config.json +0 -31
  39. data/lib/google/cloud/video_intelligence/v1p2beta1.rb +0 -187
  40. data/lib/google/cloud/video_intelligence/v1p2beta1/credentials.rb +0 -41
  41. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/video_intelligence.rb +0 -442
  42. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/longrunning/operations.rb +0 -51
  43. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/any.rb +0 -131
  44. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/duration.rb +0 -91
  45. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/rpc/status.rb +0 -39
  46. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb +0 -306
  47. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client_config.json +0 -31
  48. data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +0 -270
  49. data/lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb +0 -51
  50. data/lib/google/cloud/videointelligence/v1beta2/video_intelligence_pb.rb +0 -170
  51. data/lib/google/cloud/videointelligence/v1beta2/video_intelligence_services_pb.rb +0 -51
  52. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_pb.rb +0 -172
  53. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_services_pb.rb +0 -51
  54. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_pb.rb +0 -193
  55. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_services_pb.rb +0 -51
data/README.md CHANGED
@@ -1,81 +1,55 @@
1
- # Ruby Client for Cloud Video Intelligence API ([GA](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for the Cloud Video Intelligence API
2
2
 
3
- [Cloud Video Intelligence API][Product Documentation]:
4
- Detects objects, explicit content, and scene changes in videos. It also
5
- specifies the region for annotation and transcribes speech to text.
6
- Supports both asynchronous API and streaming API.
7
- - [Client Library Documentation][]
8
- - [Product Documentation][]
3
+ API Client library for the Cloud Video Intelligence API
9
4
 
10
- ## Quick Start
11
- In order to use this library, you first need to go through the following
12
- steps:
13
-
14
- 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
15
- 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
16
- 3. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/library/videointelligence.googleapis.com)
17
- 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-video_intelligence/latest/file.AUTHENTICATION.html)
18
-
19
- ### Installation
20
- ```
21
- $ gem install google-cloud-video_intelligence
22
- ```
23
-
24
- ### Preview
25
- #### VideoIntelligenceServiceClient
26
- ```rb
27
- require "google/cloud/video_intelligence"
5
+ Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.
28
6
 
29
- video_intelligence_client = Google::Cloud::VideoIntelligence.new
30
- input_uri = "gs://cloud-samples-data/video/cat.mp4"
31
- features_element = :LABEL_DETECTION
32
- features = [features_element]
7
+ Actual client classes for the various versions of this API are defined in
8
+ _versioned_ client gems, with names of the form `google-cloud-video_intelligence-v*`.
9
+ The gem `google-cloud-video_intelligence` is a convenience wrapper library that brings the
10
+ verisoned gems in as dependencies, and provides high-level methods for
11
+ constructing clients.
33
12
 
34
- # Register a callback during the method call.
35
- operation = video_intelligence_client.annotate_video(features, input_uri: input_uri) do |op|
36
- raise op.results.message if op.error?
37
- op_results = op.results
38
- # Process the results.
13
+ View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-video_intelligence/latest)
14
+ for this library, google-cloud-video_intelligence, to see the convenience methods for
15
+ constructing client objects. Reference documentation for the client objects
16
+ themselves can be found in the client library documentation for the versioned
17
+ client gems:
18
+ [google-cloud-video_intelligence-v1](https://googleapis.dev/ruby/google-cloud-video_intelligence-v1/latest),
19
+ [google-cloud-video_intelligence-v1beta2](https://googleapis.dev/ruby/google-cloud-video_intelligence-v1beta2/latest),
20
+ [google-cloud-video_intelligence-v1p1beta1](https://googleapis.dev/ruby/google-cloud-video_intelligence-v1p1beta1/latest),
21
+ [google-cloud-video_intelligence-v1p2beta1](https://googleapis.dev/ruby/google-cloud-video_intelligence-v1p2beta1/latest).
39
22
 
40
- metadata = op.metadata
41
- # Process the metadata.
42
- end
23
+ See also the [Product Documentation](https://cloud.google.com/video-intelligence)
24
+ for more usage information.
43
25
 
44
- # Or use the return value to register a callback.
45
- operation.on_done do |op|
46
- raise op.results.message if op.error?
47
- op_results = op.results
48
- # Process the results.
26
+ ## Quick Start
49
27
 
50
- metadata = op.metadata
51
- # Process the metadata.
52
- end
28
+ ```
29
+ $ gem install google-cloud-video_intelligence
30
+ ```
53
31
 
54
- # Manually reload the operation.
55
- operation.reload!
32
+ In order to use this library, you first need to go through the following steps:
56
33
 
57
- # Or block until the operation completes, triggering callbacks on
58
- # completion.
59
- operation.wait_until_done!
60
- ```
34
+ 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
35
+ 1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
36
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/videointelligence.googleapis.com)
37
+ 1. {file:AUTHENTICATION.md Set up authentication.}
61
38
 
62
- ### Next Steps
63
- - Read the [Client Library Documentation][] for Cloud Video Intelligence API
64
- to see other available methods on the client.
65
- - Read the [Cloud Video Intelligence API Product documentation][Product Documentation]
66
- to learn more about the product and see How-to Guides.
67
- - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
68
- to see the full list of Cloud APIs that we cover.
39
+ ## Migrating from 2.x versions
69
40
 
70
- [Client Library Documentation]: https://googleapis.dev/ruby/google-cloud-video_intelligence/latest
71
- [Product Documentation]: https://cloud.google.com/video-intelligence
41
+ The 3.0 release of the google-cloud-video_intelligence client is a significant upgrade
42
+ based on a [next-gen code generator](https://github.com/googleapis/gapic-generator-ruby),
43
+ and includes substantial interface changes. Existing code written for earlier
44
+ versions of this library will likely require updates to use this version.
45
+ See the {file:MIGRATING.md MIGRATING.md} document for more information.
72
46
 
73
47
  ## Enabling Logging
74
48
 
75
49
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
76
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
50
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
77
51
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
78
- that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
+ that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
79
53
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
80
54
 
81
55
  Configuring a Ruby stdlib logger:
@@ -1,4 +1,6 @@
1
- # Copyright 2018 Google LLC
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
@@ -12,16 +14,6 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
15
18
 
16
- require "google/cloud/video_intelligence/v1/credentials"
17
-
18
- module Google
19
- module Cloud
20
- module VideoIntelligence
21
- ##
22
- # @deprecated Use version-specific credentials classes
23
- #
24
- Credentials = Google::Cloud::VideoIntelligence::V1::Credentials
25
- end
26
- end
27
- end
19
+ require "google/cloud/video_intelligence" unless defined? Google::Cloud::VideoIntelligence::VERSION
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2020 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,173 +14,102 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # Require this file early so that the version constant gets defined before
20
+ # requiring "google/cloud". This is because google-cloud-core will load the
21
+ # entrypoint (gem name) file, which in turn re-requires this file (hence
22
+ # causing a require cycle) unless the version constant is already defined.
23
+ require "google/cloud/video_intelligence/version"
15
24
 
16
- require "google/gax"
17
- require "pathname"
25
+ require "googleauth"
26
+ gem "google-cloud-core"
27
+ require "google/cloud" unless defined? ::Google::Cloud.new
28
+ require "google/cloud/config"
29
+
30
+ # Set the default configuration
31
+ ::Google::Cloud.configure.add_config! :video_intelligence do |config|
32
+ config.add_field! :endpoint, "videointelligence.googleapis.com", match: ::String
33
+ config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
34
+ config.add_field! :scope, nil, match: [::Array, ::String]
35
+ config.add_field! :lib_name, nil, match: ::String
36
+ config.add_field! :lib_version, nil, match: ::String
37
+ config.add_field! :interceptors, nil, match: ::Array
38
+ config.add_field! :timeout, nil, match: ::Numeric
39
+ config.add_field! :metadata, nil, match: ::Hash
40
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
41
+ config.add_field! :quota_project, nil, match: ::String
42
+ end
18
43
 
19
44
  module Google
20
45
  module Cloud
21
- # rubocop:disable LineLength
22
-
23
- ##
24
- # # Ruby Client for Cloud Video Intelligence API ([GA](https://github.com/googleapis/google-cloud-ruby#versioning))
25
- #
26
- # [Cloud Video Intelligence API][Product Documentation]:
27
- # Detects objects, explicit content, and scene changes in videos. It also
28
- # specifies the region for annotation and transcribes speech to text.
29
- # Supports both asynchronous API and streaming API.
30
- # - [Product Documentation][]
31
- #
32
- # ## Quick Start
33
- # In order to use this library, you first need to go through the following
34
- # steps:
35
- #
36
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
37
- # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
38
- # 3. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/library/videointelligence.googleapis.com)
39
- # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-video_intelligence/latest/file.AUTHENTICATION.html)
40
- #
41
- # ### Installation
42
- # ```
43
- # $ gem install google-cloud-video_intelligence
44
- # ```
45
- #
46
- # ### Preview
47
- # #### VideoIntelligenceServiceClient
48
- # ```rb
49
- # require "google/cloud/video_intelligence"
50
- #
51
- # video_intelligence_client = Google::Cloud::VideoIntelligence.new
52
- # input_uri = "gs://cloud-samples-data/video/cat.mp4"
53
- # features_element = :LABEL_DETECTION
54
- # features = [features_element]
55
- #
56
- # # Register a callback during the method call.
57
- # operation = video_intelligence_client.annotate_video(features, input_uri: input_uri) 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
- # # Or use the return value to register a callback.
67
- # operation.on_done do |op|
68
- # raise op.results.message if op.error?
69
- # op_results = op.results
70
- # # Process the results.
71
- #
72
- # metadata = op.metadata
73
- # # Process the metadata.
74
- # end
75
- #
76
- # # Manually reload the operation.
77
- # operation.reload!
78
- #
79
- # # Or block until the operation completes, triggering callbacks on
80
- # # completion.
81
- # operation.wait_until_done!
82
- # ```
83
- #
84
- # ### Next Steps
85
- # - Read the [Cloud Video Intelligence API Product documentation][Product Documentation]
86
- # to learn more about the product and see How-to Guides.
87
- # - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
88
- # to see the full list of Cloud APIs that we cover.
89
- #
90
- # [Product Documentation]: https://cloud.google.com/video-intelligence
91
- #
92
- # ## Enabling Logging
93
- #
94
- # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
95
- # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
96
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
97
- # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
98
- # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
99
- #
100
- # Configuring a Ruby stdlib logger:
101
- #
102
- # ```ruby
103
- # require "logger"
104
- #
105
- # module MyLogger
106
- # LOGGER = Logger.new $stderr, level: Logger::WARN
107
- # def logger
108
- # LOGGER
109
- # end
110
- # end
111
- #
112
- # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
113
- # module GRPC
114
- # extend MyLogger
115
- # end
116
- # ```
117
- #
118
46
  module VideoIntelligence
119
- # rubocop:enable LineLength
120
-
121
- FILE_DIR = File.realdirpath(Pathname.new(__FILE__).join("..").join("video_intelligence"))
47
+ ##
48
+ # Create a new client object for VideoIntelligenceService.
49
+ #
50
+ # By default, this returns an instance of
51
+ # [Google::Cloud::VideoIntelligence::V1::VideoIntelligenceService::Client](https://googleapis.dev/ruby/google-cloud-video_intelligence-v1/latest/Google/Cloud/VideoIntelligence/V1/VideoIntelligenceService/Client.html)
52
+ # for version V1 of the API.
53
+ # However, you can specify specify a different API version by passing it in the
54
+ # `version` parameter. If the VideoIntelligenceService service is
55
+ # supported by that API version, and the corresponding gem is available, the
56
+ # appropriate versioned client will be returned.
57
+ #
58
+ # ## About VideoIntelligenceService
59
+ #
60
+ # Service that implements the Video Intelligence API.
61
+ #
62
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
63
+ # Defaults to `:v1`.
64
+ # @return [VideoIntelligenceService::Client] A client object for the specified version.
65
+ #
66
+ def self.video_intelligence_service version: :v1, &block
67
+ require "google/cloud/video_intelligence/#{version.to_s.downcase}"
122
68
 
123
- AVAILABLE_VERSIONS = Dir["#{FILE_DIR}/*"]
124
- .select { |file| File.directory?(file) }
125
- .select { |dir| Google::Gax::VERSION_MATCHER.match(File.basename(dir)) }
126
- .select { |dir| File.exist?(dir + ".rb") }
127
- .map { |dir| File.basename(dir) }
69
+ package_name = Google::Cloud::VideoIntelligence
70
+ .constants
71
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
72
+ .first
73
+ package_module = Google::Cloud::VideoIntelligence.const_get package_name
74
+ package_module.const_get(:VideoIntelligenceService).const_get(:Client).new(&block)
75
+ end
128
76
 
129
77
  ##
130
- # Service that implements Google Cloud Video Intelligence API.
78
+ # Configure the google-cloud-video_intelligence library.
131
79
  #
132
- # @param version [Symbol, String]
133
- # The major version of the service to be used. By default :v1
134
- # is used.
135
- # @overload new(version:, credentials:, scopes:, client_config:, timeout:)
136
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
137
- # Provides the means for authenticating requests made by the client. This parameter can
138
- # be many types.
139
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
140
- # authenticating requests made by this client.
141
- # A `String` will be treated as the path to the keyfile to be used for the construction of
142
- # credentials for this client.
143
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
144
- # credentials for this client.
145
- # A `GRPC::Core::Channel` will be used to make calls through.
146
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
147
- # should already be composed with a `GRPC::Core::CallCredentials` object.
148
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
149
- # metadata for requests, generally, to give OAuth credentials.
150
- # @param scopes [Array<String>]
151
- # The OAuth scopes for this service. This parameter is ignored if
152
- # an updater_proc is supplied.
153
- # @param client_config [Hash]
154
- # A Hash for call options for each method. See
155
- # Google::Gax#construct_settings for the structure of
156
- # this data. Falls back to the default config if not specified
157
- # or the specified config is missing data points.
158
- # @param timeout [Numeric]
159
- # The default timeout, in seconds, for calls made through this client.
160
- # @param metadata [Hash]
161
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
162
- # @param service_address [String]
163
- # Override for the service hostname, or `nil` to leave as the default.
164
- # @param service_port [Integer]
165
- # Override for the service port, or `nil` to leave as the default.
166
- # @param exception_transformer [Proc]
167
- # An optional proc that intercepts any exceptions raised during an API call to inject
168
- # custom error handling.
169
- def self.new(*args, version: :v1, **kwargs)
170
- unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
171
- raise "The version: #{version} is not available. The available versions " \
172
- "are: [#{AVAILABLE_VERSIONS.join(", ")}]"
173
- end
80
+ # The following configuration parameters are supported:
81
+ #
82
+ # * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
83
+ # The path to the keyfile as a String, the contents of the keyfile as a
84
+ # Hash, or a Google::Auth::Credentials object.
85
+ # * `lib_name` (*type:* `String`) -
86
+ # The library name as recorded in instrumentation and logging.
87
+ # * `lib_version` (*type:* `String`) -
88
+ # The library version as recorded in instrumentation and logging.
89
+ # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
90
+ # An array of interceptors that are run before calls are executed.
91
+ # * `timeout` (*type:* `Numeric`) -
92
+ # Default timeout in seconds.
93
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) -
94
+ # Additional gRPC headers to be sent with the call.
95
+ # * `retry_policy` (*type:* `Hash`) -
96
+ # The retry policy. The value is a hash with the following keys:
97
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
98
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
99
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
100
+ # * `:retry_codes` (*type:* `Array<String>`) -
101
+ # The error codes that should trigger a retry.
102
+ #
103
+ # @return [::Google::Cloud::Config] The default configuration used by this library
104
+ #
105
+ def self.configure
106
+ yield ::Google::Cloud.configure.video_intelligence if block_given?
174
107
 
175
- require "#{FILE_DIR}/#{version.to_s.downcase}"
176
- version_module = Google::Cloud::VideoIntelligence
177
- .constants
178
- .select {|sym| sym.to_s.downcase == version.to_s.downcase}
179
- .first
180
- Google::Cloud::VideoIntelligence.const_get(version_module).new(*args, **kwargs)
108
+ ::Google::Cloud.configure.video_intelligence
181
109
  end
182
110
  end
183
111
  end
184
112
  end
113
+
114
+ helper_path = ::File.join __dir__, "video_intelligence", "helpers.rb"
115
+ require "google/cloud/video_intelligence/helpers" if ::File.file? helper_path
@@ -1,4 +1,6 @@
1
- # Copyright 2019 Google LLC
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
@@ -12,11 +14,13 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
15
19
 
16
20
  module Google
17
21
  module Cloud
18
22
  module VideoIntelligence
19
- VERSION = "2.0.3".freeze
23
+ VERSION = "3.0.2"
20
24
  end
21
25
  end
22
26
  end
metadata CHANGED
@@ -1,111 +1,169 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video_intelligence
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: google-gax
14
+ name: google-cloud-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: '1.5'
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: '1.8'
26
+ version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: googleapis-common-protos
28
+ name: google-cloud-video_intelligence-v1
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.3.9
34
- - - "<"
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: '2.0'
33
+ version: '0.0'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
38
+ - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: 1.3.9
44
- - - "<"
40
+ version: '0.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: google-cloud-video_intelligence-v1beta2
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
45
46
  - !ruby/object:Gem::Version
46
- version: '2.0'
47
+ version: '0.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.0'
47
55
  - !ruby/object:Gem::Dependency
48
- name: googleapis-common-protos-types
56
+ name: google-cloud-video_intelligence-v1p1beta1
49
57
  requirement: !ruby/object:Gem::Requirement
50
58
  requirements:
51
- - - ">="
59
+ - - "~>"
52
60
  - !ruby/object:Gem::Version
53
- version: 1.0.4
54
- - - "<"
61
+ version: '0.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
55
67
  - !ruby/object:Gem::Version
56
- version: '2.0'
68
+ version: '0.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: google-cloud-video_intelligence-v1p2beta1
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.0'
57
76
  type: :runtime
58
77
  prerelease: false
59
78
  version_requirements: !ruby/object:Gem::Requirement
60
79
  requirements:
61
- - - ">="
80
+ - - "~>"
62
81
  - !ruby/object:Gem::Version
63
- version: 1.0.4
64
- - - "<"
82
+ version: '0.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: google-style
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
65
88
  - !ruby/object:Gem::Version
66
- version: '2.0'
89
+ version: 1.24.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.24.0
67
97
  - !ruby/object:Gem::Dependency
68
98
  name: minitest
69
99
  requirement: !ruby/object:Gem::Requirement
70
100
  requirements:
71
101
  - - "~>"
72
102
  - !ruby/object:Gem::Version
73
- version: '5.10'
103
+ version: '5.14'
74
104
  type: :development
75
105
  prerelease: false
76
106
  version_requirements: !ruby/object:Gem::Requirement
77
107
  requirements:
78
108
  - - "~>"
79
109
  - !ruby/object:Gem::Version
80
- version: '5.10'
110
+ version: '5.14'
81
111
  - !ruby/object:Gem::Dependency
82
- name: redcarpet
112
+ name: minitest-focus
83
113
  requirement: !ruby/object:Gem::Requirement
84
114
  requirements:
85
115
  - - "~>"
86
116
  - !ruby/object:Gem::Version
87
- version: '3.0'
117
+ version: '1.1'
88
118
  type: :development
89
119
  prerelease: false
90
120
  version_requirements: !ruby/object:Gem::Requirement
91
121
  requirements:
92
122
  - - "~>"
93
123
  - !ruby/object:Gem::Version
94
- version: '3.0'
124
+ version: '1.1'
95
125
  - !ruby/object:Gem::Dependency
96
- name: google-style
126
+ name: minitest-rg
97
127
  requirement: !ruby/object:Gem::Requirement
98
128
  requirements:
99
129
  - - "~>"
100
130
  - !ruby/object:Gem::Version
101
- version: 1.24.0
131
+ version: '5.2'
102
132
  type: :development
103
133
  prerelease: false
104
134
  version_requirements: !ruby/object:Gem::Requirement
105
135
  requirements:
106
136
  - - "~>"
107
137
  - !ruby/object:Gem::Version
108
- version: 1.24.0
138
+ version: '5.2'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '12.0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '12.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: redcarpet
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '3.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.0'
109
167
  - !ruby/object:Gem::Dependency
110
168
  name: simplecov
111
169
  requirement: !ruby/object:Gem::Requirement
@@ -134,8 +192,9 @@ dependencies:
134
192
  - - "~>"
135
193
  - !ruby/object:Gem::Version
136
194
  version: '0.9'
137
- description: google-cloud-video_intelligence is the official library for Cloud Video
138
- Intelligence API.
195
+ description: Detects objects, explicit content, and scene changes in videos. It also
196
+ specifies the region for annotation and transcribes speech to text. Supports both
197
+ asynchronous API and streaming API.
139
198
  email: googleapis-packages@google.com
140
199
  executables: []
141
200
  extensions: []
@@ -143,56 +202,13 @@ extra_rdoc_files: []
143
202
  files:
144
203
  - ".yardopts"
145
204
  - AUTHENTICATION.md
146
- - LICENSE
205
+ - LICENSE.md
206
+ - MIGRATING.md
147
207
  - README.md
208
+ - lib/google-cloud-video_intelligence.rb
148
209
  - lib/google/cloud/video_intelligence.rb
149
- - lib/google/cloud/video_intelligence/credentials.rb
150
- - lib/google/cloud/video_intelligence/v1.rb
151
- - lib/google/cloud/video_intelligence/v1/credentials.rb
152
- - lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb
153
- - lib/google/cloud/video_intelligence/v1/doc/google/longrunning/operations.rb
154
- - lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb
155
- - lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb
156
- - lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb
157
- - lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb
158
- - lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json
159
- - lib/google/cloud/video_intelligence/v1beta2.rb
160
- - lib/google/cloud/video_intelligence/v1beta2/credentials.rb
161
- - lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb
162
- - lib/google/cloud/video_intelligence/v1beta2/doc/google/longrunning/operations.rb
163
- - lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb
164
- - lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb
165
- - lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb
166
- - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb
167
- - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client_config.json
168
- - lib/google/cloud/video_intelligence/v1p1beta1.rb
169
- - lib/google/cloud/video_intelligence/v1p1beta1/credentials.rb
170
- - lib/google/cloud/video_intelligence/v1p1beta1/doc/google/cloud/videointelligence/v1p1beta1/video_intelligence.rb
171
- - lib/google/cloud/video_intelligence/v1p1beta1/doc/google/longrunning/operations.rb
172
- - lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/any.rb
173
- - lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/duration.rb
174
- - lib/google/cloud/video_intelligence/v1p1beta1/doc/google/rpc/status.rb
175
- - lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb
176
- - lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client_config.json
177
- - lib/google/cloud/video_intelligence/v1p2beta1.rb
178
- - lib/google/cloud/video_intelligence/v1p2beta1/credentials.rb
179
- - lib/google/cloud/video_intelligence/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/video_intelligence.rb
180
- - lib/google/cloud/video_intelligence/v1p2beta1/doc/google/longrunning/operations.rb
181
- - lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/any.rb
182
- - lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/duration.rb
183
- - lib/google/cloud/video_intelligence/v1p2beta1/doc/google/rpc/status.rb
184
- - lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb
185
- - lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client_config.json
186
210
  - lib/google/cloud/video_intelligence/version.rb
187
- - lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb
188
- - lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb
189
- - lib/google/cloud/videointelligence/v1beta2/video_intelligence_pb.rb
190
- - lib/google/cloud/videointelligence/v1beta2/video_intelligence_services_pb.rb
191
- - lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_pb.rb
192
- - lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_services_pb.rb
193
- - lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_pb.rb
194
- - lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_services_pb.rb
195
- homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-video_intelligence
211
+ homepage: https://github.com/googleapis/google-cloud-ruby
196
212
  licenses:
197
213
  - Apache-2.0
198
214
  metadata: {}
@@ -211,8 +227,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
227
  - !ruby/object:Gem::Version
212
228
  version: '0'
213
229
  requirements: []
214
- rubygems_version: 3.0.6
230
+ rubygems_version: 3.2.6
215
231
  signing_key:
216
232
  specification_version: 4
217
- summary: API Client library for Cloud Video Intelligence API
233
+ summary: API Client library for the Cloud Video Intelligence API
218
234
  test_files: []