Class: Google::Apis::CloudsearchV1::UpdateSchemaRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateSchemaRequest

Returns a new instance of UpdateSchemaRequest.



8019
8020
8021
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8019

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

Instance Attribute Details

#debug_optionsGoogle::Apis::CloudsearchV1::DebugOptions

Shared request debug options for all cloudsearch RPC methods. Corresponds to the JSON property debugOptions



8005
8006
8007
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8005

def debug_options
  @debug_options
end

#schemaGoogle::Apis::CloudsearchV1::Schema

The schema definition for a data source. Corresponds to the JSON property schema



8010
8011
8012
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8010

def schema
  @schema
end

#validate_onlyBoolean Also known as: validate_only?

If true, the schema will be checked for validity, but will not be registered with the data source, even if valid. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


8016
8017
8018
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8016

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8024
8025
8026
8027
8028
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8024

def update!(**args)
  @debug_options = args[:debug_options] if args.key?(:debug_options)
  @schema = args[:schema] if args.key?(:schema)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
end