Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyModificationFieldError

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

Overview

Error information for a modification request of a specific field on a specific policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyV1PolicyModificationFieldError

Returns a new instance of GoogleChromePolicyV1PolicyModificationFieldError.



517
518
519
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 517

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

Instance Attribute Details

#errorString

Output only. The error message related to the field. Corresponds to the JSON property error

Returns:

  • (String)


510
511
512
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 510

def error
  @error
end

#fieldString

Output only. The name of the field with the error. Corresponds to the JSON property field

Returns:

  • (String)


515
516
517
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 515

def field
  @field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



522
523
524
525
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 522

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