google-apis-cloudsearch_v1 0.8.0 → 0.12.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: cb80659cf5eb8c074e37066dd3d1f6215a3872381136d22384bb167e075ac35d
4
- data.tar.gz: 6da0d788e27a0acc1065aca31507624a0fed3bc0c31c6e887aea69c0fdd34691
3
+ metadata.gz: ff6aee5f93ac83d68dfa946d10ac03a111670409eb67efa1d08c219e617c74d6
4
+ data.tar.gz: 51876950934e3a23c7ec1e8bb000f5d64ffadf6a7fe218be6b81b87d18c0ca59
5
5
  SHA512:
6
- metadata.gz: 2eaf117cc7901ae3c3167c40cbd170535f25ec88c2c4f7eecd4480f747d2236c98e77ec39eafc88952cb671965ccbfe11727ab06f1789a752badc5b5e8945a2e
7
- data.tar.gz: e5a78497f28feb4fd1632bedf1898bdaa9275ddbde2559ffbb7458bfd27570e3a37df5fe01f1eaf2b7788999dd50152a1d900aaf170b2a4546fa2511adcd2b21
6
+ metadata.gz: 6e9d59b9ce824e937d43a8f583031c55df062d1529246bc3eabdc128227d60543aa6c5e263d1b0db131a10247cbbf0f4cc9be7d883f7d52b03596e86c0d1b768
7
+ data.tar.gz: d56f4c47f783b364f774a77f38f1008f6e5077bf1faec795ecdcd55b5f1d438451a615a108041956c3f3798728ab10459665a4bdfe0a7c492bdb3f5b42a0aa1f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudsearch_v1
2
2
 
3
+ ### v0.12.0 (2021-10-11)
4
+
5
+ * Regenerated from discovery document revision 20211005
6
+
7
+ ### v0.11.0 (2021-10-05)
8
+
9
+ * Regenerated from discovery document revision 20210927
10
+
11
+ ### v0.10.0 (2021-09-29)
12
+
13
+ * Regenerated from discovery document revision 20210920
14
+
15
+ ### v0.9.0 (2021-07-14)
16
+
17
+ * Regenerated from discovery document revision 20210706
18
+
3
19
  ### v0.8.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
@@ -1410,11 +1410,12 @@ module Google
1410
1410
  end
1411
1411
  end
1412
1412
 
1413
- #
1413
+ # Response format for getting query stats at a search application level between
1414
+ # given dates.
1414
1415
  class GetSearchApplicationQueryStatsResponse
1415
1416
  include Google::Apis::Core::Hashable
1416
1417
 
1417
- #
1418
+ # Search application level query stats per date
1418
1419
  # Corresponds to the JSON property `stats`
1419
1420
  # @return [Array<Google::Apis::CloudsearchV1::SearchApplicationQueryStats>]
1420
1421
  attr_accessor :stats
@@ -1608,6 +1609,19 @@ module Google
1608
1609
  end
1609
1610
  end
1610
1611
 
1612
+ # Request message for `InitializeCustomer` method.
1613
+ class InitializeCustomerRequest
1614
+ include Google::Apis::Core::Hashable
1615
+
1616
+ def initialize(**args)
1617
+ update!(**args)
1618
+ end
1619
+
1620
+ # Update properties of this object
1621
+ def update!(**args)
1622
+ end
1623
+ end
1624
+
1611
1625
  # Used to provide a search operator for integer properties. This is optional.
1612
1626
  # Search operators let users restrict the query to specific fields relevant to
1613
1627
  # the type of item being searched.
@@ -3049,8 +3063,8 @@ module Google
3049
3063
 
3050
3064
  # Indicates that the property can be used for sorting. Cannot be true for
3051
3065
  # properties that are repeatable. Cannot be true for properties whose type is
3052
- # object or user identifier. IsReturnable must be true to set this option. Only
3053
- # supported for Boolean, Date, Double, Integer, and Timestamp properties.
3066
+ # object. IsReturnable must be true to set this option. Only supported for
3067
+ # Boolean, Date, Double, Integer, and Timestamp properties.
3054
3068
  # Corresponds to the JSON property `isSortable`
3055
3069
  # @return [Boolean]
3056
3070
  attr_accessor :is_sortable
@@ -3307,6 +3321,41 @@ module Google
3307
3321
  end
3308
3322
  end
3309
3323
 
