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.



133
134
135
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 133

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)


125
126
127
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 125

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)


131
132
133
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 131

def product_name
  @product_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



138
139
140
141
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 138

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