google-cloud-video_intelligence 0.25.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +2 -2
  3. data/README.md +34 -33
  4. data/lib/google/cloud/video_intelligence.rb +44 -5
  5. data/lib/google/cloud/video_intelligence/credentials.rb +2 -2
  6. data/lib/google/cloud/video_intelligence/v1.rb +44 -15
  7. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +2 -2
  8. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb +2 -2
  9. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb +2 -2
  10. data/lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb +2 -2
  11. data/lib/google/cloud/video_intelligence/v1/doc/overview.rb +44 -5
  12. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +14 -11
  13. data/lib/google/cloud/video_intelligence/v1beta1.rb +6 -15
  14. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb +2 -2
  15. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb +2 -2
  16. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb +2 -2
  17. data/lib/google/cloud/video_intelligence/v1beta1/doc/overview.rb +6 -5
  18. data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb +14 -21
  19. data/lib/google/cloud/video_intelligence/v1beta2.rb +6 -15
  20. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb +2 -2
  21. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb +2 -2
  22. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb +2 -2
  23. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb +2 -2
  24. data/lib/google/cloud/video_intelligence/v1beta2/doc/overview.rb +6 -5
  25. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +14 -21
  26. data/lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb +1 -1
  27. data/lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb +1 -1
  28. data/lib/google/cloud/videointelligence/v1beta2/video_intelligence_services_pb.rb +1 -1
  29. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfcf5e5d48a0d134bafecd0e9f5cadac3ebf054d89a19e3f79f476636333d2da
4
- data.tar.gz: c1c8ec1085317aacef8a330df3cf6ca6bc4c111c50c7c5521df492996534c006
3
+ metadata.gz: 715c978d35c2b688089a24f22d0be8028a22b6883c197493197cbc7c96f92b6d
4
+ data.tar.gz: 05705a82fe5e50a7c3a08245a07cc6cb6336585130641a8467c5fadff91c1add
5
5
  SHA512:
6
- metadata.gz: 51ee692a313e4bdd3ee896ea9e62023254ae81188a1231042dd1c984ae3af5234de407d2f4c2739ceb00f2b3a78c694f9a654c17d446b22ad41139de3531cbae
7
- data.tar.gz: 0e27816942b7ce07279e73f33b458153584f7bb15465f2c1bbb47fdcf8deec94d6ce25414ca2b75f1402801360e6c2479dd65b6a452c2b500095e2bd0bc6a31a
6
+ metadata.gz: 2f237062f6d5d93c6a231a80b7657e7b63e6a4c70f6186d01d98dbff2485a164f7127af7d70dea6396182f852ff2f17184b38b587995ce8fa4631a8d18ab4d16
7
+ data.tar.gz: '079518aa5c58cebadd7faa2a8b9607879512e6f127089a2616975833d42535bc0c252802c1f69ecd5bd9a46487aa71d64276f8bf9ef962aba4cfe41992522ee5'
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  Apache License
2
2
  Version 2.0, January 2004
3
- http://www.apache.org/licenses/
3
+ https://www.apache.org/licenses/
4
4
 
5
5
  TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
6
 
@@ -192,7 +192,7 @@
192
192
  you may not use this file except in compliance with the License.
193
193
  You may obtain a copy of the License at
194
194
 
195
- http://www.apache.org/licenses/LICENSE-2.0
195
+ https://www.apache.org/licenses/LICENSE-2.0
196
196
 
197
197
  Unless required by applicable law or agreed to in writing, software
198
198
  distributed under the License is distributed on an "AS IS" BASIS,
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # Ruby Client for Google Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
1
+ # Ruby Client for Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
2
2
 
3
- [Google Cloud Video Intelligence API][Product Documentation]:
4
- Google Cloud Video Intelligence API.
3
+ [Cloud Video Intelligence API][Product Documentation]:
4
+ Cloud Video Intelligence API.
5
5
  - [Client Library Documentation][]
6
6
  - [Product Documentation][]
7
7
 
@@ -10,8 +10,9 @@ In order to use this library, you first need to go through the following
10
10
  steps:
11
11
 
12
12
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
13
- 2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
14
- 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
13
+ 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
14
+ 3. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
15
+ 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
15
16
 
16
17
  ### Installation
