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

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

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

Returns a new instance of UpdateSchemaRequest



5128
5129
5130
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5128

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



5115
5116
5117
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5115

def debug_options
  @debug_options
end

#schemaGoogle::Apis::CloudsearchV1::Schema

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



5120
5121
5122
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5120

def schema
  @schema
end

#validate_onlyBoolean Also known as: validate_only?

If true, the request will be validated without side effects. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


5125
5126
5127
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5125

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5133
5134
5135
5136
5137
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5133

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