Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDescription
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDescription
- 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
Provides detailed information for a particular field that is part of a PolicySchema.
Instance Attribute Summary collapse
-
#default_value ⇒ Object
Output only.
-
#description ⇒ String
Deprecated.
-
#field ⇒ String
Output only.
-
#field_constraints ⇒ Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1FieldConstraints
Information about any range constraints.
-
#field_dependencies ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies>
Output only.
-
#field_description ⇒ String
Output only.
-
#input_constraint ⇒ String
Output only.
-
#known_value_descriptions ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription>
Output only.
-
#name ⇒ String
Output only.
-
#nested_field_descriptions ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDescription>
Output only.
-
#required_items ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaRequiredItems>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicySchemaFieldDescription
constructor
A new instance of GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicySchemaFieldDescription
Returns a new instance of GoogleChromePolicyVersionsV1PolicySchemaFieldDescription.
838 839 840 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 838 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_value ⇒ Object
Output only. Client default if the policy is unset.
Corresponds to the JSON property defaultValue
780 781 782 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 780 def default_value @default_value end |
#description ⇒ String
Deprecated. Use name and field_description instead. The description for the
field.
Corresponds to the JSON property description
786 787 788 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 786 def description @description end |
#field ⇒ String
Output only. The name of the field for associated with this description.
Corresponds to the JSON property field
791 792 793 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 791 def field @field end |
#field_constraints ⇒ Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1FieldConstraints
Information about any range constraints.
Corresponds to the JSON property fieldConstraints
796 797 798 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 796 def field_constraints @field_constraints end |
#field_dependencies ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies>
Output only. Provides a list of fields and values. At least one of the fields
must have the corresponding value in order for this field to be allowed to be
set.
Corresponds to the JSON property fieldDependencies
803 804 805 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 803 def field_dependencies @field_dependencies end |
#field_description ⇒ String
Output only. The description of the field.
Corresponds to the JSON property fieldDescription
808 809 810 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 808 def field_description @field_description end |
#input_constraint ⇒ String
Output only. Any input constraints associated on the values for the field.
Corresponds to the JSON property inputConstraint
813 814 815 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 813 def input_constraint @input_constraint end |
#known_value_descriptions ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription>
Output only. If the field has a set of known values, this field will provide a
description for these values.
Corresponds to the JSON property knownValueDescriptions
819 820 821 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 819 def known_value_descriptions @known_value_descriptions end |
#name ⇒ String
Output only. The name of the field.
Corresponds to the JSON property name
824 825 826 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 824 def name @name end |
#nested_field_descriptions ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDescription>
Output only. Provides the description of the fields nested in this field, if
the field is a message type that defines multiple fields.
Corresponds to the JSON property nestedFieldDescriptions
830 831 832 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 830 def nested_field_descriptions @nested_field_descriptions end |
#required_items ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaRequiredItems>
Output only. Provides a list of fields that are required to be set if this
field has a certain value.
Corresponds to the JSON property requiredItems
836 837 838 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 836 def required_items @required_items end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
843 844 845 846 847 848 849 850 851 852 853 854 855 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 843 def update!(**args) @default_value = args[:default_value] if args.key?(:default_value) @description = args[:description] if args.key?(:description) @field = args[:field] if args.key?(:field) @field_constraints = args[:field_constraints] if args.key?(:field_constraints) @field_dependencies = args[:field_dependencies] if args.key?(:field_dependencies) @field_description = args[:field_description] if args.key?(:field_description) @input_constraint = args[:input_constraint] if args.key?(:input_constraint) @known_value_descriptions = args[:known_value_descriptions] if args.key?(:known_value_descriptions) @name = args[:name] if args.key?(:name) @nested_field_descriptions = args[:nested_field_descriptions] if args.key?(:nested_field_descriptions) @required_items = args[:required_items] if args.key?(:required_items) end |