Class: Google::Apis::AlertcenterV1beta1::BatchDeleteAlertsRequest

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 request to perform batch delete on alerts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchDeleteAlertsRequest

Returns a new instance of BatchDeleteAlertsRequest.



615
616
617
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 615

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>)


607
608
609
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 607

def alert_id
  @alert_id
end

#customer_idString

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

Returns:

  • (String)


613
614
615
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 613

def customer_id
  @customer_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



620
621
622
623
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 620

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