3324
+ # Default options to interpret user query.
3325
+ class QueryInterpretationConfig
3326
+ include Google::Apis::Core::Hashable
3327
+
3328
+ # Set this flag to disable supplemental results retrieval, setting a flag here
3329
+ # will not retrieve supplemental results for queries associated with a given
3330
+ # search application. If this flag is set to True, it will take precedence over
3331
+ # the option set at Query level. For the default value of False, query level
3332
+ # flag will set the correct interpretation for supplemental results.
3333
+ # Corresponds to the JSON property `forceDisableSupplementalResults`
3334
+ # @return [Boolean]
3335
+ attr_accessor :force_disable_supplemental_results
3336
+ alias_method :force_disable_supplemental_results?, :force_disable_supplemental_results
3337
+
3338
+ # Enable this flag to turn off all internal optimizations like natural language (
3339
+ # NL) interpretation of queries, supplemental results retrieval, and usage of
3340
+ # synonyms including custom ones. If this flag is set to True, it will take
3341
+ # precedence over the option set at Query level. For the default value of False,
3342
+ # query level flag will set the correct interpretation for verbatim mode.
3343
+ # Corresponds to the JSON property `forceVerbatimMode`
3344
+ # @return [Boolean]
3345
+ attr_accessor :force_verbatim_mode
3346
+ alias_method :force_verbatim_mode?, :force_verbatim_mode
3347
+
3348
+ def initialize(**args)
3349
+ update!(**args)
3350
+ end
3351
+
3352
+ # Update properties of this object
3353
+ def update!(**args)
3354
+ @force_disable_supplemental_results = args[:force_disable_supplemental_results] if args.key?(:force_disable_supplemental_results)
3355
+ @force_verbatim_mode = args[:force_verbatim_mode] if args.key?(:force_verbatim_mode)
3356
+ end
3357
+ end
3358
+
3310
3359
  # Options to interpret user query.
3311
3360
  class QueryInterpretationOptions
3312
3361
  include Google::Apis::Core::Hashable
@@ -3319,6 +3368,14 @@ module Google
3319
3368
  attr_accessor :disable_nl_interpretation
3320
3369
  alias_method :disable_nl_interpretation?, :disable_nl_interpretation
3321
3370
 
3371
+ # Use this flag to disable supplemental results for a query. Supplemental
3372
+ # results setting chosen at SearchApplication level will take precedence if set
3373
+ # to True.
3374
+ # Corresponds to the JSON property `disableSupplementalResults`
3375
+ # @return [Boolean]
3376
+ attr_accessor :disable_supplemental_results
3377
+ alias_method :disable_supplemental_results?, :disable_supplemental_results
3378
+
3322
3379
  # Enable this flag to turn off all internal optimizations like natural language (
3323
3380
  # NL) interpretation of queries, supplemental result retrieval, and usage of
3324
3381
  # synonyms including custom ones. Nl interpretation will be disabled if either
@@ -3335,6 +3392,7 @@ module Google
3335
3392
  # Update properties of this object
3336
3393
  def update!(**args)
3337
3394
  @disable_nl_interpretation = args[:disable_nl_interpretation] if args.key?(:disable_nl_interpretation)
3395
+ @disable_supplemental_results = args[:disable_supplemental_results] if args.key?(:disable_supplemental_results)
3338
3396
  @enable_verbatim_mode = args[:enable_verbatim_mode] if args.key?(:enable_verbatim_mode)
3339
3397
  end
3340
3398
  end
@@ -3906,6 +3964,11 @@ module Google
3906
3964
  # @return [Array<String>]
3907
3965
  attr_accessor :operation_ids
3908
3966
 
3967
+ # Default options to interpret user query.
3968
+ # Corresponds to the JSON property `queryInterpretationConfig`
3969
+ # @return [Google::Apis::CloudsearchV1::QueryInterpretationConfig]
3970
+ attr_accessor :query_interpretation_config
3971
+
3909
3972
  # Scoring configurations for a source while processing a Search or Suggest
3910
3973
  # request.
3911
3974
  # Corresponds to the JSON property `scoringConfig`
@@ -3930,12 +3993,13 @@ module Google
3930
3993
  @enable_audit_log = args[:enable_audit_log] if args.key?(:enable_audit_log)
3931
3994
  @name = args[:name] if args.key?(:name)
3932
3995
  @operation_ids = args[:operation_ids] if args.key?(:operation_ids)
3996
+ @query_interpretation_config = args[:query_interpretation_config] if args.key?(:query_interpretation_config)
3933
3997
  @scoring_config = args[:scoring_config] if args.key?(:scoring_config)
3934
3998
  @source_config = args[:source_config] if args.key?(:source_config)
3935
3999
  end
3936
4000
  end
3937
4001
 
3938
- #
4002
+ # Search application level query stats per date
3939
4003
  class SearchApplicationQueryStats
3940
4004
  include Google::Apis::Core::Hashable
3941
4005
 
@@ -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.8.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210614"
25
+ REVISION = "20211005"
26
26
  end
27
27
  end
28
28
  end
@@ -358,6 +358,12 @@ module Google
358
358
  include Google::Apis::Core::JsonObjectSupport
359
359
  end
360
360
 
361
+ class InitializeCustomerRequest
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
361
367
  class IntegerOperatorOptions
362
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
369
 
@@ -616,6 +622,12 @@ module Google
616
622
  include Google::Apis::Core::JsonObjectSupport
617
623
  end
618
624
 
625
+ class QueryInterpretationConfig
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
619
631
  class QueryInterpretationOptions
620
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
621
633
 
@@ -1441,6 +1453,12 @@ module Google
1441
1453
  end
1442
1454
  end
1443
1455
 
1456
+ class InitializeCustomerRequest
1457
+ # @private
1458
+ class Representation < Google::Apis::Core::JsonRepresentation
1459
+ end
1460
+ end
1461
+
1444
1462
  class IntegerOperatorOptions
1445
1463
  # @private
1446
1464
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1917,10 +1935,19 @@ module Google
1917
1935
  end
1918
1936
  end
1919
1937
 
1938
+ class QueryInterpretationConfig
1939
+ # @private
1940
+ class Representation < Google::Apis::Core::JsonRepresentation
1941
+ property :force_disable_supplemental_results, as: 'forceDisableSupplementalResults'
1942
+ property :force_verbatim_mode, as: 'forceVerbatimMode'
1943
+ end
1944
+ end
1945
+
1920
1946
  class QueryInterpretationOptions
1921
1947
  # @private
1922
1948
  class Representation < Google::Apis::Core::JsonRepresentation
1923
1949
  property :disable_nl_interpretation, as: 'disableNlInterpretation'
1950
+ property :disable_supplemental_results, as: 'disableSupplementalResults'
1924
1951
  property :enable_verbatim_mode, as: 'enableVerbatimMode'
1925
1952
  end
1926
1953
  end
@@ -2097,6 +2124,8 @@ module Google
2097
2124
  property :enable_audit_log, as: 'enableAuditLog'
2098
2125
  property :name, as: 'name'
2099
2126
  collection :operation_ids, as: 'operationIds'
2127
+ property :query_interpretation_config, as: 'queryInterpretationConfig', class: Google::Apis::CloudsearchV1::QueryInterpretationConfig, decorator: Google::Apis::CloudsearchV1::QueryInterpretationConfig::Representation
2128
+
2100
2129
  property :scoring_config, as: 'scoringConfig', class: Google::Apis::CloudsearchV1::ScoringConfig, decorator: Google::Apis::CloudsearchV1::ScoringConfig::Representation
2101
2130
 
2102
2131
  collection :source_config, as: 'sourceConfig', class: Google::Apis::CloudsearchV1::SourceConfig, decorator: Google::Apis::CloudsearchV1::SourceConfig::Representation
@@ -1830,6 +1830,37 @@ module Google
1830
1830
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1831
1831
  execute_or_queue_command(command, &block)
1832
1832
  end
1833
+
1834
+ # Initializes the customer. **Note:** This API requires an admin account to
1835
+ # execute.
1836
+ # @param [Google::Apis::CloudsearchV1::InitializeCustomerRequest] initialize_customer_request_object
1837
+ # @param [String] fields
1838
+ # Selector specifying which fields to include in a partial response.
1839
+ # @param [String] quota_user
1840
+ # Available to use for quota purposes for server-side applications. Can be any
1841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1842
+ # @param [Google::Apis::RequestOptions] options
1843
+ # Request-specific options
1844
+ #
1845
+ # @yield [result, err] Result & error if block supplied
1846
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
1847
+ # @yieldparam err [StandardError] error object if request failed
1848
+ #
1849
+ # @return [Google::Apis::CloudsearchV1::Operation]
1850
+ #
1851
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1852
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1853
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1854
+ def initialize_customer(initialize_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1855
+ command = make_simple_command(:post, 'v1:initializeCustomer', options)
1856
+ command.request_representation = Google::Apis::CloudsearchV1::InitializeCustomerRequest::Representation
1857
+ command.request_object = initialize_customer_request_object
1858
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
1859
+ command.response_class = Google::Apis::CloudsearchV1::Operation
1860
+ command.query['fields'] = fields unless fields.nil?
1861
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1862
+ execute_or_queue_command(command, &block)
1863
+ end
1833
1864
 
1834
1865
  protected
1835
1866
 
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.8.0
4
+ version: 0.12.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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/master/generated/google-apis-cloudsearch_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsearch_v1/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsearch_v1/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudsearch_v1
63
63
  post_install_message:
64
64
  rdoc_options: []