google-cloud-discovery_engine-v1 2.1.1 → 2.3.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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/client.rb +803 -0
  5. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/credentials.rb +47 -0
  6. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/operations.rb +813 -0
  7. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/paths.rb +135 -0
  8. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/client.rb +749 -0
  9. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/operations.rb +1148 -0
  10. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/service_stub.rb +341 -0
  11. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest.rb +53 -0
  12. data/lib/google/cloud/discovery_engine/v1/cmek_config_service.rb +56 -0
  13. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +8 -0
  14. data/lib/google/cloud/discovery_engine/v1/control_service/paths.rb +53 -0
  15. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +2 -2
  16. data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +11 -1
  17. data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +104 -0
  18. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +11 -1
  19. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +8 -0
  20. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +8 -0
  21. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +8 -0
  22. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/client.rb +1160 -0
  23. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/credentials.rb +47 -0
  24. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/operations.rb +813 -0
  25. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/paths.rb +154 -0
  26. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/client.rb +1085 -0
  27. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/operations.rb +1148 -0
  28. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/service_stub.rb +511 -0
  29. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest.rb +53 -0
  30. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service.rb +56 -0
  31. data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +8 -0
  32. data/lib/google/cloud/discovery_engine/v1/rest.rb +4 -1
  33. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +8 -0
  34. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +8 -0
  35. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +8 -0
  36. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +8 -0
  37. data/lib/google/cloud/discovery_engine/v1/user_license_service/client.rb +630 -0
  38. data/lib/google/cloud/discovery_engine/v1/user_license_service/credentials.rb +47 -0
  39. data/lib/google/cloud/discovery_engine/v1/user_license_service/operations.rb +813 -0
  40. data/lib/google/cloud/discovery_engine/v1/user_license_service/paths.rb +71 -0
  41. data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/client.rb +590 -0
  42. data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/operations.rb +1148 -0
  43. data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/service_stub.rb +204 -0
  44. data/lib/google/cloud/discovery_engine/v1/user_license_service/rest.rb +53 -0
  45. data/lib/google/cloud/discovery_engine/v1/user_license_service.rb +56 -0
  46. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  47. data/lib/google/cloud/discovery_engine/v1.rb +5 -2
  48. data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +1 -1
  49. data/lib/google/cloud/discoveryengine/v1/chunk_pb.rb +4 -1
  50. data/lib/google/cloud/discoveryengine/v1/cmek_config_service_pb.rb +61 -0
  51. data/lib/google/cloud/discoveryengine/v1/cmek_config_service_services_pb.rb +55 -0
  52. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +3 -1
  53. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
  54. data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +4 -1
  55. data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +1 -1
  56. data/lib/google/cloud/discoveryengine/v1/document_pb.rb +5 -1
  57. data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +1 -1
  58. data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +7 -1
  59. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +1 -1
  60. data/lib/google/cloud/discoveryengine/v1/grounding_pb.rb +1 -1
  61. data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_pb.rb +48 -0
  62. data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_pb.rb +68 -0
  63. data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_services_pb.rb +58 -0
  64. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +1 -1
  65. data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +1 -1
  66. data/lib/google/cloud/discoveryengine/v1/user_license_pb.rb +48 -0
  67. data/lib/google/cloud/discoveryengine/v1/user_license_service_pb.rb +61 -0
  68. data/lib/google/cloud/discoveryengine/v1/user_license_service_services_pb.rb +48 -0
  69. data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +17 -0
  70. data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +54 -0
  71. data/proto_docs/google/cloud/discoveryengine/v1/cmek_config_service.rb +222 -0
  72. data/proto_docs/google/cloud/discoveryengine/v1/common.rb +55 -0
  73. data/proto_docs/google/cloud/discoveryengine/v1/control.rb +1 -3
  74. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +3 -0
  75. data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +43 -1
  76. data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +12 -0
  77. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +99 -4
  78. data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +23 -0
  79. data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +141 -5
  80. data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +8 -0
  81. data/proto_docs/google/cloud/discoveryengine/v1/grounding.rb +9 -0
  82. data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store.rb +81 -0
  83. data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store_service.rb +279 -0
  84. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +6 -0
  85. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +6 -0
  86. data/proto_docs/google/cloud/discoveryengine/v1/user_license.rb +85 -0
  87. data/proto_docs/google/cloud/discoveryengine/v1/user_license_service.rb +153 -0
  88. metadata +51 -23
@@ -24,6 +24,47 @@ module Google
24
24
  module DataStoreService
25
25
  # Path helper methods for the DataStoreService API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified CmekConfig resource string.
