Class: Google::Apis::AlertcenterV1beta1::BatchUndeleteAlertsRequest

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

Overview

A request to perform batch undelete on alerts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BatchUndeleteAlertsRequest

Returns a new instance of BatchUndeleteAlertsRequest.



526
527
528
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 526

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

Instance Attribute Details

#alert_idArray<String>

Required. list of alert IDs. Corresponds to the JSON property alertId

Returns:

  • (Array<String>)


518
519
520
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 518

def alert_id
  @alert_id
end

#customer_idString

Optional. The unique identifier of the G Suite organization account of the customer the alerts are associated with. Corresponds to the JSON property customerId

Returns:

  • (String)


524
525
526
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 524

def customer_id
  @customer_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



531
532
533
534
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 531

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