Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldDescription

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

Provides detailed information for a particular field that is part of a PolicySchema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyV1PolicySchemaFieldDescription

Returns a new instance of GoogleChromePolicyV1PolicySchemaFieldDescription.



375
376
377
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 375

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

Instance Attribute Details

#descriptionString

Output only. The description for the field. Corresponds to the JSON property description

Returns:

  • (String)


345
346
347
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 345

def description
  @description
end

#fieldString

Output only. The name of the field for associated with this description. Corresponds to the JSON property field

Returns:

  • (String)


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

def field
  @field
end

#field_dependenciesArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldDependencies>

Output only. Provides a list of fields and the values they must have for this field to be allowed to be set. Corresponds to the JSON property fieldDependencies



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

def field_dependencies
  @field_dependencies
end

#input_constraintString

Output only. Any input constraints associated on the values for the field. Corresponds to the JSON property inputConstraint

Returns:

  • (String)


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

def input_constraint
  @input_constraint
end

#known_value_descriptionsArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldKnownValueDescription>

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



367
368
369
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 367

def known_value_descriptions
  @known_value_descriptions
end

#nested_field_descriptionsArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldDescription>

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



373
374
375
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 373

def nested_field_descriptions
  @nested_field_descriptions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



380
381
382
383
384
385
386
387
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 380

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @field = args[:field] if args.key?(:field)
  @field_dependencies = args[:field_dependencies] if args.key?(:field_dependencies)
  @input_constraint = args[:input_constraint] if args.key?(:input_constraint)
  @known_value_descriptions = args[:known_value_descriptions] if args.key?(:known_value_descriptions)
  @nested_field_descriptions = args[:nested_field_descriptions] if args.key?(:nested_field_descriptions)
end