29
+ #
30
+ # @overload cmek_config_path(project:, location:)
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/locations/{location}/cmekConfig`
34
+ #
35
+ # @param project [String]
36
+ # @param location [String]
37
+ #
38
+ # @overload cmek_config_path(project:, location:, cmek_config:)
39
+ # The resource will be in the following format:
40
+ #
41
+ # `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`
42
+ #
43
+ # @param project [String]
44
+ # @param location [String]
45
+ # @param cmek_config [String]
46
+ #
47
+ # @return [::String]
48
+ def cmek_config_path **args
49
+ resources = {
50
+ "location:project" => (proc do |project:, location:|
51
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
52
+
53
+ "projects/#{project}/locations/#{location}/cmekConfig"
54
+ end),
55
+ "cmek_config:location:project" => (proc do |project:, location:, cmek_config:|
56
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
57
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
58
+
59
+ "projects/#{project}/locations/#{location}/cmekConfigs/#{cmek_config}"
60
+ end)
61
+ }
62
+
63
+ resource = resources[args.keys.sort.join(":")]
64
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
65
+ resource.call(**args)
66
+ end
67
+
27
68
  ##
28
69
  # Create a fully-qualified Collection resource string.
29
70
  #
@@ -43,6 +84,50 @@ module Google
43
84
  "projects/#{project}/locations/#{location}/collections/#{collection}"
44
85
  end
45
86
 
87
+ ##
88
+ # Create a fully-qualified CryptoKeyVersions resource string.
89
+ #
90
+ # The resource will be in the following format:
91
+ #
92
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
93
+ #
94
+ # @param project [String]
95
+ # @param location [String]
96
+ # @param key_ring [String]
97
+ # @param crypto_key [String]
98
+ # @param crypto_key_version [String]
99
+ #
100
+ # @return [::String]
101
+ def crypto_key_versions_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
102
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
103
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
104
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
105
+ raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
106
+
107
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
108
+ end
109
+
110
+ ##
111
+ # Create a fully-qualified CryptoKeys resource string.
112
+ #
113
+ # The resource will be in the following format:
114
+ #
115
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
116
+ #
117
+ # @param project [String]
118
+ # @param location [String]
119
+ # @param key_ring [String]
120
+ # @param crypto_key [String]
121
+ #
122
+ # @return [::String]
123
+ def crypto_keys_path project:, location:, key_ring:, crypto_key:
124
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
125
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
126
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
127
+
128
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
129
+ end
130
+
46
131
  ##
47
132
  # Create a fully-qualified DataStore resource string.
48
133
  #
@@ -133,6 +218,25 @@ module Google
133
218
  resource.call(**args)
134
219
  end
135
220
 
221
+ ##
222
+ # Create a fully-qualified IdentityMappingStore resource string.
223
+ #
224
+ # The resource will be in the following format:
225
+ #
226
+ # `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`
227
+ #
228
+ # @param project [String]
229
+ # @param location [String]
230
+ # @param identity_mapping_store [String]
231
+ #
232
+ # @return [::String]
233
+ def identity_mapping_store_path project:, location:, identity_mapping_store:
234
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
235
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
236
+
237
+ "projects/#{project}/locations/#{location}/identityMappingStores/#{identity_mapping_store}"
238
+ end
239
+
136
240
  ##
137
241
  # Create a fully-qualified Schema resource string.
138
242
  #
@@ -226,11 +226,21 @@ module Google
226
226
  # @param options [::Gapic::CallOptions, ::Hash]
227
227
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
228
228
  #
229
- # @overload create_data_store(parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil)
229
+ # @overload create_data_store(cmek_config_name: nil, disable_cmek: nil, parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil)
230
230
  # Pass arguments to `create_data_store` via keyword arguments. Note that at
231
231
  # least one keyword argument is required. To specify no parameters, or to keep all
232
232
  # the default parameter values, pass an empty Hash as a request object (see above).
233
233
  #
234
+ # @param cmek_config_name [::String]
235
+ # Resource name of the CmekConfig to use for protecting this DataStore.
236
+ #
237
+ # Note: The following fields are mutually exclusive: `cmek_config_name`, `disable_cmek`. If a field in that set is populated, all other fields in the set will automatically be cleared.
238
+ # @param disable_cmek [::Boolean]
239
+ # DataStore without CMEK protections. If a default CmekConfig is set for
240
+ # the project, setting this field will override the default CmekConfig as
241
+ # well.
242
+ #
243
+ # Note: The following fields are mutually exclusive: `disable_cmek`, `cmek_config_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
234
244
  # @param parent [::String]
235
245
  # Required. The parent resource name, such as
236
246
  # `projects/{project}/locations/{location}/collections/{collection}`.
@@ -1121,6 +1121,14 @@ module Google
1121
1121
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
1122
1122
  ]
1123
1123
  )
1124
+ .with_bindings(
1125
+ uri_method: :post,
1126
+ uri_template: "/v1/{name}:cancel",
1127
+ body: "*",
1128
+ matches: [
1129
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+/?$}, false]
1130
+ ]
1131
+ )
1124
1132
  .with_bindings(
1125
1133
  uri_method: :post,
1126
1134
  uri_template: "/v1/{name}:cancel",
@@ -1121,6 +1121,14 @@ module Google
1121
1121
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
1122
1122
  ]
1123
1123
  )
1124
+ .with_bindings(
1125
+ uri_method: :post,
1126
+ uri_template: "/v1/{name}:cancel",
1127
+ body: "*",
1128
+ matches: [
1129
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+/?$}, false]
1130
+ ]
1131
+ )
1124
1132
  .with_bindings(
1125
1133
  uri_method: :post,
1126
1134
  uri_template: "/v1/{name}:cancel",
@@ -1121,6 +1121,14 @@ module Google
1121
1121
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
1122
1122
  ]
1123
1123
  )
1124
+ .with_bindings(
1125
+ uri_method: :post,
1126
+ uri_template: "/v1/{name}:cancel",
1127
+ body: "*",
1128
+ matches: [
1129
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+/?$}, false]
1130
+ ]
1131
+ )
1124
1132
  .with_bindings(
1125
1133
  uri_method: :post,
1126
1134
  uri_template: "/v1/{name}:cancel",