Class: Google::Apis::AlertcenterV1beta1::AccountSuspensionWarning
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::AccountSuspensionWarning
- 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
A warning that the customer's account is about to be suspended.
Instance Attribute Summary collapse
-
#appeal_window ⇒ String
The amount of time remaining to appeal an imminent suspension.
-
#state ⇒ String
Account suspension warning state.
-
#suspension_details ⇒ Array<Google::Apis::AlertcenterV1beta1::AccountSuspensionDetails>
Details about why an account is being suspended.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountSuspensionWarning
constructor
A new instance of AccountSuspensionWarning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountSuspensionWarning
Returns a new instance of AccountSuspensionWarning.
125 126 127 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#appeal_window ⇒ String
The amount of time remaining to appeal an imminent suspension. After this
window has elapsed, the account will be suspended. Only populated if the
account suspension is in WARNING state.
Corresponds to the JSON property appealWindow
113 114 115 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 113 def appeal_window @appeal_window end |
#state ⇒ String
Account suspension warning state.
Corresponds to the JSON property state
118 119 120 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 118 def state @state end |
#suspension_details ⇒ Array<Google::Apis::AlertcenterV1beta1::AccountSuspensionDetails>
Details about why an account is being suspended.
Corresponds to the JSON property suspensionDetails
123 124 125 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 123 def suspension_details @suspension_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
130 131 132 133 134 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 130 def update!(**args) @appeal_window = args[:appeal_window] if args.key?(:appeal_window) @state = args[:state] if args.key?(:state) @suspension_details = args[:suspension_details] if args.key?(:suspension_details) end |