17
18
  ```
@@ -21,45 +22,45 @@ $ gem install google-cloud-video_intelligence
21
22
  ### Preview
22
23
  #### VideoIntelligenceServiceClient
23
24
  ```rb
24
- require "google/cloud/video_intelligence"
25
+ require "google/cloud/video_intelligence"
25
26
 
26
- video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
27
- input_uri = "gs://cloud-ml-sandbox/video/chicago.mp4"
28
- features_element = :LABEL_DETECTION
29
- features = [features_element]
27
+ video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
28
+ input_uri = "gs://demomaker/cat.mp4"
29
+ features_element = :LABEL_DETECTION
30
+ features = [features_element]
30
31
 
31
- # Register a callback during the method call.
32
- operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
33
- raise op.results.message if op.error?
34
- op_results = op.results
35
- # Process the results.
32
+ # Register a callback during the method call.
33
+ operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
34
+ raise op.results.message if op.error?
35
+ op_results = op.results
36
+ # Process the results.
36
37
 
37
- metadata = op.metadata
38
- # Process the metadata.
39
- end
38
+ metadata = op.metadata
39
+ # Process the metadata.
40
+ end
40
41
 
41
- # Or use the return value to register a callback.
42
- operation.on_done do |op|
43
- raise op.results.message if op.error?
44
- op_results = op.results
45
- # Process the results.
42
+ # Or use the return value to register a callback.
43
+ operation.on_done do |op|
44
+ raise op.results.message if op.error?
45
+ op_results = op.results
46
+ # Process the results.
46
47
 
47
- metadata = op.metadata
48
- # Process the metadata.
49
- end
48
+ metadata = op.metadata
49
+ # Process the metadata.
50
+ end
50
51
 
51
- # Manually reload the operation.
52
- operation.reload!
52
+ # Manually reload the operation.
53
+ operation.reload!
53
54
 
54
- # Or block until the operation completes, triggering callbacks on
55
- # completion.
56
- operation.wait_until_done!
55
+ # Or block until the operation completes, triggering callbacks on
56
+ # completion.
57
+ operation.wait_until_done!
57
58
  ```
58
59
 
59
60
  ### Next Steps
60
- - Read the [Client Library Documentation][] for Google Cloud Video Intelligence API
61
+ - Read the [Client Library Documentation][] for Cloud Video Intelligence API
61
62
  to see other available methods on the client.
62
- - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
63
+ - Read the [Cloud Video Intelligence API Product documentation][Product Documentation]
63
64
  to learn more about the product and see How-to Guides.
64
65
  - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
65
66
  to see the full list of Cloud APIs that we cover.
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -20,7 +20,7 @@ module Google
20
20
  # rubocop:disable LineLength
21
21
 
22
22
  ##
23
- # # Ruby Client for Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
+ # # Ruby Client for Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
24
24
  #
25
25
  # [Cloud Video Intelligence API][Product Documentation]:
26
26
  # Cloud Video Intelligence API.
@@ -31,8 +31,47 @@ module Google
31
31
  # steps:
32
32
  #
33
33
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
34
- # 2. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
35
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
34
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
35
+ # 3. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
36
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
37
+ #
38
+ # ### Preview
39
+ # #### VideoIntelligenceServiceClient
40
+ # ```rb
41
+ # require "google/cloud/video_intelligence"
42
+ #
43
+ # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
44
+ # input_uri = "gs://demomaker/cat.mp4"
45
+ # features_element = :LABEL_DETECTION
46
+ # features = [features_element]
47
+ #
48
+ # # Register a callback during the method call.
49
+ # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
50
+ # raise op.results.message if op.error?
51
+ # op_results = op.results
52
+ # # Process the results.
53
+ #
54
+ # metadata = op.metadata
55
+ # # Process the metadata.
56
+ # end
57
+ #
58
+ # # Or use the return value to register a callback.
59
+ # operation.on_done do |op|
60
+ # raise op.results.message if op.error?
61
+ # op_results = op.results
62
+ # # Process the results.
63
+ #
64
+ # metadata = op.metadata
65
+ # # Process the metadata.
66
+ # end
67
+ #
68
+ # # Manually reload the operation.
69
+ # operation.reload!
70
+ #
71
+ # # Or block until the operation completes, triggering callbacks on
72
+ # # completion.
73
+ # operation.wait_until_done!
74
+ # ```
36
75
  #
