Class: Google::Apis::ManagedkafkaV1::CheckCompatibilityResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/managedkafka_v1/classes.rb,
lib/google/apis/managedkafka_v1/representations.rb,
lib/google/apis/managedkafka_v1/representations.rb

Overview

Response for CheckCompatibility.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CheckCompatibilityResponse

Returns a new instance of CheckCompatibilityResponse.



335
336
337
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 335

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

Instance Attribute Details

#is_compatibleBoolean Also known as: is_compatible?

The compatibility check result. If true, the schema is compatible with the resource. Corresponds to the JSON property is_compatible

Returns:

  • (Boolean)


327
328
329
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 327

def is_compatible
  @is_compatible
end

#messagesArray<String>

Failure reasons if verbose = true. Corresponds to the JSON property messages

Returns:

  • (Array<String>)


333
334
335
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 333

def messages
  @messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



340
341
342
343
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 340

def update!(**args)
  @is_compatible = args[:is_compatible] if args.key?(:is_compatible)
  @messages = args[:messages] if args.key?(:messages)
end