Class: Google::Apis::CloudsearchV1::SearchApplication

Inherits:
Object
  • Object
show all
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

SearchApplication

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchApplication

Returns a new instance of SearchApplication.



17863
17864
17865
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17863

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#data_source_restrictionsArray<Google::Apis::CloudsearchV1::DataSourceRestriction>

Retrictions applied to the configurations. The maximum number of elements is 10. Corresponds to the JSON property dataSourceRestrictions



17804
17805
17806
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17804

def data_source_restrictions
  @data_source_restrictions
end

#default_facet_optionsArray<Google::Apis::CloudsearchV1::FacetOptions>

The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above. Corresponds to the JSON property defaultFacetOptions



17810
17811
17812
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17810

def default_facet_options
  @default_facet_options
end

#default_sort_optionsGoogle::Apis::CloudsearchV1::SortOptions

The default options for sorting the search results Corresponds to the JSON property defaultSortOptions



17815
17816
17817
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17815

def default_sort_options
  @default_sort_options
end

#display_nameString

Display name of the Search Application. The maximum length is 300 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


17820
17821
17822
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17820

def display_name
  @display_name
end

#enable_audit_logBoolean Also known as: enable_audit_log?

Indicates whether audit logging is on/off for requests made for the search application in query APIs. Corresponds to the JSON property enableAuditLog

Returns:

  • (Boolean)


17826
17827
17828
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17826

def enable_audit_log
  @enable_audit_log
end

#nameString

The name of the Search Application. Format: searchapplications/application_id . Corresponds to the JSON property name

Returns:

  • (String)


17833
17834
17835
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17833

def name
  @name
end

#operation_idsArray<String>

Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field. Corresponds to the JSON property operationIds

Returns:

  • (Array<String>)


17839
17840
17841
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17839

def operation_ids
  @operation_ids
end

#query_interpretation_configGoogle::Apis::CloudsearchV1::QueryInterpretationConfig

Default options to interpret user query. Corresponds to the JSON property queryInterpretationConfig



17844
17845
17846
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17844

def query_interpretation_config
  @query_interpretation_config
end

#return_result_thumbnail_urlsBoolean Also known as: return_result_thumbnail_urls?

With each result we should return the URI for its thumbnail (when applicable) Corresponds to the JSON property returnResultThumbnailUrls

Returns:

  • (Boolean)


17849
17850
17851
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17849

def return_result_thumbnail_urls
  @return_result_thumbnail_urls
end

#scoring_configGoogle::Apis::CloudsearchV1::ScoringConfig

Scoring configurations for a source while processing a Search or Suggest request. Corresponds to the JSON property scoringConfig



17856
17857
17858
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17856

def scoring_config
  @scoring_config
end

#source_configArray<Google::Apis::CloudsearchV1::SourceConfig>

Configuration for a sources specified in data_source_restrictions. Corresponds to the JSON property sourceConfig



17861
17862
17863
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17861

def source_config
  @source_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17868

def update!(**args)
  @data_source_restrictions = args[:data_source_restrictions] if args.key?(:data_source_restrictions)
  @default_facet_options = args[:default_facet_options] if args.key?(:default_facet_options)
  @default_sort_options = args[:default_sort_options] if args.key?(:default_sort_options)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enable_audit_log = args[:enable_audit_log] if args.key?(:enable_audit_log)
  @name = args[:name] if args.key?(:name)
  @operation_ids = args[:operation_ids] if args.key?(:operation_ids)
  @query_interpretation_config = args[:query_interpretation_config] if args.key?(:query_interpretation_config)
  @return_result_thumbnail_urls = args[:return_result_thumbnail_urls] if args.key?(:return_result_thumbnail_urls)
  @scoring_config = args[:scoring_config] if args.key?(:scoring_config)
  @source_config = args[:source_config] if args.key?(:source_config)
end