google-apis-cloudsearch_v1 0.59.0 → 0.61.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: e10586711beec348f45c427320eab71d4e559dcb4a90d5bc291005ad8f112491
4
- data.tar.gz: 0a3a216075ab8c153f40bc7d5dd4c2698829f71d0e3eb0d7a5ca4e8876588507
3
+ metadata.gz: ab39966d803e8f0be04cd4cc70792e53e9b85385235d150b752137f25f73cea0
4
+ data.tar.gz: a815c7497033401b877d59ca904d9c689e1c5a5b0605d1be0b87b2aeec449d01
5
5
  SHA512:
6
- metadata.gz: 0e3d7fb695dc240a14bb7e6f532b9f3742ded9fe27ec6db7815784bcb6f39ca9fbeb32f124df87cad588dc709af971fb4b610668eb78713e12b20cb2fa74eabb
7
- data.tar.gz: 48658943740f94d0f1bf7adde7459d26f58246cddac1ec39b1816f65d3224cc45ba82a84c1743eeee9e768763ac0f063e8e14995a1e562e0fca5d9e80817c80b
6
+ metadata.gz: 810cafc7f69e1ddb2fe3657686546ecc3531947e516f4cf1a527c850d2df548ad076b70af42816d722ac5152c4cef7d5a3ccfd2f4647b9ed7ae2b5397a123704
7
+ data.tar.gz: 1b0ea4f8ae2e1ca518d8b8c87fe595ad4634e7c34cc251e028bbab2cf029b10c46eb45538052e58180f90148999595c81ab8c8f0c8be41b26bcf5879dd11ccb8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-cloudsearch_v1
2
2
 
3
+ ### v0.61.0 (2024-06-16)
4
+
5
+ * Regenerated from discovery document revision 20240529
6
+
7
+ ### v0.60.0 (2024-05-19)
8
+
9
+ * Regenerated from discovery document revision 20240501
10
+ * Regenerated using generator version 0.15.0
11
+
3
12
  ### v0.59.0 (2024-02-23)
4
13
 
5
14
  * Regenerated using generator version 0.14.0
@@ -855,6 +855,39 @@ module Google
855
855
  end
856
856
  end
857
857
 
858
+ # Debug Search Response.
859
+ class DebugResponse
860
+ include Google::Apis::Core::Hashable
861
+
862
+ # Serialized string of GenericSearchRequest.
863
+ # Corresponds to the JSON property `gsrRequest`
864
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
865
+ # @return [String]
866
+ attr_accessor :gsr_request
867
+
868
+ # Serialized string of GenericSearchResponse.
869
+ # Corresponds to the JSON property `gsrResponse`
870
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
871
+ # @return [String]
872
+ attr_accessor :gsr_response
873
+
874
+ # The search API response.
875
+ # Corresponds to the JSON property `searchResponse`
876
+ # @return [Google::Apis::CloudsearchV1::SearchResponse]
877
+ attr_accessor :search_response
878
+
879
+ def initialize(**args)
880
+ update!(**args)
881
+ end
882
+
883
+ # Update properties of this object
884
+ def update!(**args)
885
+ @gsr_request = args[:gsr_request] if args.key?(:gsr_request)
886
+ @gsr_response = args[:gsr_response] if args.key?(:gsr_response)
887
+ @search_response = args[:search_response] if args.key?(:search_response)
888
+ end
889
+ end
890
+
858
891
  #
859
892
  class DeleteQueueItemsRequest
860
893
  include Google::Apis::Core::Hashable
@@ -6653,6 +6686,64 @@ module Google
6653
6686
  end
6654
6687
  end
6655
6688
 
6689
+ # The rewritten queries returned by Apps Search Query Understanding service.
6690
+ class RewrittenQueries
6691
+ include Google::Apis::Core::Hashable
6692
+
6693
+ #
6694
+ # Corresponds to the JSON property `rewrittenQueries`
6695
+ # @return [Array<Google::Apis::CloudsearchV1::RewrittenQuery>]
6696
+ attr_accessor :rewritten_queries
6697
+
6698
+ # The index of the selected query in `rewritten_queries` that is used by QAPI to
6699
+ # call CSSR to get search results. If none of the queries were used (i.e. they
6700
+ # all give empty search results), `selected_query_index` would default to -1.
6701
+ # Corresponds to the JSON property `selectedQueryIndex`
6702
+ # @return [Fixnum]
6703
+ attr_accessor :selected_query_index
6704
+
6705
+ def initialize(**args)
6706
+ update!(**args)
6707
+ end
6708
+
6709
+ # Update properties of this object
6710
+ def update!(**args)
6711
+ @rewritten_queries = args[:rewritten_queries] if args.key?(:rewritten_queries)
6712
+ @selected_query_index = args[:selected_query_index] if args.key?(:selected_query_index)
6713
+ end
6714
+ end
6715
+
6716
+ #
6717
+ class RewrittenQuery
6718
+ include Google::Apis::Core::Hashable
6719
+
6720
+ #
6721
+ # Corresponds to the JSON property `rewrittenQuery`
6722
+ # @return [String]
6723
+ attr_accessor :rewritten_query
6724
+
6725
+ #
6726
+ # Corresponds to the JSON property `score`
6727
+ # @return [Float]
6728
+ attr_accessor :score
6729
+
6730
+ #
6731
+ # Corresponds to the JSON property `sortBy`
6732
+ # @return [String]
6733
+ attr_accessor :sort_by
6734
+
6735
+ def initialize(**args)
6736
+ update!(**args)
6737
+ end
6738
+
6739
+ # Update properties of this object
6740
+ def update!(**args)
6741
+ @rewritten_query = args[:rewritten_query] if args.key?(:rewritten_query)
6742
+ @score = args[:score] if args.key?(:score)
6743
+ @sort_by = args[:sort_by] if args.key?(:sort_by)
6744
+ end
6745
+ end
6746
+
6656
6747
  # IMPORTANT: It is unsafe to accept this message from an untrusted source, since
