Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription

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 special notice messages related to a particular value in a field that is part of a PolicySchema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription

Returns a new instance of GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription.



994
995
996
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 994

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

Instance Attribute Details

#acknowledgement_requiredBoolean 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

Returns:

  • (Boolean)


974
975
976
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 974

def acknowledgement_required
  @acknowledgement_required
end

#fieldString

Output only. The field name associated with the notice. Corresponds to the JSON property field

Returns:

  • (String)


980
981
982
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 980

def field
  @field
end

#notice_messageString

Output only. The notice message associate with the value of the field. Corresponds to the JSON property noticeMessage

Returns:

  • (String)


985
986
987
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 985

def notice_message
  @notice_message
end

#notice_valueString

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

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 992

def notice_value
  @notice_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



999
1000
1001
1002
1003
1004
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 999

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