google-apis-cloudsearch_v1 0.3.0 → 0.4.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e64fb64f2e059e0aca5ae4b921dd49d32b8c34c01af333b96f739966009684f4
|
|
4
|
+
data.tar.gz: c30e0c83541909fcf0967f4b08a135eb9ea34f542f05659e8ef9079ffa5e1694
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c9ae457e35b2ab9591a8f3958822eb58097942c523d30f4c9646b1568b4cc23dfa6543c45fa1e653f635a244d5ba2cc169882b5f5e95c00d72f5a82920d4ef3
|
|
7
|
+
data.tar.gz: d87d347d99be776c19f7782814a9ec3b765fbf3d06d862275a984e87a553dfd59f512ceb8ac09f9d463db3b1181bb48973c1cec8f21372a230bbe87b2a333113
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
@@ -1888,6 +1990,13 @@ module Google
|
|
|
1888
1990
|
# @return [String]
|
|
1889
1991
|
attr_accessor :content_language
|
|
1890
1992
|
|
|
1993
|
+
# A set of named attributes associated with the item. This can be used for
|
|
1994
|
+
# influencing the ranking of the item based on the context in the request. The
|
|
1995
|
+
# maximum number of elements is 10.
|
|
1996
|
+
# Corresponds to the JSON property `contextAttributes`
|
|
1997
|
+
# @return [Array<Google::Apis::CloudsearchV1::ContextAttribute>]
|
|
1998
|
+
attr_accessor :context_attributes
|
|
1999
|
+
|
|
1891
2000
|
# The time when the item was created in the source repository.
|
|
1892
2001
|
# Corresponds to the JSON property `createTime`
|
|
1893
2002
|
# @return [String]
|
|
@@ -1960,6 +2069,7 @@ module Google
|
|
|
1960
2069
|
def update!(**args)
|
|
1961
2070
|
@container_name = args[:container_name] if args.key?(:container_name)
|
|
1962
2071
|
@content_language = args[:content_language] if args.key?(:content_language)
|
|
2072
|
+
@context_attributes = args[:context_attributes] if args.key?(:context_attributes)
|
|
1963
2073
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1964
2074
|
@hash_prop = args[:hash_prop] if args.key?(:hash_prop)
|
|
1965
2075
|
@interactions = args[:interactions] if args.key?(:interactions)
|
|
@@ -3775,6 +3885,13 @@ module Google
|
|
|
3775
3885
|
# @return [String]
|
|
3776
3886
|
attr_accessor :display_name
|
|
3777
3887
|
|
|
3888
|
+
# Indicates whether audit logging is on/off for requests made for the search
|
|
3889
|
+
# application in query APIs.
|
|
3890
|
+
# Corresponds to the JSON property `enableAuditLog`
|
|
3891
|
+
# @return [Boolean]
|
|
3892
|
+
attr_accessor :enable_audit_log
|
|
3893
|
+
alias_method :enable_audit_log?, :enable_audit_log
|
|
3894
|
+
|
|
3778
3895
|
# Name of the Search Application. Format: searchapplications/`application_id`.
|
|
3779
3896
|
# Corresponds to the JSON property `name`
|
|
3780
3897
|
# @return [String]
|
|
@@ -3807,6 +3924,7 @@ module Google
|
|
|
3807
3924
|
@default_facet_options = args[:default_facet_options] if args.key?(:default_facet_options)
|
|
3808
3925
|
@default_sort_options = args[:default_sort_options] if args.key?(:default_sort_options)
|
|
3809
3926
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
3927
|
+
@enable_audit_log = args[:enable_audit_log] if args.key?(:enable_audit_log)
|
|
3810
3928
|
@name = args[:name] if args.key?(:name)
|
|
3811
3929
|
@operation_ids = args[:operation_ids] if args.key?(:operation_ids)
|
|
3812
3930
|
@scoring_config = args[:scoring_config] if args.key?(:scoring_config)
|
|
@@ -3996,6 +4114,12 @@ module Google
|
|
|
3996
4114
|
class SearchRequest
|
|
3997
4115
|
include Google::Apis::Core::Hashable
|
|
3998
4116
|
|
|
4117
|
+
# Context attributes for the request which will be used to adjust ranking of
|
|
4118
|
+
# search results. The maximum number of elements is 10.
|
|
4119
|
+
# Corresponds to the JSON property `contextAttributes`
|
|
4120
|
+
# @return [Array<Google::Apis::CloudsearchV1::ContextAttribute>]
|
|
4121
|
+
attr_accessor :context_attributes
|
|
4122
|
+
|
|
3999
4123
|
# The sources to use for querying. If not specified, all data sources from the
|
|
4000
4124
|
# current search application are used.
|
|
4001
4125
|
# Corresponds to the JSON property `dataSourceRestrictions`
|
|
@@ -4046,6 +4170,7 @@ module Google
|
|
|
4046
4170
|
|
|
4047
4171
|
# Update properties of this object
|
|
4048
4172
|
def update!(**args)
|
|
4173
|
+
@context_attributes = args[:context_attributes] if args.key?(:context_attributes)
|
|
4049
4174
|
@data_source_restrictions = args[:data_source_restrictions] if args.key?(:data_source_restrictions)
|
|
4050
4175
|
@facet_options = args[:facet_options] if args.key?(:facet_options)
|
|
4051
4176
|
@page_size = args[:page_size] if args.key?(:page_size)
|
|
@@ -4927,6 +5052,28 @@ module Google
|
|
|
4927
5052
|
end
|
|
4928
5053
|
end
|
|
4929
5054
|
|
|
5055
|
+
#
|
|
5056
|
+
class VpcSettings
|
|
5057
|
+
include Google::Apis::Core::Hashable
|
|
5058
|
+
|
|
5059
|
+
# The resource name of the GCP Project to be used for VPC SC policy check. VPC
|
|
5060
|
+
# security settings on this project will be honored for Cloud Search APIs after
|
|
5061
|
+
# project_name has been updated through CustomerService. Format: projects/`
|
|
5062
|
+
# project_id`
|
|
5063
|
+
# Corresponds to the JSON property `project`
|
|
5064
|
+
# @return [String]
|
|
5065
|
+
attr_accessor :project
|
|
5066
|
+
|
|
5067
|
+
def initialize(**args)
|
|
5068
|
+
update!(**args)
|
|
5069
|
+
end
|
|
5070
|
+
|
|
5071
|
+
# Update properties of this object
|
|
5072
|
+
def update!(**args)
|
|
5073
|
+
@project = args[:project] if args.key?(:project)
|
|
5074
|
+
end
|
|
5075
|
+
end
|
|
5076
|
+
|
|
4930
5077
|
# Definition of a single value with generic type.
|
|
4931
5078
|
class Value
|
|
4932
5079
|
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.
|
|
19
|
+
GEM_VERSION = "0.4.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20210406"
|
|
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
|
|
@@ -998,6 +998,70 @@ module Google
|
|
|
998
998
|
execute_or_queue_command(command, &block)
|
|
999
999
|
end
|
|
1000
1000
|
|
|
1001
|
+
# Get customer settings. **Note:** This API requires an admin account to execute.
|
|
1002
|
+
# @param [String] fields
|
|
1003
|
+
# Selector specifying which fields to include in a partial response.
|
|
1004
|
+
# @param [String] quota_user
|
|
1005
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1006
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1007
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1008
|
+
# Request-specific options
|
|
1009
|
+
#
|
|
1010
|
+
# @yield [result, err] Result & error if block supplied
|
|
1011
|
+
# @yieldparam result [Google::Apis::CloudsearchV1::CustomerSettings] parsed result object
|
|
1012
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1013
|
+
#
|
|
1014
|
+
# @return [Google::Apis::CloudsearchV1::CustomerSettings]
|
|
1015
|
+
#
|
|
1016
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1017
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1018
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1019
|
+
def get_setting_customer(fields: nil, quota_user: nil, options: nil, &block)
|
|
1020
|
+
command = make_simple_command(:get, 'v1/settings/customer', options)
|
|
1021
|
+
command.response_representation = Google::Apis::CloudsearchV1::CustomerSettings::Representation
|
|
1022
|
+
command.response_class = Google::Apis::CloudsearchV1::CustomerSettings
|
|
1023
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1024
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1025
|
+
execute_or_queue_command(command, &block)
|
|
1026
|
+
end
|
|
1027
|
+
|
|
1028
|
+
# Update customer settings. **Note:** This API requires an admin account to
|
|
1029
|
+
# execute.
|
|
1030
|
+
# @param [Google::Apis::CloudsearchV1::CustomerSettings] customer_settings_object
|
|
1031
|
+
# @param [String] update_mask
|
|
1032
|
+
# Update mask to control which fields get updated. If you specify a field in the
|
|
1033
|
+
# update_mask but don't specify its value here, that field will be cleared. If
|
|
1034
|
+
# the mask is not present or empty, all fields will be updated. Currently
|
|
1035
|
+
# supported field paths: vpc_settings and audit_logging_settings
|
|
1036
|
+
# @param [String] fields
|
|
1037
|
+
# Selector specifying which fields to include in a partial response.
|
|
1038
|
+
# @param [String] quota_user
|
|
1039
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1040
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1041
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1042
|
+
# Request-specific options
|
|
1043
|
+
#
|
|
1044
|
+
# @yield [result, err] Result & error if block supplied
|
|
1045
|
+
# @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
|
|
1046
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1047
|
+
#
|
|
1048
|
+
# @return [Google::Apis::CloudsearchV1::Operation]
|
|
1049
|
+
#
|
|
1050
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1051
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1052
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1053
|
+
def update_setting_customer(customer_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1054
|
+
command = make_simple_command(:patch, 'v1/settings/customer', options)
|
|
1055
|
+
command.request_representation = Google::Apis::CloudsearchV1::CustomerSettings::Representation
|
|
1056
|
+
command.request_object = customer_settings_object
|
|
1057
|
+
command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
|
|
1058
|
+
command.response_class = Google::Apis::CloudsearchV1::Operation
|
|
1059
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
1060
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1061
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1062
|
+
execute_or_queue_command(command, &block)
|
|
1063
|
+
end
|
|
1064
|
+
|
|
1001
1065
|
# Creates a datasource. **Note:** This API requires an admin account to execute.
|
|
1002
1066
|
# @param [Google::Apis::CloudsearchV1::DataSource] data_source_object
|
|
1003
1067
|
# @param [String] fields
|
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.
|
|
4
|
+
version: 0.4.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-
|
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-apis-core
|
|
@@ -52,7 +52,7 @@ licenses:
|
|
|
52
52
|
metadata:
|
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
54
54
|
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.
|
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsearch_v1/v0.4.0
|
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudsearch_v1
|
|
57
57
|
post_install_message:
|
|
58
58
|
rdoc_options: []
|
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
70
|
version: '0'
|
|
71
71
|
requirements: []
|
|
72
|
-
rubygems_version: 3.2.
|
|
72
|
+
rubygems_version: 3.2.17
|
|
73
73
|
signing_key:
|
|
74
74
|
specification_version: 4
|
|
75
75
|
summary: Simple REST client for Cloud Search API V1
|