Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaRequiredItems
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaRequiredItems
- 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
The fields that will become required based on the value of this field.
Instance Attribute Summary collapse
-
#field_conditions ⇒ Array<String>
The value(s) of the field that provoke required field enforcement.
-
#required_fields ⇒ Array<String>
The fields that are required as a consequence of the field conditions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicySchemaRequiredItems
constructor
A new instance of GoogleChromePolicyVersionsV1PolicySchemaRequiredItems.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicySchemaRequiredItems
Returns a new instance of GoogleChromePolicyVersionsV1PolicySchemaRequiredItems.
1047 1048 1049 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1047 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_conditions ⇒ Array<String>
The value(s) of the field that provoke required field enforcement. An empty
field_conditions implies that any value assigned to this field will provoke
required field enforcement.
Corresponds to the JSON property fieldConditions
1040 1041 1042 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1040 def field_conditions @field_conditions end |
#required_fields ⇒ Array<String>
The fields that are required as a consequence of the field conditions.
Corresponds to the JSON property requiredFields
1045 1046 1047 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1045 def required_fields @required_fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1052 1053 1054 1055 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1052 def update!(**args) @field_conditions = args[:field_conditions] if args.key?(:field_conditions) @required_fields = args[:required_fields] if args.key?(:required_fields) end |