Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig

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

Overview

Project level alert config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaAlertConfig

Returns a new instance of GoogleCloudRetailV2alphaAlertConfig.



1398
1399
1400
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1398

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

Instance Attribute Details

#alert_policiesArray<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy>

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group] Corresponds to the JSON property alertPolicies



1390
1391
1392
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1390

def alert_policies
  @alert_policies
end

#nameString

Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig Corresponds to the JSON property name

Returns:

  • (String)


1396
1397
1398
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1396

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1403
1404
1405
1406
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1403

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