37
76
  # ### Next Steps
38
77
  # - Read the [Cloud Video Intelligence API Product documentation][Product Documentation]
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,7 +19,7 @@ module Google
19
19
  # rubocop:disable LineLength
20
20
 
21
21
  ##
22
- # # Ruby Client for Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
22
+ # # Ruby Client for Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
23
  #
24
24
  # [Cloud Video Intelligence API][Product Documentation]:
25
25
  # Cloud Video Intelligence API.
@@ -30,8 +30,47 @@ module Google
30
30
  # steps:
31
31
  #
32
32
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
33
- # 2. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
34
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
34
+ # 3. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
35
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
36
+ #
37
+ # ### Preview
38
+ # #### VideoIntelligenceServiceClient
39
+ # ```rb
40
+ # require "google/cloud/video_intelligence/v1"
41
+ #
42
+ # video_intelligence_service_client = Google::Cloud::VideoIntelligence::V1.new
43
+ # input_uri = "gs://demomaker/cat.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
+ # ```
35
74
  #
36
75
  # ### Next Steps
37
76
  # - Read the [Cloud Video Intelligence API Product documentation][Product Documentation]
@@ -74,11 +113,6 @@ module Google
74
113
  # @param timeout [Numeric]
75
114
  # The default timeout, in seconds, for calls made through this client.
76
115
  def self.new \
77
- service_path: nil,
78
- port: nil,
79
- channel: nil,
80
- chan_creds: nil,
81
- updater_proc: nil,
82
116
  credentials: nil,
83
117
  scopes: nil,
84
118
  client_config: nil,
@@ -86,11 +120,6 @@ module Google
86
120
  lib_name: nil,
87
121
  lib_version: nil
88
122
  kwargs = {
89
- service_path: service_path,
90
- port: port,
91
- channel: channel,
92
- chan_creds: chan_creds,
93
- updater_proc: updater_proc,
94
123
  credentials: credentials,
95
124
  scopes: scopes,
96
125
  client_config: client_config,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -17,7 +17,7 @@ module Google
17
17
  # rubocop:disable LineLength
18
18
 
19
19
  ##
20
- # # Ruby Client for Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
20
+ # # Ruby Client for Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
21
  #
22
22
  # [Cloud Video Intelligence API][Product Documentation]:
23
23
  # Cloud Video Intelligence API.
@@ -28,14 +28,53 @@ module Google
28
28
  # steps:
29
29
  #
30
30
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
31
- # 2. [Enable the 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)
31
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
32
+ # 3. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
33
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
34
  #
34
35
  # ### Installation
35
36
  # ```
36
37
  # $ gem install google-cloud-video_intelligence
37
38
  # ```
38
39
  #
40
+ # ### Preview
41
+ # #### VideoIntelligenceServiceClient
42
+ # ```rb
43
+ # require "google/cloud/video_intelligence"
44
+ #
45
+ # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
46
+ # input_uri = "gs://demomaker/cat.mp4"
47
+ # features_element = :LABEL_DETECTION
48
+ # features = [features_element]
49
+ #
50
+ # # Register a callback during the method call.
51
+ # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
52
+ # raise op.results.message if op.error?
53
+ # op_results = op.results
54
+ # # Process the results.
55
+ #
56
+ # metadata = op.metadata
57
+ # # Process the metadata.
58
+ # end
59
+ #
60
+ # # Or use the return value to register a callback.
61
+ # operation.on_done do |op|
62
+ # raise op.results.message if op.error?
63
+ # op_results = op.results
64
+ # # Process the results.
65
+ #
66
+ # metadata = op.metadata
67
+ # # Process the metadata.
68
+ # end
69
+ #
70
+ # # Manually reload the operation.
71
+ # operation.reload!
72
+ #
73
+ # # Or block until the operation completes, triggering callbacks on
74
+ # # completion.
75
+ # operation.wait_until_done!
76
+ # ```
77
+ #
39
78
  # ### Next Steps
40
79
  # - Read the [Cloud Video Intelligence API Product documentation][Product Documentation]
41
80
  # to learn more about the product and see How-to Guides.
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google LLC All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -57,6 +57,10 @@ module Google
57
57
  "https://www.googleapis.com/auth/cloud-platform"
58
58
  ].freeze
