Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaRequiredItems

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

The fields that will become required based on the value of this field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyV1PolicySchemaRequiredItems

Returns a new instance of GoogleChromePolicyV1PolicySchemaRequiredItems.



648
649
650
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 648

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

Instance Attribute Details

#field_conditionsArray<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

Returns:

  • (Array<String>)


641
642
643
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 641

def field_conditions
  @field_conditions
end

#required_fieldsArray<String>

The fields that are required as a consequence of the field conditions. Corresponds to the JSON property requiredFields

Returns:

  • (Array<String>)


646
647
648
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 646

def required_fields
  @required_fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



653
654
655
656
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 653

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