Class: Google::Apis::AdsenseV1_4::Alert
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV1_4::Alert
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Unique identifier of this alert.
-
#is_dismissible ⇒ Boolean
(also: #is_dismissible?)
Whether this alert can be dismissed.
-
#kind ⇒ String
Kind of resource this is, in this case adsense#alert.
-
#message ⇒ String
The localized alert message.
-
#severity ⇒ String
Severity of this alert.
-
#type ⇒ String
Type of this alert.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Alert
constructor
A new instance of Alert.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Alert
Returns a new instance of Alert.
739 740 741 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 739 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Unique identifier of this alert. This should be considered an opaque
identifier; it is not safe to rely on it being in any particular format.
Corresponds to the JSON property id
709 710 711 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 709 def id @id end |
#is_dismissible ⇒ Boolean Also known as: is_dismissible?
Whether this alert can be dismissed.
Corresponds to the JSON property isDismissible
714 715 716 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 714 def is_dismissible @is_dismissible end |
#kind ⇒ String
Kind of resource this is, in this case adsense#alert.
Corresponds to the JSON property kind
720 721 722 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 720 def kind @kind end |
#message ⇒ String
The localized alert message.
Corresponds to the JSON property message
725 726 727 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 725 def @message end |
#severity ⇒ String
Severity of this alert. Possible values: INFO, WARNING, SEVERE.
Corresponds to the JSON property severity
730 731 732 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 730 def severity @severity end |
#type ⇒ String
Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3,
ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY,
GRAYLISTED_PUBLISHER, API_HOLD.
Corresponds to the JSON property type
737 738 739 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 737 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
744 745 746 747 748 749 750 751 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 744 def update!(**args) @id = args[:id] if args.key?(:id) @is_dismissible = args[:is_dismissible] if args.key?(:is_dismissible) @kind = args[:kind] if args.key?(:kind) @message = args[:message] if args.key?(:message) @severity = args[:severity] if args.key?(:severity) @type = args[:type] if args.key?(:type) end |