Class: Google::Apis::ReplicapoolV1beta2::Operation::Warning

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

Defined Under Namespace

Classes: Datum

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Warning

Returns a new instance of Warning.



520
521
522
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 520

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

Instance Attribute Details

#codeString

[Output only] The warning type identifier for this warning. Corresponds to the JSON property code

Returns:

  • (String)


508
509
510
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 508

def code
  @code
end

#dataArray<Google::Apis::ReplicapoolV1beta2::Operation::Warning::Datum>

[Output only] Metadata for this warning in key:value format. Corresponds to the JSON property data



513
514
515
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 513

def data
  @data
end

#messageString

[Output only] Optional human-readable details for this warning. Corresponds to the JSON property message

Returns:

  • (String)


518
519
520
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 518

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



525
526
527
528
529
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 525

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @data = args[:data] if args.key?(:data)
  @message = args[:message] if args.key?(:message)
end