Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies

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 field and the value it must have for another field to be allowed to be set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies

Returns a new instance of GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies.



858
859
860
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 858

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

Instance Attribute Details

#source_fieldString

The source field which this field depends on. Corresponds to the JSON property sourceField

Returns:

  • (String)


850
851
852
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 850

def source_field
  @source_field
end

#source_field_valueString

The value which the source field must have for this field to be allowed to be set. Corresponds to the JSON property sourceFieldValue

Returns:

  • (String)


856
857
858
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 856

def source_field_value
  @source_field_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



863
864
865
866
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 863

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