Class: Google::Apis::AlertcenterV1beta1::AccountSuspensionDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alertcenter_v1beta1/classes.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb

Overview

Details about why an account is receiving an account suspension warning.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountSuspensionDetails

Returns a new instance of AccountSuspensionDetails.



93
94
95
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 93

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

Instance Attribute Details

#abuse_reasonString

The reason why this account is receiving an account suspension warning. Corresponds to the JSON property abuseReason

Returns:

  • (String)


85
86
87
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 85

def abuse_reason
  @abuse_reason
end

#product_nameString

The name of the product being abused. This is restricted to only the following values: "Gmail" "Google Workspace" "Payments" "Voice" "YouTube" "Other" Corresponds to the JSON property productName

Returns:

  • (String)


91
92
93
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 91

def product_name
  @product_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



98
99
100
101
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 98

def update!(**args)
  @abuse_reason = args[:abuse_reason] if args.key?(:abuse_reason)
  @product_name = args[:product_name] if args.key?(:product_name)
end