google-cloud-discovery_engine 2.5.1 → 2.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bc8f59fcd47b43af77e6d54dd6418688cd4717511b8f9ec009fe5153e1a7ac3
4
- data.tar.gz: a861f2339849fe5b713c82c447cab53871e076b3e8f8ac065fb6c076b246a7de
3
+ metadata.gz: c1dbcb7486985ef9ae3b766d376f72de89397295b70fe9f29b0f9dfb0f078e85
4
+ data.tar.gz: 679c363c10690e0444ca075f1c658e380d9a088a62894402a2d8f7ea1b232462
5
5
  SHA512:
6
- metadata.gz: 27baf1fbec6709f7fb3503c1f8e48c95a02c0695c6f9e4083099fd6d77c059f400fb297d8ef46e09cb21037a647057e08b34994c42d881acdc92b459135e0dab
7
- data.tar.gz: 640ca129a6c2b67db6cd2739162afa11627bca6c5d340788e5a589d9a9e077b1dd98223968d9f07cb9c0afe5d0e4c441bb934d12a7a3ea8ca795eb179eabbe25
6
+ metadata.gz: e39651d3231b0c89e412389e2b5a182d574001397bb88dac9079b80e44bfaf134e2311f05e3f986907c691c0e645fd94d3cf4380c64f38a14c4afc840bb9c475
7
+ data.tar.gz: cdf5735b4eeedcd90e4941baff83935a40ce03f01274527bd0951b8d1a65009410098c8f308a8e459d3d1a17f2ccf94d401fb19d037a71483499474b05843f3e
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.search_service do |config|
59
+ client = Google::Cloud::DiscoveryEngine.acl_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.search_service
73
+ client = Google::Cloud::DiscoveryEngine.acl_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.search_service
103
+ client = Google::Cloud::DiscoveryEngine.acl_config_service
104
104
  ```
105
105
 
106
106
  ### Local ADC file
data/README.md CHANGED
@@ -36,9 +36,9 @@ In order to use this library, you first need to go through the following steps:
36
36
  ```ruby
37
37
  require "google/cloud/discovery_engine"
38
38
 
