Class: Google::Apis::CloudsearchV1::DataSource
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DataSource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search.
Instance Attribute Summary collapse
-
#disable_modifications ⇒ Boolean
(also: #disable_modifications?)
If true, sets the datasource to read-only mode.
-
#disable_serving ⇒ Boolean
(also: #disable_serving?)
Disable serving any search or assist results.
-
#display_name ⇒ String
Required.
-
#indexing_service_accounts ⇒ Array<String>
List of service accounts that have indexing access.
-
#items_visibility ⇒ Array<Google::Apis::CloudsearchV1::GSuitePrincipal>
This field restricts visibility to items at the datasource level.
-
#name ⇒ String
The name of the datasource resource.
-
#operation_ids ⇒ Array<String>
IDs of the Long Running Operations (LROs) currently running for this schema.
-
#return_thumbnail_urls ⇒ Boolean
(also: #return_thumbnail_urls?)
Can a user request to get thumbnail URI for Items indexed in this data source.
-
#short_name ⇒ String
A short name or alias for the source.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSource
constructor
A new instance of DataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSource
Returns a new instance of DataSource.
7265 7266 7267 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7265 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_modifications ⇒ Boolean Also known as: disable_modifications?
If true, sets the datasource to read-only mode. In read-only mode, the
Indexing API rejects any requests to index or delete items in this source.
Enabling read-only mode does not stop the processing of previously accepted
data.
Corresponds to the JSON property disableModifications
7208 7209 7210 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7208 def disable_modifications @disable_modifications end |
#disable_serving ⇒ Boolean Also known as: disable_serving?
Disable serving any search or assist results.
Corresponds to the JSON property disableServing
7214 7215 7216 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7214 def disable_serving @disable_serving end |
#display_name ⇒ String
Required. Display name of the datasource The maximum length is 300 characters.
Corresponds to the JSON property displayName
7220 7221 7222 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7220 def display_name @display_name end |
#indexing_service_accounts ⇒ Array<String>
List of service accounts that have indexing access.
Corresponds to the JSON property indexingServiceAccounts
7225 7226 7227 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7225 def indexing_service_accounts @indexing_service_accounts end |
#items_visibility ⇒ Array<Google::Apis::CloudsearchV1::GSuitePrincipal>
This field restricts visibility to items at the datasource level. Items within
the datasource are restricted to the union of users and groups included in
this field. Note that, this does not ensure access to a specific item, as
users need to have ACL permissions on the contained items. This ensures a high
level access on the entire datasource, and that the individual items are not
shared outside this visibility.
Corresponds to the JSON property itemsVisibility
7235 7236 7237 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7235 def items_visibility @items_visibility end |
#name ⇒ String
The name of the datasource resource. Format: datasources/source_id
. The name
is ignored when creating a datasource.
Corresponds to the JSON property name
7241 7242 7243 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7241 def name @name end |
#operation_ids ⇒ Array<String>
IDs of the Long Running Operations (LROs) currently running for this schema.
Corresponds to the JSON property operationIds
7246 7247 7248 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7246 def operation_ids @operation_ids end |
#return_thumbnail_urls ⇒ Boolean Also known as: return_thumbnail_urls?
Can a user request to get thumbnail URI for Items indexed in this data source.
Corresponds to the JSON property returnThumbnailUrls
7251 7252 7253 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7251 def return_thumbnail_urls @return_thumbnail_urls end |
#short_name ⇒ String
A short name or alias for the source. This value will be used to match the '
source' operator. For example, if the short name is shortName
7263 7264 7265 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7263 def short_name @short_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7270 def update!(**args) @disable_modifications = args[:disable_modifications] if args.key?(:disable_modifications) @disable_serving = args[:disable_serving] if args.key?(:disable_serving) @display_name = args[:display_name] if args.key?(:display_name) @indexing_service_accounts = args[:indexing_service_accounts] if args.key?(:indexing_service_accounts) @items_visibility = args[:items_visibility] if args.key?(:items_visibility) @name = args[:name] if args.key?(:name) @operation_ids = args[:operation_ids] if args.key?(:operation_ids) @return_thumbnail_urls = args[:return_thumbnail_urls] if args.key?(:return_thumbnail_urls) @short_name = args[:short_name] if args.key?(:short_name) end |