Class: Google::Apis::AdsenseV1_4::Alert

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Alert

Returns a new instance of Alert.



751
752
753
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 751

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


721
722
723
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 721

def id
  @id
end

#is_dismissibleBoolean Also known as: is_dismissible?

Whether this alert can be dismissed. Corresponds to the JSON property isDismissible

Returns:

  • (Boolean)


726
727
728
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 726

def is_dismissible
  @is_dismissible
end

#kindString

Kind of resource this is, in this case adsense#alert. Corresponds to the JSON property kind

Returns:

  • (String)


732
733
734
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 732

def kind
  @kind
end

#messageString

The localized alert message. Corresponds to the JSON property message

Returns:

  • (String)


737
738
739
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 737

def message
  @message
end

#severityString

Severity of this alert. Possible values: INFO, WARNING, SEVERE. Corresponds to the JSON property severity

Returns:

  • (String)


742
743
744
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 742

def severity
  @severity
end

#typeString

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

Returns:

  • (String)


749
750
751
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 749

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



756
757
758
759
760
761
762
763
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 756

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