Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyModificationFieldError

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

Returns a new instance of GoogleChromePolicyVersionsV1PolicyModificationFieldError.



732
733
734
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 732

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)


725
726
727
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 725

def error
  @error
end

#fieldString

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

Returns:

  • (String)


730
731
732
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 730

def field
  @field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



737
738
739
740
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 737

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