google-apis-discoveryengine_v1alpha 0.45.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c3707fac08b990fcfab1ae8b2a0abb4c4484b3fbce2ebbd1b3fbfceef766610
4
- data.tar.gz: 63e6432f374ce908671e00de0fd35609d98584f0012ab761b47209a129600c77
3
+ metadata.gz: 82fcd2586656245baf9feaf2b098376f419c0a38dfb475e73fb8d5a49fa8874d
4
+ data.tar.gz: 82bb75b7968c15f841e1adb286c11d381d8fc1a0797735e97d3c7325e3a5c39a
5
5
  SHA512:
6
- metadata.gz: 25e5f9cdc550f32f68a4ba879349e28d2ea3e5ee71a8499662ea1031f1a510c9731ab771e67b9a7cfc6e0637d9c5807ad9921e51e2d78e86092546fd0d43986e
7
- data.tar.gz: 6a49c76f78de338e705d2c6bab11ff253f9c908ce17639af5b59f68f95daa73886746991c36a251d37284beb9cbe5b169947f6994011eb85dcf1e2f1b93b6d80
6
+ metadata.gz: 89059b42911f21ead743316a0ce06b76fdb41825d06203eb2e4928635455b19589c567a22d9e74e95ea643390434d60635d79e77e38df9c6dfd6c5642efc84a9
7
+ data.tar.gz: e24ea4ca607d86fcccc28a9b4757e35ca5e64a569ea8168a461960ebb91761832a0d6f376339a13f3f335be187c5ae32fba2f547acb95eb117396372e4cb43d8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.46.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240512
6
+ * Regenerated using generator version 0.15.0
7
+
3
8
  ### v0.45.0 (2024-05-05)
4
9
 
5
10
  * Regenerated from discovery document revision 20240502
@@ -3331,6 +3331,13 @@ module Google
3331
3331
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkPageSpan]
3332
3332
  attr_accessor :page_span
3333
3333
 
3334
+ # Represents the relevance score based on similarity. Higher score represents
3335
+ # the chunk relevance. The score is in range [0.0, 1.0]. Only populated on
3336
+ # SearchService.SearchResponse
3337
+ # Corresponds to the JSON property `relevanceScore`
3338
+ # @return [Float]
3339
+ attr_accessor :relevance_score
3340
+
3334
3341
  def initialize(**args)
3335
3342
  update!(**args)
3336
3343
  end
@@ -3344,6 +3351,7 @@ module Google
3344
3351
  @id = args[:id] if args.key?(:id)
3345
3352
  @name = args[:name] if args.key?(:name)
3346
3353
  @page_span = args[:page_span] if args.key?(:page_span)
3354
+ @relevance_score = args[:relevance_score] if args.key?(:relevance_score)
3347
3355
  end
3348
3356
  end
3349
3357
 
@@ -12033,6 +12041,19 @@ module Google
12033
12041
  end
12034
12042
  end
12035
12043
 
12044
+ # The request message for Operations.CancelOperation.
12045
+ class GoogleLongrunningCancelOperationRequest
12046
+ include Google::Apis::Core::Hashable
12047
+
12048
+ def initialize(**args)
12049
+ update!(**args)
12050
+ end
12051
+
12052
+ # Update properties of this object
12053
+ def update!(**args)
12054
+ end
12055
+ end
12056
+
12036
12057
  # The response message for Operations.ListOperations.
12037
12058
  class GoogleLongrunningListOperationsResponse
12038
12059
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1alpha
18
18
  # Version of the google-apis-discoveryengine_v1alpha gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240502"
25
+ REVISION = "20240512"
26
26
  end
27
27
  end
28
28
  end
@@ -2086,6 +2086,12 @@ module Google
2086
2086
  include Google::Apis::Core::JsonObjectSupport
2087
2087
  end
2088
2088
 
2089
+ class GoogleLongrunningCancelOperationRequest
2090
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2091
+
2092
+ include Google::Apis::Core::JsonObjectSupport
2093
+ end
2094
+
2089
2095
  class GoogleLongrunningListOperationsResponse
2090
2096
  class Representation < Google::Apis::Core::JsonRepresentation; end
2091
2097
 
@@ -3081,6 +3087,7 @@ module Google
3081
3087
  property :name, as: 'name'
3082
3088
  property :page_span, as: 'pageSpan', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkPageSpan, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkPageSpan::Representation
