Class: Google::Apis::AlertcenterV1beta1::AccountSuspensionWarning

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

A warning that the customer's account is about to be suspended.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountSuspensionWarning

Returns a new instance of AccountSuspensionWarning.



165
166
167
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 165

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

Instance Attribute Details

#appeal_windowString

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

Returns:

  • (String)


153
154
155
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 153

def appeal_window
  @appeal_window
end

#stateString

Account suspension warning state. Corresponds to the JSON property state

Returns:

  • (String)


158
159
160
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 158

def state
  @state
end

#suspension_detailsArray<Google::Apis::AlertcenterV1beta1::AccountSuspensionDetails>

Details about why an account is being suspended. Corresponds to the JSON property suspensionDetails



163
164
165
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 163

def suspension_details
  @suspension_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



170
171
172
173
174
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 170

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