6657
6748
  # it's trivial for an attacker to forge serialized messages that don't fulfill
6658
6749
  # the type's safety contract -- for example, it could contain attacker
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudsearchV1
18
18
  # Version of the google-apis-cloudsearch_v1 gem
19
- GEM_VERSION = "0.59.0"
19
+ GEM_VERSION = "0.61.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 = "20230831"
25
+ REVISION = "20240529"
26
26
  end
27
27
  end
28
28
  end
@@ -166,6 +166,12 @@ module Google
166
166
  include Google::Apis::Core::JsonObjectSupport
167
167
  end
168
168
 
169
+ class DebugResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
169
175
  class DeleteQueueItemsRequest
170
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
177
 
@@ -1090,6 +1096,18 @@ module Google
1090
1096
  include Google::Apis::Core::JsonObjectSupport
1091
1097
  end
1092
1098
 
1099
+ class RewrittenQueries
1100
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1101
+
1102
+ include Google::Apis::Core::JsonObjectSupport
1103
+ end
1104
+
1105
+ class RewrittenQuery
1106
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1107
+
1108
+ include Google::Apis::Core::JsonObjectSupport
1109
+ end
1110
+
1093
1111
  class SafeHtmlProto
1094
1112
  class Representation < Google::Apis::Core::JsonRepresentation; end
1095
1113
 
@@ -1592,6 +1610,16 @@ module Google
1592
1610
  end
1593
1611
  end
1594
1612
 
1613
+ class DebugResponse
1614
+ # @private
1615
+ class Representation < Google::Apis::Core::JsonRepresentation
1616
+ property :gsr_request, :base64 => true, as: 'gsrRequest'
1617
+ property :gsr_response, :base64 => true, as: 'gsrResponse'
1618
+ property :search_response, as: 'searchResponse', class: Google::Apis::CloudsearchV1::SearchResponse, decorator: Google::Apis::CloudsearchV1::SearchResponse::Representation
1619
+
1620
+ end
1621
+ end
1622
+
1595
1623
  class DeleteQueueItemsRequest
1596
1624
  # @private
1597
1625
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3267,6 +3295,24 @@ module Google
3267
3295
  end
3268
3296
  end
3269
3297
 
3298
+ class RewrittenQueries
3299
+ # @private
3300
+ class Representation < Google::Apis::Core::JsonRepresentation
3301
+ collection :rewritten_queries, as: 'rewrittenQueries', class: Google::Apis::CloudsearchV1::RewrittenQuery, decorator: Google::Apis::CloudsearchV1::RewrittenQuery::Representation
3302
+
3303
+ property :selected_query_index, as: 'selectedQueryIndex'
3304
+ end
3305
+ end
3306
+
3307
+ class RewrittenQuery
3308
+ # @private
3309
+ class Representation < Google::Apis::Core::JsonRepresentation
3310
+ property :rewritten_query, as: 'rewrittenQuery'
3311
+ property :score, as: 'score'
3312
+ property :sort_by, as: 'sortBy'
3313
+ end
3314
+ end
3315
+
3270
3316
  class SafeHtmlProto
3271
3317
  # @private
3272
3318
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -870,6 +870,40 @@ module Google
870
870
  execute_or_queue_command(command, &block)
871
871
  end
872
872
 
873
+ # Returns Debug information for Cloud Search Query API provides the search
874
+ # method. **Note:** This API requires a standard end user account to execute. A
875
+ # service account can't perform Query API requests directly; to use a service
876
+ # account to perform queries, set up [Google Workspace domain-wide delegation of
877
+ # authority](https://developers.google.com/cloud-search/docs/guides/delegation/).
878
+ # @param [Google::Apis::CloudsearchV1::SearchRequest] search_request_object
879
+ # @param [String] fields
880
+ # Selector specifying which fields to include in a partial response.
881
+ # @param [String] quota_user
882
+ # Available to use for quota purposes for server-side applications. Can be any
883
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
884
+ # @param [Google::Apis::RequestOptions] options
885
+ # Request-specific options
886
+ #
887
+ # @yield [result, err] Result & error if block supplied
888
+ # @yieldparam result [Google::Apis::CloudsearchV1::DebugResponse] parsed result object
889
+ # @yieldparam err [StandardError] error object if request failed
890
+ #
891
+ # @return [Google::Apis::CloudsearchV1::DebugResponse]
892
+ #
893
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
894
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
895
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
896
+ def debug_query_search(search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
897
+ command = make_simple_command(:post, 'v1/query:debugSearch', options)
898
+ command.request_representation = Google::Apis::CloudsearchV1::SearchRequest::Representation
899
+ command.request_object = search_request_object
900
+ command.response_representation = Google::Apis::CloudsearchV1::DebugResponse::Representation
901
+ command.response_class = Google::Apis::CloudsearchV1::DebugResponse
902
+ command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
904
+ execute_or_queue_command(command, &block)
905
+ end
906
+
873
907
  # Provides functionality to remove logged activity for a user. Currently to be
874
908
  # used only for Chat 1p clients **Note:** This API requires a standard end user
875
909
  # account to execute. A service account can't perform Remove Activity requests
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudsearch_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.61.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-02-25 00:00:00.000000000 Z
11
+ date: 2024-06-16 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-cloudsearch_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsearch_v1/v0.59.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsearch_v1/v0.61.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsearch_v1
63
63
  post_install_message:
64
64
  rdoc_options: []