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.



706
707
708
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 706

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)


699
700
701
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 699

def error
  @error
end

#fieldString

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

Returns:

  • (String)


704
705
706
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 704

def field
  @field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



711
712
713
714
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 711

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