Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaNoticeDescription
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaNoticeDescription
- 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 special notice messages related to a particular value in a field that is part of a PolicySchema.
Instance Attribute Summary collapse
-
#acknowledgement_required ⇒ Boolean
(also: #acknowledgement_required?)
Output only.
-
#field ⇒ String
Output only.
-
#notice_message ⇒ String
Output only.
-
#notice_value ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyV1PolicySchemaNoticeDescription
constructor
A new instance of GoogleChromePolicyV1PolicySchemaNoticeDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromePolicyV1PolicySchemaNoticeDescription
Returns a new instance of GoogleChromePolicyV1PolicySchemaNoticeDescription.
403 404 405 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 403 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acknowledgement_required ⇒ Boolean Also known as: acknowledgement_required?
Output only. Whether the user needs to acknowledge the notice message before
the value can be set.
Corresponds to the JSON property acknowledgementRequired
383 384 385 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 383 def acknowledgement_required @acknowledgement_required end |
#field ⇒ String
Output only. The field name associated with the notice.
Corresponds to the JSON property field
389 390 391 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 389 def field @field end |
#notice_message ⇒ String
Output only. The notice message associate with the value of the field.
Corresponds to the JSON property noticeMessage
394 395 396 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 394 def @notice_message end |
#notice_value ⇒ String
Output only. The value of the field that has a notice. When setting the field
to this value, the user may be required to acknowledge the notice message in
order for the value to be set.
Corresponds to the JSON property noticeValue
401 402 403 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 401 def notice_value @notice_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
408 409 410 411 412 413 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 408 def update!(**args) @acknowledgement_required = args[:acknowledgement_required] if args.key?(:acknowledgement_required) @field = args[:field] if args.key?(:field) @notice_message = args[:notice_message] if args.key?(:notice_message) @notice_value = args[:notice_value] if args.key?(:notice_value) end |