Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyModificationError
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyModificationError
- 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 policy on a specific target.
Instance Attribute Summary collapse
-
#errors ⇒ Array<String>
Output only.
-
#field_errors ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyModificationFieldError>
Output only.
-
#policy_schema ⇒ String
Output only.
-
#policy_target_key ⇒ Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyTargetKey
The key used to identify the target on which the policy will be applied.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicyModificationError
constructor
A new instance of GoogleChromePolicyVersionsV1PolicyModificationError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicyModificationError
Returns a new instance of GoogleChromePolicyVersionsV1PolicyModificationError.
682 683 684 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 682 def initialize(**args) update!(**args) end |
Instance Attribute Details
#errors ⇒ Array<String>
Output only. The non-field errors related to the modification.
Corresponds to the JSON property errors
665 666 667 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 665 def errors @errors end |
#field_errors ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyModificationFieldError>
Output only. The error messages related to the modification.
Corresponds to the JSON property fieldErrors
670 671 672 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 670 def field_errors @field_errors end |
#policy_schema ⇒ String
Output only. The specific policy schema modification that had an error.
Corresponds to the JSON property policySchema
675 676 677 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 675 def policy_schema @policy_schema end |
#policy_target_key ⇒ Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyTargetKey
The key used to identify the target on which the policy will be applied.
Corresponds to the JSON property policyTargetKey
680 681 682 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 680 def policy_target_key @policy_target_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
687 688 689 690 691 692 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 687 def update!(**args) @errors = args[:errors] if args.key?(:errors) @field_errors = args[:field_errors] if args.key?(:field_errors) @policy_schema = args[:policy_schema] if args.key?(:policy_schema) @policy_target_key = args[:policy_target_key] if args.key?(:policy_target_key) end |