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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Overview

SearchApplication

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SearchApplication

Returns a new instance of SearchApplication.



3900
3901
3902
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3900

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



3854
3855
3856
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3854

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



3862
3863
3864
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3862

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



3867
3868
3869
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3867

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)


3873
3874
3875
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3873

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


3879
3880
3881
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3879

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>)


3886
3887
3888
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3886

def operation_ids
  @operation_ids
end

#scoring_configGoogle::Apis::CloudsearchV1::ScoringConfig

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



3893
3894
3895
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3893

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



3898
3899
3900
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3898

def source_config
  @source_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3905

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)
  @name = args[:name] if args.key?(:name)
  @operation_ids = args[:operation_ids] if args.key?(:operation_ids)
  @scoring_config = args[:scoring_config] if args.key?(:scoring_config)
  @source_config = args[:source_config] if args.key?(:source_config)
end