39
- client = Google::Cloud::DiscoveryEngine.search_service
40
- request = ::Google::Cloud::DiscoveryEngine::V1::SearchRequest.new # (request fields as keyword arguments...)
41
- response = client.search request
39
+ client = Google::Cloud::DiscoveryEngine.acl_config_service
40
+ request = ::Google::Cloud::DiscoveryEngine::V1::UpdateAclConfigRequest.new # (request fields as keyword arguments...)
41
+ response = client.update_acl_config request
42
42
  ```
43
43
 
44
44
  ## Debug Logging
@@ -75,12 +75,10 @@ working, try updating the versioned clients in your bundle or installed gems:
75
75
 
76
76
  This library is supported on Ruby 3.2+.
77
77
 
78
- Google provides official support for Ruby versions that are actively supported
79
- by Ruby Core—that is, Ruby versions that are either in normal maintenance or
80
- in security maintenance, and not end of life. Older versions of Ruby _may_
81
- still work, but are unsupported and not recommended. See
82
- https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
83
- support schedule.
78
+ Google provides official support for Ruby versions as described in the
79
+ [Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
80
+ policy. Older versions of Ruby _may_ still work, but are unsupported and not
81
+ recommended.
84
82
 
85
83
  ## Which client should I use?
86
84
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
- VERSION = "2.5.1"
23
+ VERSION = "2.6.0"
24
24
  end
25
25
  end
26
26
  end
@@ -45,6 +45,146 @@ end
45
45
  module Google
46
46
  module Cloud
47
47
  module DiscoveryEngine
48
+ ##
49
+ # Create a new client object for AclConfigService.
50
+ #
51
+ # By default, this returns an instance of
52
+ # [Google::Cloud::DiscoveryEngine::V1::AclConfigService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AclConfigService-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 AclConfigService 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 AclConfigService service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::DiscoveryEngine.acl_config_service_available?}.
65
+ #
66
+ # ## About AclConfigService
67
+ #
68
+ # Service for managing Acl Configuration.
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.acl_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(:AclConfigService)
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 AclConfigService service is supported by the current client.
89
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.acl_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 AclConfigService service,
92
+ # or if the versioned client gem needs an update to support the AclConfigService 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.acl_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? :AclConfigService
108
+ service_module = service_module.const_get :AclConfigService
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
+
118
+ ##
119
+ # Create a new client object for GroundedGenerationService.
120
+ #
121
+ # By default, this returns an instance of
122
+ # [Google::Cloud::DiscoveryEngine::V1::GroundedGenerationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-GroundedGenerationService-Client)
123
+ # for a gRPC client for version V1 of the API.
124
+ # However, you can specify a different API version by passing it in the
125
+ # `version` parameter. If the GroundedGenerationService service is
126
+ # supported by that API version, and the corresponding gem is available, the
127
+ # appropriate versioned client will be returned.
128
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
129
+ # the `transport` parameter.
130
+ #
131
+ # Raises an exception if the currently installed versioned client gem for the
132
+ # given API version does not support the given transport of the GroundedGenerationService service.
133
+ # You can determine whether the method will succeed by calling
134
+ # {Google::Cloud::DiscoveryEngine.grounded_generation_service_available?}.
135
+ #
136
+ # ## About GroundedGenerationService
137
+ #
138
+ # Service for grounded generation.
139
+ #
140
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
141
+ # Defaults to `:v1`.
142
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
143
+ # @return [::Object] A client object for the specified version.
144
+ #
145
+ def self.grounded_generation_service version: :v1, transport: :grpc, &block
146
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
147
+
148
+ package_name = Google::Cloud::DiscoveryEngine
149
+ .constants
150
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
151
+ .first
152
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:GroundedGenerationService)
153
+ service_module = service_module.const_get(:Rest) if transport == :rest
154
+ service_module.const_get(:Client).new(&block)
155
+ end
156
+
157
+ ##
158
+ # Determines whether the GroundedGenerationService service is supported by the current client.
159
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.grounded_generation_service}.
160
+ # If false, that method will raise an exception. This could happen if the given
161
+ # API version does not exist or does not support the GroundedGenerationService service,
162
+ # or if the versioned client gem needs an update to support the GroundedGenerationService service.
163
+ #
164
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
165
+ # Defaults to `:v1`.
166
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
167
+ # @return [boolean] Whether the service is available.
168
+ #
169
+ def self.grounded_generation_service_available? version: :v1, transport: :grpc
170
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
171
+ package_name = Google::Cloud::DiscoveryEngine
172
+ .constants
173
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
174
+ .first
175
+ return false unless package_name
176
+ service_module = Google::Cloud::DiscoveryEngine.const_get package_name
177
+ return false unless service_module.const_defined? :GroundedGenerationService
178
+ service_module = service_module.const_get :GroundedGenerationService
179
+ if transport == :rest
180
+ return false unless service_module.const_defined? :Rest
181
+ service_module = service_module.const_get :Rest
182
+ end
183
+ service_module.const_defined? :Client
184
+ rescue ::LoadError
185
+ false
186
+ end
187
+
48
188
  ##
49
189
  # Create a new client object for SearchService.
50
190
  #
@@ -255,6 +395,77 @@ module Google
255
395
  false
256
396
  end
257
397
 
398
+ ##
399
+ # Create a new client object for CollectionService.
400
+ #
401
+ # By default, this returns an instance of
402
+ # [Google::Cloud::DiscoveryEngine::V1::CollectionService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CollectionService-Client)
403
+ # for a gRPC client for version V1 of the API.
404
+ # However, you can specify a different API version by passing it in the
405
+ # `version` parameter. If the CollectionService service is
406
+ # supported by that API version, and the corresponding gem is available, the
407
+ # appropriate versioned client will be returned.
408
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
409
+ # the `transport` parameter.
410
+ #
411
+ # Raises an exception if the currently installed versioned client gem for the
412
+ # given API version does not support the given transport of the CollectionService service.
413
+ # You can determine whether the method will succeed by calling
414
+ # {Google::Cloud::DiscoveryEngine.collection_service_available?}.
415
+ #
416
+ # ## About CollectionService
417
+ #
418
+ # Service for managing
419
+ # Collections.
420
+ #
421
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
422
+ # Defaults to `:v1`.
423
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
424
+ # @return [::Object] A client object for the specified version.
425
+ #
426
+ def self.collection_service version: :v1, transport: :grpc, &block
427
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
428
+
429
+ package_name = Google::Cloud::DiscoveryEngine
430
+ .constants
431
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
432
+ .first
433
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:CollectionService)
434
+ service_module = service_module.const_get(:Rest) if transport == :rest
435
+ service_module.const_get(:Client).new(&block)
436
+ end
437
+
438
+ ##
439
+ # Determines whether the CollectionService service is supported by the current client.
440
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.collection_service}.
441
+ # If false, that method will raise an exception. This could happen if the given
442
+ # API version does not exist or does not support the CollectionService service,
443
+ # or if the versioned client gem needs an update to support the CollectionService service.
444
+ #
445
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
446
+ # Defaults to `:v1`.
447
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
448
+ # @return [boolean] Whether the service is available.
449
+ #
450
+ def self.collection_service_available? version: :v1, transport: :grpc
451
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
452
+ package_name = Google::Cloud::DiscoveryEngine
453
+ .constants
454
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
455
+ .first
456
+ return false unless package_name
457
+ service_module = Google::Cloud::DiscoveryEngine.const_get package_name
458
+ return false unless service_module.const_defined? :CollectionService
459
+ service_module = service_module.const_get :CollectionService
460
+ if transport == :rest
461
+ return false unless service_module.const_defined? :Rest
462
+ service_module = service_module.const_get :Rest
463
+ end
464
+ service_module.const_defined? :Client
465
+ rescue ::LoadError
466
+ false
467
+ end
468
+
258
469
  ##
259
470
  # Create a new client object for CompletionService.
260
471
  #
@@ -468,6 +679,76 @@ module Google
468
679
  false
469
680
  end
470
681
 
682
+ ##
683
+ # Create a new client object for DataConnectorService.
684
+ #
685
+ # By default, this returns an instance of
686
+ # [Google::Cloud::DiscoveryEngine::V1::DataConnectorService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataConnectorService-Client)
687
+ # for a gRPC client for version V1 of the API.
688
+ # However, you can specify a different API version by passing it in the
689
+ # `version` parameter. If the DataConnectorService service is
690
+ # supported by that API version, and the corresponding gem is available, the
691
+ # appropriate versioned client will be returned.
692
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
693
+ # the `transport` parameter.
694
+ #
695
+ # Raises an exception if the currently installed versioned client gem for the
696
+ # given API version does not support the given transport of the DataConnectorService service.
697
+ # You can determine whether the method will succeed by calling
698
+ # {Google::Cloud::DiscoveryEngine.data_connector_service_available?}.
699
+ #
700
+ # ## About DataConnectorService
701
+ #
702
+ # Service for data connector management.
703
+ #
704
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
705
+ # Defaults to `:v1`.
706
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
707
+ # @return [::Object] A client object for the specified version.
708
+ #
709
+ def self.data_connector_service version: :v1, transport: :grpc, &block
710
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
711
+
712
+ package_name = Google::Cloud::DiscoveryEngine
713
+ .constants
714
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
715
+ .first
716
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:DataConnectorService)
717
+ service_module = service_module.const_get(:Rest) if transport == :rest
718
+ service_module.const_get(:Client).new(&block)
719
+ end
720
+
721
+ ##
722
+ # Determines whether the DataConnectorService service is supported by the current client.
723
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.data_connector_service}.
724
+ # If false, that method will raise an exception. This could happen if the given
725
+ # API version does not exist or does not support the DataConnectorService service,
726
+ # or if the versioned client gem needs an update to support the DataConnectorService service.
727
+ #
728
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
729
+ # Defaults to `:v1`.
730
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
731
+ # @return [boolean] Whether the service is available.
732
+ #
733
+ def self.data_connector_service_available? version: :v1, transport: :grpc
734
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
735
+ package_name = Google::Cloud::DiscoveryEngine
736
+ .constants
737
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
738
+ .first
739
+ return false unless package_name
740
+ service_module = Google::Cloud::DiscoveryEngine.const_get package_name
741
+ return false unless service_module.const_defined? :DataConnectorService
742
+ service_module = service_module.const_get :DataConnectorService
743
+ if transport == :rest
744
+ return false unless service_module.const_defined? :Rest
745
+ service_module = service_module.const_get :Rest
746
+ end
747
+ service_module.const_defined? :Client
748
+ rescue ::LoadError
749
+ false
750
+ end
751
+
471
752
  ##
472
753
  # Create a new client object for DataStoreService.
473
754
  #
@@ -682,57 +963,57 @@ module Google
682
963
  end
683
964
 
684
965
  ##
685
- # Create a new client object for GroundedGenerationService.
966
+ # Create a new client object for IdentityMappingStoreService.
686
967
  #
687
968
  # By default, this returns an instance of
688
- # [Google::Cloud::DiscoveryEngine::V1::GroundedGenerationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-GroundedGenerationService-Client)
969
+ # [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
970
  # for a gRPC client for version V1 of the API.
690
971
  # However, you can specify a different API version by passing it in the
691
- # `version` parameter. If the GroundedGenerationService service is
972
+ # `version` parameter. If the IdentityMappingStoreService service is
692
973
  # supported by that API version, and the corresponding gem is available, the
693
974
  # appropriate versioned client will be returned.
694
975
  # You can also specify a different transport by passing `:rest` or `:grpc` in
695
976
  # the `transport` parameter.
696
977
  #
697
978
  # Raises an exception if the currently installed versioned client gem for the
698
- # given API version does not support the given transport of the GroundedGenerationService service.
979
+ # given API version does not support the given transport of the IdentityMappingStoreService service.
699
980
  # You can determine whether the method will succeed by calling
700
- # {Google::Cloud::DiscoveryEngine.grounded_generation_service_available?}.
981
+ # {Google::Cloud::DiscoveryEngine.identity_mapping_store_service_available?}.
701
982
  #
702
- # ## About GroundedGenerationService
983
+ # ## About IdentityMappingStoreService
703
984
  #
704
- # Service for grounded generation.
985
+ # Service for managing Identity Mapping Stores.
705
986
  #
706
987
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
707
988
  # Defaults to `:v1`.
708
989
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
709
990
  # @return [::Object] A client object for the specified version.
710
991
  #
711
- def self.grounded_generation_service version: :v1, transport: :grpc, &block
992
+ def self.identity_mapping_store_service version: :v1, transport: :grpc, &block
712
993
  require "google/cloud/discovery_engine/#{version.to_s.downcase}"
713
994
 
714
995
  package_name = Google::Cloud::DiscoveryEngine
715
996
  .constants
716
997
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
717
998
  .first
718
- service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:GroundedGenerationService)
999
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:IdentityMappingStoreService)
719
1000
  service_module = service_module.const_get(:Rest) if transport == :rest
720
1001
  service_module.const_get(:Client).new(&block)
721
1002
  end
722
1003
 
723
1004
  ##
724
- # Determines whether the GroundedGenerationService service is supported by the current client.
725
- # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.grounded_generation_service}.
1005
+ # Determines whether the IdentityMappingStoreService service is supported by the current client.
1006
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.identity_mapping_store_service}.
726
1007
  # 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 GroundedGenerationService service,
728
- # or if the versioned client gem needs an update to support the GroundedGenerationService service.
1008
+ # API version does not exist or does not support the IdentityMappingStoreService service,
1009
+ # or if the versioned client gem needs an update to support the IdentityMappingStoreService service.
729
1010
  #
730
1011
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
731
1012
  # Defaults to `:v1`.
732
1013
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
733
1014
  # @return [boolean] Whether the service is available.
734
1015
  #
735
- def self.grounded_generation_service_available? version: :v1, transport: :grpc
1016
+ def self.identity_mapping_store_service_available? version: :v1, transport: :grpc
736
1017
  require "google/cloud/discovery_engine/#{version.to_s.downcase}"
737
1018
  package_name = Google::Cloud::DiscoveryEngine
738
1019
  .constants
@@ -740,8 +1021,8 @@ module Google
740
1021
  .first
741
1022
  return false unless package_name
742
1023
  service_module = Google::Cloud::DiscoveryEngine.const_get package_name
743
- return false unless service_module.const_defined? :GroundedGenerationService
744
- service_module = service_module.const_get :GroundedGenerationService
1024
+ return false unless service_module.const_defined? :IdentityMappingStoreService
1025
+ service_module = service_module.const_get :IdentityMappingStoreService
745
1026
  if transport == :rest
746
1027
  return false unless service_module.const_defined? :Rest
747
1028
  service_module = service_module.const_get :Rest
@@ -752,57 +1033,57 @@ module Google
752
1033
  end
753
1034
 
754
1035
  ##
755
- # Create a new client object for IdentityMappingStoreService.
1036
+ # Create a new client object for LicenseConfigService.
756
1037
  #
757
1038
  # By default, this returns an instance of
758
- # [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)
1039
+ # [Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-LicenseConfigService-Client)
759
1040
  # for a gRPC client for version V1 of the API.
760
1041
  # However, you can specify a different API version by passing it in the
761
- # `version` parameter. If the IdentityMappingStoreService service is
1042
+ # `version` parameter. If the LicenseConfigService service is
762
1043
  # supported by that API version, and the corresponding gem is available, the
763
1044
  # appropriate versioned client will be returned.
764
1045
  # You can also specify a different transport by passing `:rest` or `:grpc` in
765
1046
  # the `transport` parameter.
766
1047
  #
767
1048
  # Raises an exception if the currently installed versioned client gem for the
768
- # given API version does not support the given transport of the IdentityMappingStoreService service.
1049
+ # given API version does not support the given transport of the LicenseConfigService service.
769
1050
  # You can determine whether the method will succeed by calling
770
- # {Google::Cloud::DiscoveryEngine.identity_mapping_store_service_available?}.
1051
+ # {Google::Cloud::DiscoveryEngine.license_config_service_available?}.
771
1052
  #
772
- # ## About IdentityMappingStoreService
1053
+ # ## About LicenseConfigService
773
1054
  #
774
- # Service for managing Identity Mapping Stores.
1055
+ # Service for managing license config related resources.
775
1056
  #
776
1057
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
777
1058
  # Defaults to `:v1`.
778
1059
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
779
1060
  # @return [::Object] A client object for the specified version.
780
1061
  #
781
- def self.identity_mapping_store_service version: :v1, transport: :grpc, &block
1062
+ def self.license_config_service version: :v1, transport: :grpc, &block
782
1063
  require "google/cloud/discovery_engine/#{version.to_s.downcase}"
783
1064
 
784
1065
  package_name = Google::Cloud::DiscoveryEngine
785
1066
  .constants
786
1067
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
787
1068
  .first
788
- service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:IdentityMappingStoreService)
1069
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:LicenseConfigService)
789
1070
  service_module = service_module.const_get(:Rest) if transport == :rest
790
1071
  service_module.const_get(:Client).new(&block)
791
1072
  end
792
1073
 
793
1074
  ##
794
- # Determines whether the IdentityMappingStoreService service is supported by the current client.
795
- # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.identity_mapping_store_service}.
1075
+ # Determines whether the LicenseConfigService service is supported by the current client.
1076
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.license_config_service}.
796
1077
  # If false, that method will raise an exception. This could happen if the given
797
- # API version does not exist or does not support the IdentityMappingStoreService service,
798
- # or if the versioned client gem needs an update to support the IdentityMappingStoreService service.
1078
+ # API version does not exist or does not support the LicenseConfigService service,
1079
+ # or if the versioned client gem needs an update to support the LicenseConfigService service.
799
1080
  #
800
1081
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
801
1082
  # Defaults to `:v1`.
802
1083
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
803
1084
  # @return [boolean] Whether the service is available.
804
1085
  #
805
- def self.identity_mapping_store_service_available? version: :v1, transport: :grpc
1086
+ def self.license_config_service_available? version: :v1, transport: :grpc
806
1087
  require "google/cloud/discovery_engine/#{version.to_s.downcase}"
807
1088
  package_name = Google::Cloud::DiscoveryEngine
808
1089
  .constants
@@ -810,8 +1091,8 @@ module Google
810
1091
  .first
811
1092
  return false unless package_name
812
1093
  service_module = Google::Cloud::DiscoveryEngine.const_get package_name
813
- return false unless service_module.const_defined? :IdentityMappingStoreService
814
- service_module = service_module.const_get :IdentityMappingStoreService
1094
+ return false unless service_module.const_defined? :LicenseConfigService
1095
+ service_module = service_module.const_get :LicenseConfigService
815
1096
  if transport == :rest
816
1097
  return false unless service_module.const_defined? :Rest
817
1098
  service_module = service_module.const_get :Rest
@@ -1523,6 +1804,147 @@ module Google
1523
1804
  false
1524
1805
  end
1525
1806
 
1807
+ ##
1808
+ # Create a new client object for UserStoreService.
1809
+ #
1810
+ # By default, this returns an instance of
1811
+ # [Google::Cloud::DiscoveryEngine::V1::UserStoreService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserStoreService-Client)
1812
+ # for a gRPC client for version V1 of the API.
1813
+ # However, you can specify a different API version by passing it in the
1814
+ # `version` parameter. If the UserStoreService service is
1815
+ # supported by that API version, and the corresponding gem is available, the
1816
+ # appropriate versioned client will be returned.
1817
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
1818
+ # the `transport` parameter.
1819
+ #
1820
+ # Raises an exception if the currently installed versioned client gem for the
1821
+ # given API version does not support the given transport of the UserStoreService service.
1822
+ # You can determine whether the method will succeed by calling
1823
+ # {Google::Cloud::DiscoveryEngine.user_store_service_available?}.
1824
+ #
1825
+ # ## About UserStoreService
1826
+ #
1827
+ # Service for managing User Stores.
1828
+ #
1829
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1830
+ # Defaults to `:v1`.
1831
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1832
+ # @return [::Object] A client object for the specified version.
1833
+ #
1834
+ def self.user_store_service version: :v1, transport: :grpc, &block
1835
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
1836
+
1837
+ package_name = Google::Cloud::DiscoveryEngine
1838
+ .constants
1839
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1840
+ .first
1841
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:UserStoreService)
1842
+ service_module = service_module.const_get(:Rest) if transport == :rest
1843
+ service_module.const_get(:Client).new(&block)
1844
+ end
1845
+
1846
+ ##
1847
+ # Determines whether the UserStoreService service is supported by the current client.
1848
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.user_store_service}.
1849
+ # If false, that method will raise an exception. This could happen if the given
1850
+ # API version does not exist or does not support the UserStoreService service,
1851
+ # or if the versioned client gem needs an update to support the UserStoreService service.
1852
+ #
1853
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1854
+ # Defaults to `:v1`.
1855
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1856
+ # @return [boolean] Whether the service is available.
1857
+ #
1858
+ def self.user_store_service_available? version: :v1, transport: :grpc
1859
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
1860
+ package_name = Google::Cloud::DiscoveryEngine
1861
+ .constants
1862
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1863
+ .first
1864
+ return false unless package_name
1865
+ service_module = Google::Cloud::DiscoveryEngine.const_get package_name
1866
+ return false unless service_module.const_defined? :UserStoreService
1867
+ service_module = service_module.const_get :UserStoreService
1868
+ if transport == :rest
1869
+ return false unless service_module.const_defined? :Rest
1870
+ service_module = service_module.const_get :Rest
1871
+ end
1872
+ service_module.const_defined? :Client
1873
+ rescue ::LoadError
1874
+ false
1875
+ end
1876
+
1877
+ ##
1878
+ # Create a new client object for WidgetConfigService.
1879
+ #
1880
+ # By default, this returns an instance of
1881
+ # [Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-WidgetConfigService-Client)
1882
+ # for a gRPC client for version V1 of the API.
1883
+ # However, you can specify a different API version by passing it in the
1884
+ # `version` parameter. If the WidgetConfigService service is
1885
+ # supported by that API version, and the corresponding gem is available, the
1886
+ # appropriate versioned client will be returned.
1887
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
1888
+ # the `transport` parameter.
1889
+ #
1890
+ # Raises an exception if the currently installed versioned client gem for the
1891
+ # given API version does not support the given transport of the WidgetConfigService service.
1892
+ # You can determine whether the method will succeed by calling
1893
+ # {Google::Cloud::DiscoveryEngine.widget_config_service_available?}.
1894
+ #
1895
+ # ## About WidgetConfigService
1896
+ #
1897
+ # Service for managing
1898
+ # WidgetConfig configuration.
1899
+ #
1900
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1901
+ # Defaults to `:v1`.
1902
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1903
+ # @return [::Object] A client object for the specified version.
1904
+ #
1905
+ def self.widget_config_service version: :v1, transport: :grpc, &block
1906
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
1907
+
1908
+ package_name = Google::Cloud::DiscoveryEngine
1909
+ .constants
1910
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1911
+ .first
1912
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:WidgetConfigService)
1913
+ service_module = service_module.const_get(:Rest) if transport == :rest
1914
+ service_module.const_get(:Client).new(&block)
1915
+ end
1916
+
1917
+ ##
1918
+ # Determines whether the WidgetConfigService service is supported by the current client.
1919
+ # If true, you can retrieve a client object by calling {Google::Cloud::DiscoveryEngine.widget_config_service}.
1920
+ # If false, that method will raise an exception. This could happen if the given
1921
+ # API version does not exist or does not support the WidgetConfigService service,
1922
+ # or if the versioned client gem needs an update to support the WidgetConfigService service.
1923
+ #
1924
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1925
+ # Defaults to `:v1`.
1926
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1927
+ # @return [boolean] Whether the service is available.
1928
+ #
1929
+ def self.widget_config_service_available? version: :v1, transport: :grpc
1930
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
1931
+ package_name = Google::Cloud::DiscoveryEngine
1932
+ .constants
1933
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1934
+ .first
1935
+ return false unless package_name
1936
+ service_module = Google::Cloud::DiscoveryEngine.const_get package_name
1937
+ return false unless service_module.const_defined? :WidgetConfigService
1938
+ service_module = service_module.const_get :WidgetConfigService
1939
+ if transport == :rest
1940
+ return false unless service_module.const_defined? :Rest
1941
+ service_module = service_module.const_get :Rest
1942
+ end
1943
+ service_module.const_defined? :Client
1944
+ rescue ::LoadError
1945
+ false
1946
+ end
1947
+
1526
1948
  ##
1527
1949
  # Configure the google-cloud-discovery_engine library.
1528
1950
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC