google-cloud-vision_ai-v1 1.3.0 → 1.4.0
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.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision_ai/v1/app_platform/client.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/app_platform/operations.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb +8 -0
- data/lib/google/cloud/vision_ai/v1/app_platform/rest.rb +1 -0
- data/lib/google/cloud/vision_ai/v1/bindings_override.rb +75 -0
- data/lib/google/cloud/vision_ai/v1/health_check_service/client.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/health_check_service/rest/client.rb +8 -0
- data/lib/google/cloud/vision_ai/v1/health_check_service/rest.rb +1 -0
- data/lib/google/cloud/vision_ai/v1/live_video_analytics/client.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/live_video_analytics/operations.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/client.rb +8 -0
- data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest.rb +1 -0
- data/lib/google/cloud/vision_ai/v1/rest.rb +1 -0
- data/lib/google/cloud/vision_ai/v1/streaming_service/client.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/streaming_service/rest/client.rb +8 -0
- data/lib/google/cloud/vision_ai/v1/streaming_service/rest.rb +1 -0
- data/lib/google/cloud/vision_ai/v1/streams_service/client.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/streams_service/operations.rb +20 -3
- data/lib/google/cloud/vision_ai/v1/streams_service/rest/client.rb +8 -0
- data/lib/google/cloud/vision_ai/v1/streams_service/rest.rb +1 -0
- data/lib/google/cloud/vision_ai/v1/version.rb +1 -1
- data/lib/google/cloud/vision_ai/v1/warehouse/client.rb +23 -6
- data/lib/google/cloud/vision_ai/v1/warehouse/operations.rb +22 -5
- data/lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb +11 -3
- data/lib/google/cloud/vision_ai/v1/warehouse/rest/operations.rb +2 -2
- data/lib/google/cloud/vision_ai/v1/warehouse/rest.rb +1 -0
- data/lib/google/cloud/visionai/v1/annotations_pb.rb +2 -25
- data/lib/google/cloud/visionai/v1/common_pb.rb +2 -24
- data/lib/google/cloud/visionai/v1/health_service_pb.rb +2 -23
- data/lib/google/cloud/visionai/v1/lva_pb.rb +2 -23
- data/lib/google/cloud/visionai/v1/lva_resources_pb.rb +2 -25
- data/lib/google/cloud/visionai/v1/lva_service_pb.rb +2 -25
- data/lib/google/cloud/visionai/v1/platform_pb.rb +2 -29
- data/lib/google/cloud/visionai/v1/streaming_resources_pb.rb +2 -26
- data/lib/google/cloud/visionai/v1/streaming_service_pb.rb +2 -26
- data/lib/google/cloud/visionai/v1/streams_resources_pb.rb +2 -25
- data/lib/google/cloud/visionai/v1/streams_service_pb.rb +2 -27
- data/lib/google/cloud/visionai/v1/warehouse_pb.rb +3 -32
- data/proto_docs/google/api/client.rb +145 -29
- data/proto_docs/google/cloud/visionai/v1/warehouse.rb +3 -3
- data/proto_docs/google/type/datetime.rb +16 -15
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bc7b35079af1fda00689d18796c71c8988970c5b84dfaa846289597cf8b98605
|
|
4
|
+
data.tar.gz: b193bc75ae08e13a6b9643120f2fc0694330c7cf1b9a55edd931023d293306d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c384fc9107be46b4a0e87b08c6e2a78d7f38dcc805932498011246540a199e2cc285baaa8a1dd98d71c8337be670f83f0e9899cd5acd35b40b0f5035efb3413
|
|
7
|
+
data.tar.gz: 481159760cb90f400c79927f9348465cfea93bb684c1de9b99fceea29be86a9f68fca7a3d892a2d56632347d2ae68545ee8a0b142c26dac22c5a40205d3c6fd9
|
|
@@ -3019,8 +3019,6 @@ module Google
|
|
|
3019
3019
|
# @return [::String,nil]
|
|
3020
3020
|
# @!attribute [rw] credentials
|
|
3021
3021
|
# Credentials to send with calls. You may provide any of the following types:
|
|
3022
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
3023
|
-
# * (`Hash`) A service account key as a Hash
|
|
3024
3022
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
3025
3023
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
3026
3024
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -3029,7 +3027,26 @@ module Google
|
|
|
3029
3027
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
3030
3028
|
# * (`nil`) indicating no credentials
|
|
3031
3029
|
#
|
|
3032
|
-
# Warning:
|
|
3030
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
3031
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
3032
|
+
# Google APIs can compromise the security of your systems and data.
|
|
3033
|
+
#
|
|
3034
|
+
# @example
|
|
3035
|
+
#
|
|
3036
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
3037
|
+
# # on the appropriate credentials class for your environment.
|
|
3038
|
+
#
|
|
3039
|
+
# require "googleauth"
|
|
3040
|
+
#
|
|
3041
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
3042
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
3043
|
+
# )
|
|
3044
|
+
#
|
|
3045
|
+
# client = ::Google::Cloud::VisionAI::V1::AppPlatform::Client.new do |config|
|
|
3046
|
+
# config.credentials = credentials
|
|
3047
|
+
# end
|
|
3048
|
+
#
|
|
3049
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
3033
3050
|
# external source for authentication to Google Cloud, you must validate it before
|
|
3034
3051
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
3035
3052
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -178,6 +178,7 @@ module Google
|
|
|
178
178
|
config.quota_project = @quota_project_id
|
|
179
179
|
config.endpoint = @app_platform_stub.endpoint
|
|
180
180
|
config.universe_domain = @app_platform_stub.universe_domain
|
|
181
|
+
config.bindings_override = @config.bindings_override
|
|
181
182
|
config.logger = @app_platform_stub.logger if config.respond_to? :logger=
|
|
182
183
|
end
|
|
183
184
|
|
|
@@ -2902,6 +2903,13 @@ module Google
|
|
|
2902
2903
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
2903
2904
|
config_attr :quota_project, nil, ::String, nil
|
|
2904
2905
|
config_attr :universe_domain, nil, ::String, nil
|
|
2906
|
+
|
|
2907
|
+
# @private
|
|
2908
|
+
# Overrides for http bindings for the RPCs of this service
|
|
2909
|
+
# are only used when this service is used as mixin, and only
|
|
2910
|
+
# by the host service.
|
|
2911
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
2912
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
2905
2913
|
config_attr :logger, :default, ::Logger, nil, :default
|
|
2906
2914
|
|
|
2907
2915
|
# @private
|
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
|
21
21
|
require "gapic/config/method"
|
|
22
22
|
|
|
23
23
|
require "google/cloud/vision_ai/v1/version"
|
|
24
|
+
require "google/cloud/vision_ai/v1/bindings_override"
|
|
24
25
|
|
|
25
26
|
require "google/cloud/vision_ai/v1/app_platform/credentials"
|
|
26
27
|
require "google/cloud/vision_ai/v1/app_platform/paths"
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module VisionAI
|
|
24
|
+
##
|
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
|
26
|
+
#
|
|
27
|
+
# require "google/cloud/vision_ai/v1/rest"
|
|
28
|
+
# client = ::Google::Cloud::VisionAI::V1::LiveVideoAnalytics::Rest::Client.new
|
|
29
|
+
#
|
|
30
|
+
module V1
|
|
31
|
+
##
|
|
32
|
+
# @private
|
|
33
|
+
# Initialize the mixin bindings configuration
|
|
34
|
+
#
|
|
35
|
+
def self.configure
|
|
36
|
+
@configure ||= begin
|
|
37
|
+
namespace = ["Google", "Cloud", "VisionAI"]
|
|
38
|
+
parent_config = while namespace.any?
|
|
39
|
+
parent_name = namespace.join "::"
|
|
40
|
+
parent_const = const_get parent_name
|
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
42
|
+
namespace.pop
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
|
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
|
48
|
+
uri_method: :get,
|
|
49
|
+
uri_template: "/v1/{name}",
|
|
50
|
+
matches: [
|
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
52
|
+
],
|
|
53
|
+
body: nil
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
|
57
|
+
|
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
|
59
|
+
uri_method: :get,
|
|
60
|
+
uri_template: "/v1/{name}/locations",
|
|
61
|
+
matches: [
|
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
|
63
|
+
],
|
|
64
|
+
body: nil
|
|
65
|
+
)
|
|
66
|
+
]
|
|
67
|
+
default_config
|
|
68
|
+
end
|
|
69
|
+
yield @configure if block_given?
|
|
70
|
+
@configure
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -336,8 +336,6 @@ module Google
|
|
|
336
336
|
# @return [::String,nil]
|
|
337
337
|
# @!attribute [rw] credentials
|
|
338
338
|
# Credentials to send with calls. You may provide any of the following types:
|
|
339
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
340
|
-
# * (`Hash`) A service account key as a Hash
|
|
341
339
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
342
340
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
343
341
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -346,7 +344,26 @@ module Google
|
|
|
346
344
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
347
345
|
# * (`nil`) indicating no credentials
|
|
348
346
|
#
|
|
349
|
-
# Warning:
|
|
347
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
348
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
349
|
+
# Google APIs can compromise the security of your systems and data.
|
|
350
|
+
#
|
|
351
|
+
# @example
|
|
352
|
+
#
|
|
353
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
354
|
+
# # on the appropriate credentials class for your environment.
|
|
355
|
+
#
|
|
356
|
+
# require "googleauth"
|
|
357
|
+
#
|
|
358
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
359
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
360
|
+
# )
|
|
361
|
+
#
|
|
362
|
+
# client = ::Google::Cloud::VisionAI::V1::HealthCheckService::Client.new do |config|
|
|
363
|
+
# config.credentials = credentials
|
|
364
|
+
# end
|
|
365
|
+
#
|
|
366
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
350
367
|
# external source for authentication to Google Cloud, you must validate it before
|
|
351
368
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
352
369
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -172,6 +172,7 @@ module Google
|
|
|
172
172
|
config.quota_project = @quota_project_id
|
|
173
173
|
config.endpoint = @health_check_service_stub.endpoint
|
|
174
174
|
config.universe_domain = @health_check_service_stub.universe_domain
|
|
175
|
+
config.bindings_override = @config.bindings_override
|
|
175
176
|
config.logger = @health_check_service_stub.logger if config.respond_to? :logger=
|
|
176
177
|
end
|
|
177
178
|
|
|
@@ -394,6 +395,13 @@ module Google
|
|
|
394
395
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
395
396
|
config_attr :quota_project, nil, ::String, nil
|
|
396
397
|
config_attr :universe_domain, nil, ::String, nil
|
|
398
|
+
|
|
399
|
+
# @private
|
|
400
|
+
# Overrides for http bindings for the RPCs of this service
|
|
401
|
+
# are only used when this service is used as mixin, and only
|
|
402
|
+
# by the host service.
|
|
403
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
404
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
397
405
|
config_attr :logger, :default, ::Logger, nil, :default
|
|
398
406
|
|
|
399
407
|
# @private
|
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
|
21
21
|
require "gapic/config/method"
|
|
22
22
|
|
|
23
23
|
require "google/cloud/vision_ai/v1/version"
|
|
24
|
+
require "google/cloud/vision_ai/v1/bindings_override"
|
|
24
25
|
|
|
25
26
|
require "google/cloud/vision_ai/v1/health_check_service/credentials"
|
|
26
27
|
require "google/cloud/vision_ai/v1/health_check_service/paths"
|
|
@@ -2133,8 +2133,6 @@ module Google
|
|
|
2133
2133
|
# @return [::String,nil]
|
|
2134
2134
|
# @!attribute [rw] credentials
|
|
2135
2135
|
# Credentials to send with calls. You may provide any of the following types:
|
|
2136
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
2137
|
-
# * (`Hash`) A service account key as a Hash
|
|
2138
2136
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
2139
2137
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
2140
2138
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -2143,7 +2141,26 @@ module Google
|
|
|
2143
2141
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
2144
2142
|
# * (`nil`) indicating no credentials
|
|
2145
2143
|
#
|
|
2146
|
-
# Warning:
|
|
2144
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
2145
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
2146
|
+
# Google APIs can compromise the security of your systems and data.
|
|
2147
|
+
#
|
|
2148
|
+
# @example
|
|
2149
|
+
#
|
|
2150
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
2151
|
+
# # on the appropriate credentials class for your environment.
|
|
2152
|
+
#
|
|
2153
|
+
# require "googleauth"
|
|
2154
|
+
#
|
|
2155
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
2156
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
2157
|
+
# )
|
|
2158
|
+
#
|
|
2159
|
+
# client = ::Google::Cloud::VisionAI::V1::LiveVideoAnalytics::Client.new do |config|
|
|
2160
|
+
# config.credentials = credentials
|
|
2161
|
+
# end
|
|
2162
|
+
#
|
|
2163
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
2147
2164
|
# external source for authentication to Google Cloud, you must validate it before
|
|
2148
2165
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
2149
2166
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -204,6 +204,7 @@ module Google
|
|
|
204
204
|
config.quota_project = @quota_project_id
|
|
205
205
|
config.endpoint = @live_video_analytics_stub.endpoint
|
|
206
206
|
config.universe_domain = @live_video_analytics_stub.universe_domain
|
|
207
|
+
config.bindings_override = @config.bindings_override
|
|
207
208
|
config.logger = @live_video_analytics_stub.logger if config.respond_to? :logger=
|
|
208
209
|
end
|
|
209
210
|
|
|
@@ -2072,6 +2073,13 @@ module Google
|
|
|
2072
2073
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
2073
2074
|
config_attr :quota_project, nil, ::String, nil
|
|
2074
2075
|
config_attr :universe_domain, nil, ::String, nil
|
|
2076
|
+
|
|
2077
|
+
# @private
|
|
2078
|
+
# Overrides for http bindings for the RPCs of this service
|
|
2079
|
+
# are only used when this service is used as mixin, and only
|
|
2080
|
+
# by the host service.
|
|
2081
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
2082
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
2075
2083
|
config_attr :logger, :default, ::Logger, nil, :default
|
|
2076
2084
|
|
|
2077
2085
|
# @private
|
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
|
21
21
|
require "gapic/config/method"
|
|
22
22
|
|
|
23
23
|
require "google/cloud/vision_ai/v1/version"
|
|
24
|
+
require "google/cloud/vision_ai/v1/bindings_override"
|
|
24
25
|
|
|
25
26
|
require "google/cloud/vision_ai/v1/live_video_analytics/credentials"
|
|
26
27
|
require "google/cloud/vision_ai/v1/live_video_analytics/paths"
|
|
@@ -22,6 +22,7 @@ require "google/cloud/vision_ai/v1/streaming_service/rest"
|
|
|
22
22
|
require "google/cloud/vision_ai/v1/streams_service/rest"
|
|
23
23
|
require "google/cloud/vision_ai/v1/warehouse/rest"
|
|
24
24
|
require "google/cloud/vision_ai/v1/health_check_service/rest"
|
|
25
|
+
require "google/cloud/vision_ai/v1/bindings_override"
|
|
25
26
|
require "google/cloud/vision_ai/v1/version"
|
|
26
27
|
|
|
27
28
|
module Google
|
|
@@ -755,8 +755,6 @@ module Google
|
|
|
755
755
|
# @return [::String,nil]
|
|
756
756
|
# @!attribute [rw] credentials
|
|
757
757
|
# Credentials to send with calls. You may provide any of the following types:
|
|
758
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
759
|
-
# * (`Hash`) A service account key as a Hash
|
|
760
758
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
761
759
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
762
760
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -765,7 +763,26 @@ module Google
|
|
|
765
763
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
766
764
|
# * (`nil`) indicating no credentials
|
|
767
765
|
#
|
|
768
|
-
# Warning:
|
|
766
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
767
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
768
|
+
# Google APIs can compromise the security of your systems and data.
|
|
769
|
+
#
|
|
770
|
+
# @example
|
|
771
|
+
#
|
|
772
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
773
|
+
# # on the appropriate credentials class for your environment.
|
|
774
|
+
#
|
|
775
|
+
# require "googleauth"
|
|
776
|
+
#
|
|
777
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
778
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
779
|
+
# )
|
|
780
|
+
#
|
|
781
|
+
# client = ::Google::Cloud::VisionAI::V1::StreamingService::Client.new do |config|
|
|
782
|
+
# config.credentials = credentials
|
|
783
|
+
# end
|
|
784
|
+
#
|
|
785
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
769
786
|
# external source for authentication to Google Cloud, you must validate it before
|
|
770
787
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
771
788
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -171,6 +171,7 @@ module Google
|
|
|
171
171
|
config.quota_project = @quota_project_id
|
|
172
172
|
config.endpoint = @streaming_service_stub.endpoint
|
|
173
173
|
config.universe_domain = @streaming_service_stub.universe_domain
|
|
174
|
+
config.bindings_override = @config.bindings_override
|
|
174
175
|
config.logger = @streaming_service_stub.logger if config.respond_to? :logger=
|
|
175
176
|
end
|
|
176
177
|
|
|
@@ -565,6 +566,13 @@ module Google
|
|
|
565
566
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
566
567
|
config_attr :quota_project, nil, ::String, nil
|
|
567
568
|
config_attr :universe_domain, nil, ::String, nil
|
|
569
|
+
|
|
570
|
+
# @private
|
|
571
|
+
# Overrides for http bindings for the RPCs of this service
|
|
572
|
+
# are only used when this service is used as mixin, and only
|
|
573
|
+
# by the host service.
|
|
574
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
575
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
568
576
|
config_attr :logger, :default, ::Logger, nil, :default
|
|
569
577
|
|
|
570
578
|
# @private
|
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
|
21
21
|
require "gapic/config/method"
|
|
22
22
|
|
|
23
23
|
require "google/cloud/vision_ai/v1/version"
|
|
24
|
+
require "google/cloud/vision_ai/v1/bindings_override"
|
|
24
25
|
|
|
25
26
|
require "google/cloud/vision_ai/v1/streaming_service/credentials"
|
|
26
27
|
require "google/cloud/vision_ai/v1/streaming_service/paths"
|
|
@@ -2653,8 +2653,6 @@ module Google
|
|
|
2653
2653
|
# @return [::String,nil]
|
|
2654
2654
|
# @!attribute [rw] credentials
|
|
2655
2655
|
# Credentials to send with calls. You may provide any of the following types:
|
|
2656
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
2657
|
-
# * (`Hash`) A service account key as a Hash
|
|
2658
2656
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
2659
2657
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
2660
2658
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -2663,7 +2661,26 @@ module Google
|
|
|
2663
2661
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
2664
2662
|
# * (`nil`) indicating no credentials
|
|
2665
2663
|
#
|
|
2666
|
-
# Warning:
|
|
2664
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
2665
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
2666
|
+
# Google APIs can compromise the security of your systems and data.
|
|
2667
|
+
#
|
|
2668
|
+
# @example
|
|
2669
|
+
#
|
|
2670
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
2671
|
+
# # on the appropriate credentials class for your environment.
|
|
2672
|
+
#
|
|
2673
|
+
# require "googleauth"
|
|
2674
|
+
#
|
|
2675
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
2676
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
2677
|
+
# )
|
|
2678
|
+
#
|
|
2679
|
+
# client = ::Google::Cloud::VisionAI::V1::StreamsService::Client.new do |config|
|
|
2680
|
+
# config.credentials = credentials
|
|
2681
|
+
# end
|
|
2682
|
+
#
|
|
2683
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
2667
2684
|
# external source for authentication to Google Cloud, you must validate it before
|
|
2668
2685
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
2669
2686
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -181,6 +181,7 @@ module Google
|
|
|
181
181
|
config.quota_project = @quota_project_id
|
|
182
182
|
config.endpoint = @streams_service_stub.endpoint
|
|
183
183
|
config.universe_domain = @streams_service_stub.universe_domain
|
|
184
|
+
config.bindings_override = @config.bindings_override
|
|
184
185
|
config.logger = @streams_service_stub.logger if config.respond_to? :logger=
|
|
185
186
|
end
|
|
186
187
|
|
|
@@ -2557,6 +2558,13 @@ module Google
|
|
|
2557
2558
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
2558
2559
|
config_attr :quota_project, nil, ::String, nil
|
|
2559
2560
|
config_attr :universe_domain, nil, ::String, nil
|
|
2561
|
+
|
|
2562
|
+
# @private
|
|
2563
|
+
# Overrides for http bindings for the RPCs of this service
|
|
2564
|
+
# are only used when this service is used as mixin, and only
|
|
2565
|
+
# by the host service.
|
|
2566
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
2567
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
2560
2568
|
config_attr :logger, :default, ::Logger, nil, :default
|
|
2561
2569
|
|
|
2562
2570
|
# @private
|
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
|
21
21
|
require "gapic/config/method"
|
|
22
22
|
|
|
23
23
|
require "google/cloud/vision_ai/v1/version"
|
|
24
|
+
require "google/cloud/vision_ai/v1/bindings_override"
|
|
24
25
|
|
|
25
26
|
require "google/cloud/vision_ai/v1/streams_service/credentials"
|
|
26
27
|
require "google/cloud/vision_ai/v1/streams_service/paths"
|
|
@@ -36,7 +36,7 @@ module Google
|
|
|
36
36
|
API_VERSION = ""
|
|
37
37
|
|
|
38
38
|
# @private
|
|
39
|
-
DEFAULT_ENDPOINT_TEMPLATE = "visionai.$UNIVERSE_DOMAIN$"
|
|
39
|
+
DEFAULT_ENDPOINT_TEMPLATE = "warehouse-visionai.$UNIVERSE_DOMAIN$"
|
|
40
40
|
|
|
41
41
|
include Paths
|
|
42
42
|
|
|
@@ -4820,7 +4820,7 @@ module Google
|
|
|
4820
4820
|
# If negative, INVALID_ARGUMENT error will be returned.
|
|
4821
4821
|
# If unspecified or 0, API will pick a default size, which is 10.
|
|
4822
4822
|
# If the requested page size is larger than the maximum size, API will pick
|
|
4823
|
-
# the maximum size, which is
|
|
4823
|
+
# the maximum size, which is 200.
|
|
4824
4824
|
# @param page_token [::String]
|
|
4825
4825
|
# The continuation token to fetch the next page. If empty, it means it is
|
|
4826
4826
|
# fetching the first page.
|
|
@@ -6377,8 +6377,6 @@ module Google
|
|
|
6377
6377
|
# @return [::String,nil]
|
|
6378
6378
|
# @!attribute [rw] credentials
|
|
6379
6379
|
# Credentials to send with calls. You may provide any of the following types:
|
|
6380
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
6381
|
-
# * (`Hash`) A service account key as a Hash
|
|
6382
6380
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
6383
6381
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
6384
6382
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -6387,7 +6385,26 @@ module Google
|
|
|
6387
6385
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
6388
6386
|
# * (`nil`) indicating no credentials
|
|
6389
6387
|
#
|
|
6390
|
-
# Warning:
|
|
6388
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
6389
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
6390
|
+
# Google APIs can compromise the security of your systems and data.
|
|
6391
|
+
#
|
|
6392
|
+
# @example
|
|
6393
|
+
#
|
|
6394
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
6395
|
+
# # on the appropriate credentials class for your environment.
|
|
6396
|
+
#
|
|
6397
|
+
# require "googleauth"
|
|
6398
|
+
#
|
|
6399
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
6400
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
6401
|
+
# )
|
|
6402
|
+
#
|
|
6403
|
+
# client = ::Google::Cloud::VisionAI::V1::Warehouse::Client.new do |config|
|
|
6404
|
+
# config.credentials = credentials
|
|
6405
|
+
# end
|
|
6406
|
+
#
|
|
6407
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
6391
6408
|
# external source for authentication to Google Cloud, you must validate it before
|
|
6392
6409
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
6393
6410
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -6443,7 +6460,7 @@ module Google
|
|
|
6443
6460
|
|
|
6444
6461
|
# @private
|
|
6445
6462
|
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
6446
|
-
DEFAULT_ENDPOINT = "visionai.googleapis.com"
|
|
6463
|
+
DEFAULT_ENDPOINT = "warehouse-visionai.googleapis.com"
|
|
6447
6464
|
|
|
6448
6465
|
config_attr :endpoint, nil, ::String, nil
|
|
6449
6466
|
config_attr :credentials, nil do |value|
|