59
59
 
60
+ class OperationsClient < Google::Longrunning::OperationsClient
61
+ SERVICE_ADDRESS = SERVICE_ADDRESS
62
+ end
63
+
60
64
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
61
65
  # Provides the means for authenticating requests made by the client. This parameter can
62
66
  # be many types.
@@ -82,8 +86,6 @@ module Google
82
86
  # @param timeout [Numeric]
83
87
  # The default timeout, in seconds, for calls made through this client.
84
88
  def initialize \
85
- service_path: SERVICE_ADDRESS,
86
- port: DEFAULT_SERVICE_PORT,
87
89
  credentials: nil,
88
90
  scopes: ALL_SCOPES,
89
91
  client_config: {},
@@ -96,14 +98,9 @@ module Google
96
98
  require "google/gax/grpc"
97
99
  require "google/cloud/videointelligence/v1/video_intelligence_services_pb"
98
100
 
99
- if service_path != SERVICE_ADDRESS || port != DEFAULT_SERVICE_PORT
100
- warn "`service_path` and `port` parameters are deprecated and will be removed"
101
- end
102
-
103
101
  credentials ||= Google::Cloud::VideoIntelligence::Credentials.default
104
102
 
105
- @operations_client = Google::Longrunning::OperationsClient.new(
106
- service_path: service_path,
103
+ @operations_client = OperationsClient.new(
107
104
  credentials: credentials,
108
105
  scopes: scopes,
109
106
  client_config: client_config,
@@ -128,9 +125,11 @@ module Google
128
125
  updater_proc = credentials.updater_proc
129
126
  end
130
127
 
128
+ package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
129
+
131
130
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
132
131
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
133
- google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
132
+ google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
134
133
  google_api_client << " grpc/#{GRPC::VERSION}"
135
134
  google_api_client.freeze
136
135
 
@@ -149,6 +148,10 @@ module Google
149
148
  kwargs: headers
150
149
  )
151
150
  end
151
+
152
+ # Allow overriding the service path/port in subclasses.
153
+ service_path = self.class::SERVICE_ADDRESS
154
+ port = self.class::DEFAULT_SERVICE_PORT
152
155
  @video_intelligence_service_stub = Google::Gax::Grpc.create_stub(
153
156
  service_path,
154
157
  port,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,7 +19,7 @@ module Google
19
19
  # rubocop:disable LineLength
20
20
 
21
21
  ##
22
- # # Ruby Client for Google Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
22
+ # # Ruby Client for Google Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
23
  #
24
24
  # [Google Cloud Video Intelligence API][Product Documentation]:
25
25
  # Google Cloud Video Intelligence API.
@@ -30,8 +30,9 @@ module Google
30
30
  # steps:
31
31
  #
32
32
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
33
- # 2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
34
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
34
+ # 3. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
35
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
36
  #
36
37
  # ### Next Steps
37
38
  # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
@@ -74,11 +75,6 @@ module Google
74
75
  # @param timeout [Numeric]
75
76
  # The default timeout, in seconds, for calls made through this client.
76
77
  def self.new \
77
- service_path: nil,
78
- port: nil,
79
- channel: nil,
80
- chan_creds: nil,
81
- updater_proc: nil,
82
78
  credentials: nil,
83
79
  scopes: nil,
84
80
  client_config: nil,
@@ -86,11 +82,6 @@ module Google
86
82
  lib_name: nil,
87
83
  lib_version: nil
88
84
  kwargs = {
89
- service_path: service_path,
90
- port: port,
91
- channel: channel,
92
- chan_creds: chan_creds,
93
- updater_proc: updater_proc,
94
85
  credentials: credentials,
95
86
  scopes: scopes,
96
87
  client_config: client_config,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -17,7 +17,7 @@ module Google
17
17
  # rubocop:disable LineLength
18
18
 
19
19
  ##
20
- # # Ruby Client for Google Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
20
+ # # Ruby Client for Google Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
21
  #
22
22
  # [Google Cloud Video Intelligence API][Product Documentation]:
23
23
  # Google Cloud Video Intelligence API.
@@ -28,8 +28,9 @@ module Google
28
28
  # steps:
29
29
  #
30
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)
31
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
32
+ # 3. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
33
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
34
  #
34
35
  # ### Installation
35
36
  # ```
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -57,6 +57,10 @@ module Google
57
57
  "https://www.googleapis.com/auth/cloud-platform"
58
58
  ].freeze
59
59
 
60
+ class OperationsClient < Google::Longrunning::OperationsClient
61
+ SERVICE_ADDRESS = SERVICE_ADDRESS
62
+ end
63
+
60
64
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
61
65
  # Provides the means for authenticating requests made by the client. This parameter can
62
66
  # be many types.
@@ -82,11 +86,6 @@ module Google
82
86
  # @param timeout [Numeric]
83
87
  # The default timeout, in seconds, for calls made through this client.
84
88
  def initialize \
85
- service_path: SERVICE_ADDRESS,
86
- port: DEFAULT_SERVICE_PORT,
87
- channel: nil,
88
- chan_creds: nil,
89
- updater_proc: nil,
90
89
  credentials: nil,
91
90
  scopes: ALL_SCOPES,
92
91
  client_config: {},
@@ -99,21 +98,9 @@ module Google
99
98
  require "google/gax/grpc"
100
99
  require "google/cloud/videointelligence/v1beta1/video_intelligence_services_pb"
101
100
 
102
- if channel || chan_creds || updater_proc
103
- warn "The `channel`, `chan_creds`, and `updater_proc` parameters will be removed " \
104
- "on 2017/09/08"
105
- credentials ||= channel
106
- credentials ||= chan_creds
107
- credentials ||= updater_proc
108
- end
109
- if service_path != SERVICE_ADDRESS || port != DEFAULT_SERVICE_PORT
110
- warn "`service_path` and `port` parameters are deprecated and will be removed"
111
- end
112
-
113
101
  credentials ||= Google::Cloud::VideoIntelligence::Credentials.default
114
102
 
115
- @operations_client = Google::Longrunning::OperationsClient.new(
116
- service_path: service_path,
103
+ @operations_client = OperationsClient.new(
117
104
  credentials: credentials,
118
105
  scopes: scopes,
119
106
  client_config: client_config,
@@ -138,9 +125,11 @@ module Google
138
125
  updater_proc = credentials.updater_proc
139
126
  end
140
127
 
128
+ package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
129
+
141
130
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
131
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
143
- google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
132
+ google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
144
133
  google_api_client << " grpc/#{GRPC::VERSION}"
145
134
  google_api_client.freeze
146
135
 
@@ -159,6 +148,10 @@ module Google
159
148
  kwargs: headers
160
149
  )
161
150
  end
151
+
152
+ # Allow overriding the service path/port in subclasses.
153
+ service_path = self.class::SERVICE_ADDRESS
154
+ port = self.class::DEFAULT_SERVICE_PORT
162
155
  @video_intelligence_service_stub = Google::Gax::Grpc.create_stub(
163
156
  service_path,
164
157
  port,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,7 +19,7 @@ module Google
19
19
  # rubocop:disable LineLength
20
20
 
21
21
  ##
22
- # # Ruby Client for Google Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
22
+ # # Ruby Client for Google Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
23
  #
24
24
  # [Google Cloud Video Intelligence API][Product Documentation]:
25
25
  # Google Cloud Video Intelligence API.
@@ -30,8 +30,9 @@ module Google
30
30
  # steps:
31
31
  #
32
32
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
33
- # 2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
34
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
34
+ # 3. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
35
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
36
  #
36
37
  # ### Next Steps
37
38
  # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
@@ -74,11 +75,6 @@ module Google
74
75
  # @param timeout [Numeric]
75
76
  # The default timeout, in seconds, for calls made through this client.
76
77
  def self.new \
77
- service_path: nil,
78
- port: nil,
79
- channel: nil,
80
- chan_creds: nil,
81
- updater_proc: nil,
82
78
  credentials: nil,
83
79
  scopes: nil,
84
80
  client_config: nil,
@@ -86,11 +82,6 @@ module Google
86
82
  lib_name: nil,
87
83
  lib_version: nil
88
84
  kwargs = {
89
- service_path: service_path,
90
- port: port,
91
- channel: channel,
92
- chan_creds: chan_creds,
93
- updater_proc: updater_proc,
94
85
  credentials: credentials,
95
86
  scopes: scopes,
96
87
  client_config: client_config,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -17,7 +17,7 @@ module Google
17
17
  # rubocop:disable LineLength
18
18
 
19
19
  ##
20
- # # Ruby Client for Google Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
20
+ # # Ruby Client for Google Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
21
  #
22
22
  # [Google Cloud Video Intelligence API][Product Documentation]:
23
23
  # Google Cloud Video Intelligence API.
@@ -28,8 +28,9 @@ module Google
28
28
  # steps:
29
29
  #
30
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)
31
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
32
+ # 3. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
33
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
34
  #
34
35
  # ### Installation
35
36
  # ```
@@ -1,10 +1,10 @@
1
- # Copyright 2017, Google Inc. All rights reserved.
1
+ # Copyright 2017 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -57,6 +57,10 @@ module Google
57
57
  "https://www.googleapis.com/auth/cloud-platform"
58
58
  ].freeze
59
59
 
60
+ class OperationsClient < Google::Longrunning::OperationsClient
61
+ SERVICE_ADDRESS = SERVICE_ADDRESS
62
+ end
63
+
60
64
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
61
65
  # Provides the means for authenticating requests made by the client. This parameter can
62
66
  # be many types.
@@ -82,11 +86,6 @@ module Google
82
86
  # @param timeout [Numeric]
83
87
  # The default timeout, in seconds, for calls made through this client.
84
88
  def initialize \
85
- service_path: SERVICE_ADDRESS,
86
- port: DEFAULT_SERVICE_PORT,
87
- channel: nil,
88
- chan_creds: nil,
89
- updater_proc: nil,
90
89
  credentials: nil,
91
90
  scopes: ALL_SCOPES,
92
91
  client_config: {},
@@ -99,21 +98,9 @@ module Google
99
98
  require "google/gax/grpc"
100
99
  require "google/cloud/videointelligence/v1beta2/video_intelligence_services_pb"
101
100
 
102
- if channel || chan_creds || updater_proc
103
- warn "The `channel`, `chan_creds`, and `updater_proc` parameters will be removed " \
104
- "on 2017/09/08"
105
- credentials ||= channel
106
- credentials ||= chan_creds
107
- credentials ||= updater_proc
108
- end
109
- if service_path != SERVICE_ADDRESS || port != DEFAULT_SERVICE_PORT
110
- warn "`service_path` and `port` parameters are deprecated and will be removed"
111
- end
112
-
113
101
  credentials ||= Google::Cloud::VideoIntelligence::Credentials.default
114
102
 
115
- @operations_client = Google::Longrunning::OperationsClient.new(
116
- service_path: service_path,
103
+ @operations_client = OperationsClient.new(
117
104
  credentials: credentials,
118
105
  scopes: scopes,
119
106
  client_config: client_config,
@@ -138,9 +125,11 @@ module Google
138
125
  updater_proc = credentials.updater_proc
139
126
  end
140
127
 
128
+ package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
129
+
141
130
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
131
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
143
- google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
132
+ google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
144
133
  google_api_client << " grpc/#{GRPC::VERSION}"
145
134
  google_api_client.freeze
146
135
 
@@ -159,6 +148,10 @@ module Google
159
148
  kwargs: headers
160
149
  )
161
150
  end
151
+
152
+ # Allow overriding the service path/port in subclasses.
153
+ service_path = self.class::SERVICE_ADDRESS
154
+ port = self.class::DEFAULT_SERVICE_PORT
162
155
  @video_intelligence_service_stub = Google::Gax::Grpc.create_stub(
163
156
  service_path,
164
157
  port,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
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.25.0
4
+ version: 1.0.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-11-22 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.10.1
19
+ version: '1.0'
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.10.1
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.9'
69
- description: google-cloud-video_intelligence is the official library for Google Cloud
70
- Video Intelligence API.
69
+ description: google-cloud-video_intelligence is the official library for Cloud Video
70
+ Intelligence API.
71
71
  email: googleapis-packages@google.com
72
72
  executables: []
73
73
  extensions: []
@@ -127,8 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.7.2
130
+ rubygems_version: 2.7.3
131
131
  signing_key:
132
132
  specification_version: 4
133
- summary: API Client library for Google Cloud Video Intelligence API
133
+ summary: API Client library for Cloud Video Intelligence API
134
134
  test_files: []