Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1FieldConstraints

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

Information about any range constraints.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1FieldConstraints

Returns a new instance of GoogleChromePolicyVersionsV1FieldConstraints.



357
358
359
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 357

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

Instance Attribute Details

#numeric_range_constraintGoogle::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1NumericRangeConstraint

A constraint on upper and/or lower bounds, with at least one being set. Corresponds to the JSON property numericRangeConstraint



350
351
352
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 350

def numeric_range_constraint
  @numeric_range_constraint
end

#uploaded_file_constraintsGoogle::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1UploadedFileConstraints

Constraints on the uploaded file of a file policy. Corresponds to the JSON property uploadedFileConstraints



355
356
357
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 355

def uploaded_file_constraints
  @uploaded_file_constraints
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



362
363
364
365
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 362

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