3083
3089
 
3090
+ property :relevance_score, as: 'relevanceScore'
3084
3091
  end
3085
3092
  end
3086
3093
 
@@ -5449,6 +5456,12 @@ module Google
5449
5456
  end
5450
5457
  end
5451
5458
 
5459
+ class GoogleLongrunningCancelOperationRequest
5460
+ # @private
5461
+ class Representation < Google::Apis::Core::JsonRepresentation
5462
+ end
5463
+ end
5464
+
5452
5465
  class GoogleLongrunningListOperationsResponse
5453
5466
  # @private
5454
5467
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1141,6 +1141,46 @@ module Google
1141
1141
  execute_or_queue_command(command, &block)
1142
1142
  end
1143
1143
 
1144
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1145
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1146
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1147
+ # Clients can use Operations.GetOperation or other methods to check whether the
1148
+ # cancellation succeeded or whether the operation completed despite cancellation.
1149
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1150
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1151
+ # corresponding to `Code.CANCELLED`.
1152
+ # @param [String] name
1153
+ # The name of the operation resource to be cancelled.
1154
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
1155
+ # @param [String] fields
1156
+ # Selector specifying which fields to include in a partial response.
1157
+ # @param [String] quota_user
1158
+ # Available to use for quota purposes for server-side applications. Can be any
1159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1160
+ # @param [Google::Apis::RequestOptions] options
1161
+ # Request-specific options
1162
+ #
1163
+ # @yield [result, err] Result & error if block supplied
1164
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty] parsed result object
1165
+ # @yieldparam err [StandardError] error object if request failed
1166
+ #
1167
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty]
1168
+ #
1169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1172
+ def cancel_project_location_collection_data_store_branch_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1173
+ command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
1174
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningCancelOperationRequest::Representation
1175
+ command.request_object = google_longrunning_cancel_operation_request_object
1176
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty::Representation
1177
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty
1178
+ command.params['name'] = name unless name.nil?
1179
+ command.query['fields'] = fields unless fields.nil?
1180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1181
+ execute_or_queue_command(command, &block)
1182
+ end
1183
+
1144
1184
  # Gets the latest state of a long-running operation. Clients can use this method
1145
1185
  # to poll the operation result at intervals as recommended by the API service.
1146
1186
  # @param [String] name
@@ -4989,6 +5029,46 @@ module Google
4989
5029
  execute_or_queue_command(command, &block)
4990
5030
  end
4991
5031
 
5032
+ # Starts asynchronous cancellation on a long-running operation. The server makes
5033
+ # a best effort to cancel the operation, but success is not guaranteed. If the
5034
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
5035
+ # Clients can use Operations.GetOperation or other methods to check whether the
5036
+ # cancellation succeeded or whether the operation completed despite cancellation.
5037
+ # On successful cancellation, the operation is not deleted; instead, it becomes
5038
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
5039
+ # corresponding to `Code.CANCELLED`.
5040
+ # @param [String] name
5041
+ # The name of the operation resource to be cancelled.
5042
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
5043
+ # @param [String] fields
5044
+ # Selector specifying which fields to include in a partial response.
5045
+ # @param [String] quota_user
5046
+ # Available to use for quota purposes for server-side applications. Can be any
5047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5048
+ # @param [Google::Apis::RequestOptions] options
5049
+ # Request-specific options
5050
+ #
5051
+ # @yield [result, err] Result & error if block supplied
5052
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty] parsed result object
5053
+ # @yieldparam err [StandardError] error object if request failed
5054
+ #
5055
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty]
5056
+ #
5057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5060
+ def cancel_project_location_data_store_branch_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5061
+ command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
5062
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningCancelOperationRequest::Representation
5063
+ command.request_object = google_longrunning_cancel_operation_request_object
5064
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty::Representation
5065
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty
5066
+ command.params['name'] = name unless name.nil?
5067
+ command.query['fields'] = fields unless fields.nil?
5068
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5069
+ execute_or_queue_command(command, &block)
5070
+ end
5071
+
4992
5072
  # Gets the latest state of a long-running operation. Clients can use this method
4993
5073
  # to poll the operation result at intervals as recommended by the API service.
4994
5074
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-05 00:00:00.000000000 Z
11
+ date: 2024-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []