google-apis-cloudsearch_v1 0.3.0 → 0.8.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: 95af87362a62ad5ac1756fa47d7b993e79539b59cd7a81643d47380080329bfa
4
- data.tar.gz: 6e80a115df2cbe93de8312085e41e342f523635c1b078469fd7d19fdd80e932e
3
+ metadata.gz: cb80659cf5eb8c074e37066dd3d1f6215a3872381136d22384bb167e075ac35d
4
+ data.tar.gz: 6da0d788e27a0acc1065aca31507624a0fed3bc0c31c6e887aea69c0fdd34691
5
5
  SHA512:
6
- metadata.gz: 9a7fa4ef4dd2aea600a3a1c8649cf575ab71144a71e54ca1b58979328913476b3934a36522101ff4991a7125b6c9db9c9816a92a72c117bf8fe0a2caf7d7ef1e
7
- data.tar.gz: 73815250236415b11a45bb3e3d75dac142fe1cce33dc43cebe15e1f3cb94bbe611ee182455f7af259d6ad74d7e73891371913df69d0feb9c7e832b716cebcb91
6
+ metadata.gz: 2eaf117cc7901ae3c3167c40cbd170535f25ec88c2c4f7eecd4480f747d2236c98e77ec39eafc88952cb671965ccbfe11727ab06f1789a752badc5b5e8945a2e
7
+ data.tar.gz: e5a78497f28feb4fd1632bedf1898bdaa9275ddbde2559ffbb7458bfd27570e3a37df5fe01f1eaf2b7788999dd50152a1d900aaf170b2a4546fa2511adcd2b21
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-cloudsearch_v1
2
2
 
3
+ ### v0.8.0 (2021-06-29)
4
+
5
+ * Regenerated using generator version 0.4.0
6
+
7
+ ### v0.7.0 (2021-06-24)
8
+
9
+ * Regenerated from discovery document revision 20210614
10
+
11
+ ### v0.6.0 (2021-06-15)
12
+
13
+ * Regenerated from discovery document revision 20210608
14
+ * Regenerated using generator version 0.3.0
15
+
16
+ ### v0.5.0 (2021-05-19)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.4.0 (2021-04-16)
21
+
22
+ * Regenerated from discovery document revision 20210406
23
+ * Regenerated using generator version 0.2.0
24
+
3
25
  ### v0.3.0 (2021-03-04)
4
26
 
5
27
  * Regenerated using generator version 0.1.2
@@ -21,8 +21,9 @@ module Google
21
21
  module Apis
22
22
  # Cloud Search API
23
23
  #
24
- # Cloud Search provides cloud-based search capabilities over G Suite data. The
25
- # Cloud Search API allows indexing of non-G Suite data into Cloud Search.
24
+ # Cloud Search provides cloud-based search capabilities over Google Workspace
25
+ # data. The Cloud Search API allows indexing of non-Google Workspace data into
26
+ # Cloud Search.
26
27
  #
27
28
  # @see https://developers.google.com/cloud-search/docs/guides/
28
29
  module CloudsearchV1
@@ -22,6 +22,51 @@ module Google
22
22
  module Apis
23
23
  module CloudsearchV1
24
24
 
25
+ # Represents the settings for Cloud audit logging
26
+ class AuditLoggingSettings
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Indicates whether audit logging is on/off for admin activity read APIs i.e.
30
+ # Get/List DataSources, Get/List SearchApplications etc.
31
+ # Corresponds to the JSON property `logAdminReadActions`
32
+ # @return [Boolean]
33
+ attr_accessor :log_admin_read_actions
34
+ alias_method :log_admin_read_actions?, :log_admin_read_actions
35
+
36
+ # Indicates whether audit logging is on/off for data access read APIs i.e.
37
+ # ListItems, GetItem etc.
38
+ # Corresponds to the JSON property `logDataReadActions`
39
+ # @return [Boolean]
40
+ attr_accessor :log_data_read_actions
41
+ alias_method :log_data_read_actions?, :log_data_read_actions
42
+
43
+ # Indicates whether audit logging is on/off for data access write APIs i.e.
44
+ # IndexItem etc.
45
+ # Corresponds to the JSON property `logDataWriteActions`
46
+ # @return [Boolean]
47
+ attr_accessor :log_data_write_actions
48
+ alias_method :log_data_write_actions?, :log_data_write_actions
49
+
50
+ # The resource name of the GCP Project to store audit logs. Cloud audit logging
51
+ # will be enabled after project_name has been updated through CustomerService.
52
+ # Format: projects/`project_id`
53
+ # Corresponds to the JSON property `project`
54
+ # @return [String]
55
+ attr_accessor :project
56
+
57
+ def initialize(**args)
58
+ update!(**args)
59
+ end
60
+
61
+ # Update properties of this object
62
+ def update!(**args)
63
+ @log_admin_read_actions = args[:log_admin_read_actions] if args.key?(:log_admin_read_actions)
64
+ @log_data_read_actions = args[:log_data_read_actions] if args.key?(:log_data_read_actions)
65
+ @log_data_write_actions = args[:log_data_write_actions] if args.key?(:log_data_write_actions)
66
+ @project = args[:project] if args.key?(:project)
67
+ end
68
+ end
69
+
25
70
  # Used to provide a search operator for boolean properties. This is optional.
26
71
  # Search operators let users restrict the query to specific fields relevant to
27
72
  # the type of item being searched.
@@ -116,6 +161,37 @@ module Google
116
161
  end
117
162
  end
118
163
 
164
+ # A named attribute associated with an item which can be used for influencing
165
+ # the ranking of the item based on the context in the request.
166
+ class ContextAttribute
167
+ include Google::Apis::Core::Hashable
168
+
169
+ # The name of the attribute. It should not be empty. The maximum length is 32
170
+ # characters. The name must start with a letter and can only contain letters (A-
171
+ # Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before
172
+ # being matched.
173
+ # Corresponds to the JSON property `name`
174
+ # @return [String]
175
+ attr_accessor :name
176
+
177
+ # Text values of the attribute. The maximum number of elements is 10. The
178
+ # maximum length of an element in the array is 32 characters. The value will be
179
+ # normalized (lower-cased) before being matched.
180
+ # Corresponds to the JSON property `values`
181
+ # @return [Array<String>]
182
+ attr_accessor :values
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @name = args[:name] if args.key?(:name)
191
+ @values = args[:values] if args.key?(:values)
192
+ end
193
+ end
194
+
119
195
  # Aggregation of items by status code as of the specified date.
120
196
  class CustomerIndexStats
121
197
  include Google::Apis::Core::Hashable
@@ -203,6 +279,32 @@ module Google
203
279
  end
204
280
  end
205
281
 
282
+ # Represents settings at a customer level.
283
+ class CustomerSettings
284
+ include Google::Apis::Core::Hashable
285
+
286
+ # Represents the settings for Cloud audit logging
287
+ # Corresponds to the JSON property `auditLoggingSettings`
288
+ # @return [Google::Apis::CloudsearchV1::AuditLoggingSettings]
289
+ attr_accessor :audit_logging_settings
290
+
291
+ # VPC SC settings for the customer. If update_mask is empty then this field will
292
+ # be updated based on UpdateCustomerSettings request.
293
+ # Corresponds to the JSON property `vpcSettings`
294
+ # @return [Google::Apis::CloudsearchV1::VpcSettings]
295
+ attr_accessor :vpc_settings
296
+
297
+ def initialize(**args)
298
+ update!(**args)
299
+ end
300
+
301
+ # Update properties of this object
302
+ def update!(**args)
303
+ @audit_logging_settings = args[:audit_logging_settings] if args.key?(:audit_logging_settings)
304
+ @vpc_settings = args[:vpc_settings] if args.key?(:vpc_settings)
305
+ end
306
+ end
307
+
206
308
  #
207
309
  class CustomerUserStats
208
310
  include Google::Apis::Core::Hashable
@@ -942,7 +1044,10 @@ module Google
942
1044
  include Google::Apis::Core::Hashable
943
1045
 
944
1046
  # Number of results that match the bucket value. Counts are only returned for
945
- # searches when count accuracy is ensured. Can be empty.
1047
+ # searches when count accuracy is ensured. Cloud Search does not guarantee facet
1048
+ # counts for any query and facet counts might be present only intermittently,
1049
+ # even for identical queries. Do not build dependencies on facet count existence;
1050
+ # instead use facet ount percentages which are always returned.
946
1051
  # Corresponds to the JSON property `count`
947
1052
  # @return [Fixnum]
948
1053
  attr_accessor :count
@@ -1888,6 +1993,13 @@ module Google
1888
1993
  # @return [String]
1889
1994
  attr_accessor :content_language
1890
1995
 
1996
+ # A set of named attributes associated with the item. This can be used for
1997
+ # influencing the ranking of the item based on the context in the request. The
1998
+ # maximum number of elements is 10.
1999
+ # Corresponds to the JSON property `contextAttributes`
2000
+ # @return [Array<Google::Apis::CloudsearchV1::ContextAttribute>]
2001
+ attr_accessor :context_attributes
2002
+
1891
2003
  # The time when the item was created in the source repository.
1892
2004
  # Corresponds to the JSON property `createTime`
1893
2005
  # @return [String]
@@ -1960,6 +2072,7 @@ module Google
1960
2072
  def update!(**args)
1961
2073
  @container_name = args[:container_name] if args.key?(:container_name)
1962
2074
  @content_language = args[:content_language] if args.key?(:content_language)
2075
+ @context_attributes = args[:context_attributes] if args.key?(:context_attributes)
1963
2076
  @create_time = args[:create_time] if args.key?(:create_time)
1964
2077
  @hash_prop = args[:hash_prop] if args.key?(:hash_prop)
1965
2078
  @interactions = args[:interactions] if args.key?(:interactions)
@@ -3775,6 +3888,13 @@ module Google
3775
3888
  # @return [String]
3776
3889
  attr_accessor :display_name
3777
3890
 
3891
+ # Indicates whether audit logging is on/off for requests made for the search
3892
+ # application in query APIs.
3893
+ # Corresponds to the JSON property `enableAuditLog`
3894
+ # @return [Boolean]
3895
+ attr_accessor :enable_audit_log
3896
+ alias_method :enable_audit_log?, :enable_audit_log
3897
+
3778
3898
  # Name of the Search Application. Format: searchapplications/`application_id`.
3779
3899
  # Corresponds to the JSON property `name`
3780
3900
  # @return [String]
@@ -3807,6 +3927,7 @@ module Google
3807
3927
  @default_facet_options = args[:default_facet_options] if args.key?(:default_facet_options)
3808
3928
  @default_sort_options = args[:default_sort_options] if args.key?(:default_sort_options)
3809
3929
  @display_name = args[:display_name] if args.key?(:display_name)
3930
+ @enable_audit_log = args[:enable_audit_log] if args.key?(:enable_audit_log)
3810
3931
  @name = args[:name] if args.key?(:name)
3811
3932
  @operation_ids = args[:operation_ids] if args.key?(:operation_ids)
3812
3933
  @scoring_config = args[:scoring_config] if args.key?(:scoring_config)
@@ -3996,6 +4117,12 @@ module Google
3996
4117
  class SearchRequest
3997
4118
  include Google::Apis::Core::Hashable
3998
4119
 
4120
+ # Context attributes for the request which will be used to adjust ranking of
4121
+ # search results. The maximum number of elements is 10.
4122
+ # Corresponds to the JSON property `contextAttributes`
4123
+ # @return [Array<Google::Apis::CloudsearchV1::ContextAttribute>]
4124
+ attr_accessor :context_attributes
4125
+
3999
4126
  # The sources to use for querying. If not specified, all data sources from the
4000
4127
  # current search application are used.
4001
4128
  # Corresponds to the JSON property `dataSourceRestrictions`
@@ -4046,6 +4173,7 @@ module Google
4046
4173
 
4047
4174
  # Update properties of this object
4048
4175
  def update!(**args)
4176
+ @context_attributes = args[:context_attributes] if args.key?(:context_attributes)
4049
4177
  @data_source_restrictions = args[:data_source_restrictions] if args.key?(:data_source_restrictions)
4050
4178
  @facet_options = args[:facet_options] if args.key?(:facet_options)
4051
4179
  @page_size = args[:page_size] if args.key?(:page_size)
@@ -4927,6 +5055,28 @@ module Google
4927
5055
  end
4928
5056
  end
4929
5057
 
5058
+ #
5059
+ class VpcSettings
5060
+ include Google::Apis::Core::Hashable
5061
+
5062
+ # The resource name of the GCP Project to be used for VPC SC policy check. VPC
5063
+ # security settings on this project will be honored for Cloud Search APIs after
5064
+ # project_name has been updated through CustomerService. Format: projects/`
5065
+ # project_id`
5066
+ # Corresponds to the JSON property `project`
5067
+ # @return [String]
5068
+ attr_accessor :project
5069
+
5070
+ def initialize(**args)
5071
+ update!(**args)
5072
+ end
5073
+
5074
+ # Update properties of this object
5075
+ def update!(**args)
5076
+ @project = args[:project] if args.key?(:project)
5077
+ end
5078
+ end
5079
+
4930
5080
  # Definition of a single value with generic type.
4931
5081
  class Value
4932
5082
  include Google::Apis::Core::Hashable
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201231"
25
+ REVISION = "20210614"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module CloudsearchV1
24
24
 
25
+ class AuditLoggingSettings
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class BooleanOperatorOptions
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -46,6 +52,12 @@ module Google
46
52
  include Google::Apis::Core::JsonObjectSupport
47
53
  end
48
54
 
55
+ class ContextAttribute
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class CustomerIndexStats
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -64,6 +76,12 @@ module Google
64
76
  include Google::Apis::Core::JsonObjectSupport
65
77
  end
66
78
 
79
+ class CustomerSettings
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
67
85
  class CustomerUserStats
68
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
87
 
@@ -922,6 +940,12 @@ module Google
922
940
  include Google::Apis::Core::JsonObjectSupport
923
941
  end
924
942
 
943
+ class VpcSettings
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
925
949
  class Value
926
950
  class Representation < Google::Apis::Core::JsonRepresentation; end
927
951
 
@@ -934,6 +958,16 @@ module Google
934
958
  include Google::Apis::Core::JsonObjectSupport
935
959
  end
936
960
 
961
+ class AuditLoggingSettings
962
+ # @private
963
+ class Representation < Google::Apis::Core::JsonRepresentation
964
+ property :log_admin_read_actions, as: 'logAdminReadActions'
965
+ property :log_data_read_actions, as: 'logDataReadActions'
966
+ property :log_data_write_actions, as: 'logDataWriteActions'
967
+ property :project, as: 'project'
968
+ end
969
+ end
970
+
937
971
  class BooleanOperatorOptions
938
972
  # @private
939
973
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -965,6 +999,14 @@ module Google
965
999
  end
966
1000
  end
967
1001
 
1002
+ class ContextAttribute
1003
+ # @private
1004
+ class Representation < Google::Apis::Core::JsonRepresentation
1005
+ property :name, as: 'name'
1006
+ collection :values, as: 'values'
1007
+ end
1008
+ end
1009
+
968
1010
  class CustomerIndexStats
969
1011
  # @private
970
1012
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -994,6 +1036,16 @@ module Google
994
1036
  end
995
1037
  end
996
1038
 
1039
+ class CustomerSettings
1040
+ # @private
1041
+ class Representation < Google::Apis::Core::JsonRepresentation
1042
+ property :audit_logging_settings, as: 'auditLoggingSettings', class: Google::Apis::CloudsearchV1::AuditLoggingSettings, decorator: Google::Apis::CloudsearchV1::AuditLoggingSettings::Representation
1043
+
1044
+ property :vpc_settings, as: 'vpcSettings', class: Google::Apis::CloudsearchV1::VpcSettings, decorator: Google::Apis::CloudsearchV1::VpcSettings::Representation
1045
+
1046
+ end
1047
+ end
1048
+
997
1049
  class CustomerUserStats
998
1050
  # @private
999
1051
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1485,6 +1537,8 @@ module Google
1485
1537
  class Representation < Google::Apis::Core::JsonRepresentation
1486
1538
  property :container_name, as: 'containerName'
1487
1539
  property :content_language, as: 'contentLanguage'
1540
+ collection :context_attributes, as: 'contextAttributes', class: Google::Apis::CloudsearchV1::ContextAttribute, decorator: Google::Apis::CloudsearchV1::ContextAttribute::Representation
1541
+
1488
1542
  property :create_time, as: 'createTime'
1489
1543
  property :hash_prop, as: 'hash'
1490
1544
  collection :interactions, as: 'interactions', class: Google::Apis::CloudsearchV1::Interaction, decorator: Google::Apis::CloudsearchV1::Interaction::Representation
@@ -2040,6 +2094,7 @@ module Google
2040
2094
  property :default_sort_options, as: 'defaultSortOptions', class: Google::Apis::CloudsearchV1::SortOptions, decorator: Google::Apis::CloudsearchV1::SortOptions::Representation
2041
2095
 
2042
2096
  property :display_name, as: 'displayName'
2097
+ property :enable_audit_log, as: 'enableAuditLog'
2043
2098
  property :name, as: 'name'
2044
2099
  collection :operation_ids, as: 'operationIds'
2045
2100
  property :scoring_config, as: 'scoringConfig', class: Google::Apis::CloudsearchV1::ScoringConfig, decorator: Google::Apis::CloudsearchV1::ScoringConfig::Representation
@@ -2108,6 +2163,8 @@ module Google
2108
2163
  class SearchRequest
2109
2164
  # @private
2110
2165
  class Representation < Google::Apis::Core::JsonRepresentation
2166
+ collection :context_attributes, as: 'contextAttributes', class: Google::Apis::CloudsearchV1::ContextAttribute, decorator: Google::Apis::CloudsearchV1::ContextAttribute::Representation
2167
+
2111
2168
  collection :data_source_restrictions, as: 'dataSourceRestrictions', class: Google::Apis::CloudsearchV1::DataSourceRestriction, decorator: Google::Apis::CloudsearchV1::DataSourceRestriction::Representation
2112
2169
 
2113
2170
  collection :facet_options, as: 'facetOptions', class: Google::Apis::CloudsearchV1::FacetOptions, decorator: Google::Apis::CloudsearchV1::FacetOptions::Representation
@@ -2397,6 +2454,13 @@ module Google
2397
2454
  end
2398
2455
  end
2399
2456
 
2457
+ class VpcSettings
2458
+ # @private
2459
+ class Representation < Google::Apis::Core::JsonRepresentation
2460
+ property :project, as: 'project'
2461
+ end
2462
+ end
2463
+
2400
2464
  class Value
2401
2465
  # @private
2402
2466
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -22,8 +22,9 @@ module Google
22
22
  module CloudsearchV1
23
23
  # Cloud Search API
24
24
  #
25
- # Cloud Search provides cloud-based search capabilities over G Suite data. The
26
- # Cloud Search API allows indexing of non-G Suite data into Cloud Search.
25
+ # Cloud Search provides cloud-based search capabilities over Google Workspace
26
+ # data. The Cloud Search API allows indexing of non-Google Workspace data into
27
+ # Cloud Search.
27
28
  #
28
29
  # @example
29
30
  # require 'google/apis/cloudsearch_v1'
@@ -868,13 +869,13 @@ module Google
868
869
  end
869
870
 
870
871
  # The Cloud Search Query API provides the search method, which returns the most
871
- # relevant results from a user query. The results can come from G Suite Apps,
872
- # such as Gmail or Google Drive, or they can come from data that you have
872
+ # relevant results from a user query. The results can come from Google Workspace
873
+ # apps, such as Gmail or Google Drive, or they can come from data that you have
873
874
  # indexed from a third party. **Note:** This API requires a standard end user
874
875
  # account to execute. A service account can't perform Query API requests
875
- # directly; to use a service account to perform queries, set up [G Suite domain-
876
- # wide delegation of authority](https://developers.google.com/cloud-search/docs/
877
- # guides/delegation/).
876
+ # directly; to use a service account to perform queries, set up [Google
877
+ # Workspace domain-wide delegation of authority](https://developers.google.com/
878
+ # cloud-search/docs/guides/delegation/).
878
879
  # @param [Google::Apis::CloudsearchV1::SearchRequest] search_request_object
879
880
  # @param [String] fields
880
881
  # Selector specifying which fields to include in a partial response.
@@ -906,9 +907,9 @@ module Google
906
907
 
907
908
  # Provides suggestions for autocompleting the query. **Note:** This API requires
908
909
  # a standard end user account to execute. A service account can't perform Query
909
- # API requests directly; to use a service account to perform queries, set up [G
910
- # Suite domain-wide delegation of authority](https://developers.google.com/cloud-
911
- # search/docs/guides/delegation/).
910
+ # API requests directly; to use a service account to perform queries, set up [
911
+ # Google Workspace domain-wide delegation of authority](https://developers.
912
+ # google.com/cloud-search/docs/guides/delegation/).
912
913
  # @param [Google::Apis::CloudsearchV1::SuggestRequest] suggest_request_object
913
914
  # @param [String] fields
914
915
  # Selector specifying which fields to include in a partial response.
@@ -941,7 +942,7 @@ module Google
941
942
  # Returns list of sources that user can use for Search and Suggest APIs. **Note:*
942
943
  # * This API requires a standard end user account to execute. A service account
943
944
  # can't perform Query API requests directly; to use a service account to perform
944
- # queries, set up [G Suite domain-wide delegation of authority](https://
945
+ # queries, set up [Google Workspace domain-wide delegation of authority](https://
945
946
  # developers.google.com/cloud-search/docs/guides/delegation/).
946
947
  # @param [String] page_token
947
948
  # Number of sources to return in the response.
@@ -998,6 +999,70 @@ module Google
998
999
  execute_or_queue_command(command, &block)
999
1000
  end
1000
1001
 
1002
+ # Get customer settings. **Note:** This API requires an admin account to execute.
1003
+ # @param [String] fields
1004
+ # Selector specifying which fields to include in a partial response.
1005
+ # @param [String] quota_user
1006
+ # Available to use for quota purposes for server-side applications. Can be any
1007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1008
+ # @param [Google::Apis::RequestOptions] options
1009
+ # Request-specific options
1010
+ #
1011
+ # @yield [result, err] Result & error if block supplied
1012
+ # @yieldparam result [Google::Apis::CloudsearchV1::CustomerSettings] parsed result object
1013
+ # @yieldparam err [StandardError] error object if request failed
1014
+ #
1015
+ # @return [Google::Apis::CloudsearchV1::CustomerSettings]
1016
+ #
1017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1020
+ def get_setting_customer(fields: nil, quota_user: nil, options: nil, &block)
1021
+ command = make_simple_command(:get, 'v1/settings/customer', options)
1022
+ command.response_representation = Google::Apis::CloudsearchV1::CustomerSettings::Representation
1023
+ command.response_class = Google::Apis::CloudsearchV1::CustomerSettings
1024
+ command.query['fields'] = fields unless fields.nil?
1025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
+ execute_or_queue_command(command, &block)
1027
+ end
1028
+
1029
+ # Update customer settings. **Note:** This API requires an admin account to
1030
+ # execute.
1031
+ # @param [Google::Apis::CloudsearchV1::CustomerSettings] customer_settings_object
1032
+ # @param [String] update_mask
1033
+ # Update mask to control which fields get updated. If you specify a field in the
1034
+ # update_mask but don't specify its value here, that field will be cleared. If
1035
+ # the mask is not present or empty, all fields will be updated. Currently
1036
+ # supported field paths: vpc_settings and audit_logging_settings
1037
+ # @param [String] fields
1038
+ # Selector specifying which fields to include in a partial response.
1039
+ # @param [String] quota_user
1040
+ # Available to use for quota purposes for server-side applications. Can be any
1041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1042
+ # @param [Google::Apis::RequestOptions] options
1043
+ # Request-specific options
1044
+ #
1045
+ # @yield [result, err] Result & error if block supplied
1046
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
1047
+ # @yieldparam err [StandardError] error object if request failed
1048
+ #
1049
+ # @return [Google::Apis::CloudsearchV1::Operation]
1050
+ #
1051
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1052
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1053
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1054
+ def update_setting_customer(customer_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1055
+ command = make_simple_command(:patch, 'v1/settings/customer', options)
1056
+ command.request_representation = Google::Apis::CloudsearchV1::CustomerSettings::Representation
1057
+ command.request_object = customer_settings_object
1058
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
1059
+ command.response_class = Google::Apis::CloudsearchV1::Operation
1060
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1061
+ command.query['fields'] = fields unless fields.nil?
1062
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1063
+ execute_or_queue_command(command, &block)
1064
+ end
1065
+
1001
1066
  # Creates a datasource. **Note:** This API requires an admin account to execute.
1002
1067
  # @param [Google::Apis::CloudsearchV1::DataSource] data_source_object
1003
1068
  # @param [String] fields
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudsearch_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Search API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudsearch_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsearch_v1/v0.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsearch_v1/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudsearch_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Cloud Search API V1