google-cloud-discovery_engine 2.1.0 → 2.2.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/AUTHENTICATION.md +3 -3
- data/README.md +1 -1
- data/lib/google/cloud/discovery_engine/version.rb +1 -1
- data/lib/google/cloud/discovery_engine.rb +210 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb4ceb96719fd35e63d93d810ea1d8d3af43dcec653873f08b9272ac56ebe104
|
4
|
+
data.tar.gz: fc1464e350098d8b41d9fc7da946c8851efa98919633999cd534b3c0b02a7180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb654c8efebba561f7e03cfe0c868a725b59c58a08e12dd8abc236d3696b6e36cc678f3e87d89b0309e42f925d2a582b972623eb6d81304be65fb7626fb6c5af
|
7
|
+
data.tar.gz: 5a2b7b61709fe7a597374db131a0b18e0b4c91ada91c23300e5d364cc3c181aae4f762eba0c08e0936f832908b92e5507872c9734b69c7fb55e9b091d418a2fc
|
data/AUTHENTICATION.md
CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
|
|
56
56
|
```ruby
|
57
57
|
require "google/cloud/discovery_engine"
|
58
58
|
|
59
|
-
client = Google::Cloud::DiscoveryEngine.
|
59
|
+
client = Google::Cloud::DiscoveryEngine.cmek_config_service do |config|
|
60
60
|
config.credentials = "path/to/credentialfile.json"
|
61
61
|
end
|
62
62
|
```
|
@@ -70,7 +70,7 @@ Google::Cloud::DiscoveryEngine.configure do |config|
|
|
70
70
|
config.credentials = "path/to/credentialfile.json"
|
71
71
|
end
|
72
72
|
|
73
|
-
client = Google::Cloud::DiscoveryEngine.
|
73
|
+
client = Google::Cloud::DiscoveryEngine.cmek_config_service
|
74
74
|
```
|
75
75
|
|
76
76
|
### Environment Variables
|
@@ -100,7 +100,7 @@ require "google/cloud/discovery_engine"
|
|
100
100
|
|
101
101
|
ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
|
102
102
|
|
103
|
-
client = Google::Cloud::DiscoveryEngine.
|
103
|
+
client = Google::Cloud::DiscoveryEngine.cmek_config_service
|
104
104
|
```
|
105
105
|
|
106
106
|
### Local ADC file
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ Discovery Engine API.
|
|
6
6
|
Actual client classes for the various versions of this API are defined in
|
7
7
|
_versioned_ client gems, with names of the form `google-cloud-discovery_engine-v*`.
|
8
8
|
The gem `google-cloud-discovery_engine` is the main client library that brings the
|
9
|
-
|
9
|
+
versioned gems in as dependencies, and provides high-level methods for
|
10
10
|
constructing clients. More information on versioned clients can be found below
|
11
11
|
in the section titled *Which client should I use?*.
|
12
12
|
|
@@ -45,6 +45,76 @@ end
|
|
45
45
|
module Google
|
46
46
|
module Cloud
|
47
47
|
module DiscoveryEngine
|
48
|
+
##
|
49
|
+
# Create a new client object for CmekConfigService.
|
50
|
+
#
|
51
|
+
# By default, this returns an instance of
|
52
|
+
# [Google::Cloud::DiscoveryEngine::V1::CmekConfigService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CmekConfigService-Client)
|
53
|
+
# for a gRPC client for version V1 of the API.
|
54
|
+
# However, you can specify a different API version by passing it in the
|
55
|
+
# `version` parameter. If the CmekConfigService service is
|
56
|
+
# supported by that API version, and the corresponding gem is available, the
|
57
|
+
# appropriate versioned client will be returned.
|
58
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
59
|
+
# the `transport` parameter.
|
60
|
+
#
|
61
|
+
# Raises an exception if the currently installed versioned client gem for the
|
62
|
+
# given API version does not support the given transport of the CmekConfigService service.
|
63
|
+
# You can determine whether the method will succeed by calling
|
64
|
+
# {Google::Cloud::DiscoveryEngine.cmek_config_service_available?}.
|
65
|
+
#
|
66
|
+
# ## About CmekConfigService
|
67
|
+
#
|
68
|
+
# Service for managing CMEK related tasks
|
69
|
+
#
|
70
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
71
|
+
# Defaults to `:v1`.
|
72
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
73
|
+
# @return [::Object] A client object for the specified version.
|
74
|
+
#
|
75
|
+
def self.cmek_config_service version: :v1, transport: :grpc, &block
|
76
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
77
|
+
|
78
|
+
package_name = Google::Cloud::DiscoveryEngine
|
79
|
+
.constants
|
80
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
81
|
+
.first
|
82
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:CmekConfigService)
|
83
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
84
|
+
service_module.const_get(:Client).new(&block)
|
85
|
+
end
|
86
|
+
|
87
|
+
##
|
88
|
+
# Determines whether the CmekConfigService service is supported by the current client.
|
89
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.cmek_config_service}.
|
90
|
+
# If false, that method will raise an exception. This could happen if the given
|
91
|
+
# API version does not exist or does not support the CmekConfigService service,
|
92
|
+
# or if the versioned client gem needs an update to support the CmekConfigService service.
|
93
|
+
#
|
94
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
95
|
+
# Defaults to `:v1`.
|
96
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
97
|
+
# @return [boolean] Whether the service is available.
|
98
|
+
#
|
99
|
+
def self.cmek_config_service_available? version: :v1, transport: :grpc
|
100
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
101
|
+
package_name = Google::Cloud::DiscoveryEngine
|
102
|
+
.constants
|
103
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
104
|
+
.first
|
105
|
+
return false unless package_name
|
106
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get package_name
|
107
|
+
return false unless service_module.const_defined? :CmekConfigService
|
108
|
+
service_module = service_module.const_get :CmekConfigService
|
109
|
+
if transport == :rest
|
110
|
+
return false unless service_module.const_defined? :Rest
|
111
|
+
service_module = service_module.const_get :Rest
|
112
|
+
end
|
113
|
+
service_module.const_defined? :Client
|
114
|
+
rescue ::LoadError
|
115
|
+
false
|
116
|
+
end
|
117
|
+
|
48
118
|
##
|
49
119
|
# Create a new client object for CompletionService.
|
50
120
|
#
|
@@ -611,6 +681,76 @@ module Google
|
|
611
681
|
false
|
612
682
|
end
|
613
683
|
|
684
|
+
##
|
685
|
+
# Create a new client object for IdentityMappingStoreService.
|
686
|
+
#
|
687
|
+
# By default, this returns an instance of
|
688
|
+
# [Google::Cloud::DiscoveryEngine::V1::IdentityMappingStoreService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-IdentityMappingStoreService-Client)
|
689
|
+
# for a gRPC client for version V1 of the API.
|
690
|
+
# However, you can specify a different API version by passing it in the
|
691
|
+
# `version` parameter. If the IdentityMappingStoreService service is
|
692
|
+
# supported by that API version, and the corresponding gem is available, the
|
693
|
+
# appropriate versioned client will be returned.
|
694
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
695
|
+
# the `transport` parameter.
|
696
|
+
#
|
697
|
+
# Raises an exception if the currently installed versioned client gem for the
|
698
|
+
# given API version does not support the given transport of the IdentityMappingStoreService service.
|
699
|
+
# You can determine whether the method will succeed by calling
|
700
|
+
# {Google::Cloud::DiscoveryEngine.identity_mapping_store_service_available?}.
|
701
|
+
#
|
702
|
+
# ## About IdentityMappingStoreService
|
703
|
+
#
|
704
|
+
# Service for managing Identity Mapping Stores.
|
705
|
+
#
|
706
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
707
|
+
# Defaults to `:v1`.
|
708
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
709
|
+
# @return [::Object] A client object for the specified version.
|
710
|
+
#
|
711
|
+
def self.identity_mapping_store_service version: :v1, transport: :grpc, &block
|
712
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
713
|
+
|
714
|
+
package_name = Google::Cloud::DiscoveryEngine
|
715
|
+
.constants
|
716
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
717
|
+
.first
|
718
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:IdentityMappingStoreService)
|
719
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
720
|
+
service_module.const_get(:Client).new(&block)
|
721
|
+
end
|
722
|
+
|
723
|
+
##
|
724
|
+
# Determines whether the IdentityMappingStoreService service is supported by the current client.
|
725
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.identity_mapping_store_service}.
|
726
|
+
# If false, that method will raise an exception. This could happen if the given
|
727
|
+
# API version does not exist or does not support the IdentityMappingStoreService service,
|
728
|
+
# or if the versioned client gem needs an update to support the IdentityMappingStoreService service.
|
729
|
+
#
|
730
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
731
|
+
# Defaults to `:v1`.
|
732
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
733
|
+
# @return [boolean] Whether the service is available.
|
734
|
+
#
|
735
|
+
def self.identity_mapping_store_service_available? version: :v1, transport: :grpc
|
736
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
737
|
+
package_name = Google::Cloud::DiscoveryEngine
|
738
|
+
.constants
|
739
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
740
|
+
.first
|
741
|
+
return false unless package_name
|
742
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get package_name
|
743
|
+
return false unless service_module.const_defined? :IdentityMappingStoreService
|
744
|
+
service_module = service_module.const_get :IdentityMappingStoreService
|
745
|
+
if transport == :rest
|
746
|
+
return false unless service_module.const_defined? :Rest
|
747
|
+
service_module = service_module.const_get :Rest
|
748
|
+
end
|
749
|
+
service_module.const_defined? :Client
|
750
|
+
rescue ::LoadError
|
751
|
+
false
|
752
|
+
end
|
753
|
+
|
614
754
|
##
|
615
755
|
# Create a new client object for ProjectService.
|
616
756
|
#
|
@@ -1173,6 +1313,76 @@ module Google
|
|
1173
1313
|
false
|
1174
1314
|
end
|
1175
1315
|
|
1316
|
+
##
|
1317
|
+
# Create a new client object for UserLicenseService.
|
1318
|
+
#
|
1319
|
+
# By default, this returns an instance of
|
1320
|
+
# [Google::Cloud::DiscoveryEngine::V1::UserLicenseService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserLicenseService-Client)
|
1321
|
+
# for a gRPC client for version V1 of the API.
|
1322
|
+
# However, you can specify a different API version by passing it in the
|
1323
|
+
# `version` parameter. If the UserLicenseService service is
|
1324
|
+
# supported by that API version, and the corresponding gem is available, the
|
1325
|
+
# appropriate versioned client will be returned.
|
1326
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
1327
|
+
# the `transport` parameter.
|
1328
|
+
#
|
1329
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1330
|
+
# given API version does not support the given transport of the UserLicenseService service.
|
1331
|
+
# You can determine whether the method will succeed by calling
|
1332
|
+
# {Google::Cloud::DiscoveryEngine.user_license_service_available?}.
|
1333
|
+
#
|
1334
|
+
# ## About UserLicenseService
|
1335
|
+
#
|
1336
|
+
# Service for managing User Licenses.
|
1337
|
+
#
|
1338
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1339
|
+
# Defaults to `:v1`.
|
1340
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1341
|
+
# @return [::Object] A client object for the specified version.
|
1342
|
+
#
|
1343
|
+
def self.user_license_service version: :v1, transport: :grpc, &block
|
1344
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
1345
|
+
|
1346
|
+
package_name = Google::Cloud::DiscoveryEngine
|
1347
|
+
.constants
|
1348
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1349
|
+
.first
|
1350
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:UserLicenseService)
|
1351
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
1352
|
+
service_module.const_get(:Client).new(&block)
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
##
|
1356
|
+
# Determines whether the UserLicenseService service is supported by the current client.
|
1357
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.user_license_service}.
|
1358
|
+
# If false, that method will raise an exception. This could happen if the given
|
1359
|
+
# API version does not exist or does not support the UserLicenseService service,
|
1360
|
+
# or if the versioned client gem needs an update to support the UserLicenseService service.
|
1361
|
+
#
|
1362
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1363
|
+
# Defaults to `:v1`.
|
1364
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1365
|
+
# @return [boolean] Whether the service is available.
|
1366
|
+
#
|
1367
|
+
def self.user_license_service_available? version: :v1, transport: :grpc
|
1368
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
1369
|
+
package_name = Google::Cloud::DiscoveryEngine
|
1370
|
+
.constants
|
1371
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1372
|
+
.first
|
1373
|
+
return false unless package_name
|
1374
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get package_name
|
1375
|
+
return false unless service_module.const_defined? :UserLicenseService
|
1376
|
+
service_module = service_module.const_get :UserLicenseService
|
1377
|
+
if transport == :rest
|
1378
|
+
return false unless service_module.const_defined? :Rest
|
1379
|
+
service_module = service_module.const_get :Rest
|
1380
|
+
end
|
1381
|
+
service_module.const_defined? :Client
|
1382
|
+
rescue ::LoadError
|
1383
|
+
false
|
1384
|
+
end
|
1385
|
+
|
1176
1386
|
##
|
1177
1387
|
# Configure the google-cloud-discovery_engine library.
|
1178
1388
|
#
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-discovery_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-cloud-core
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
rubygems_version: 3.6.
|
71
|
+
rubygems_version: 3.6.9
|
72
72
|
specification_version: 4
|
73
73
|
summary: Discovery Engine API.
|
74
74
|
test_files: []
|