Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig
- 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
-
#alert_policies ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy>
Alert policies for a customer.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAlertConfig
constructor
A new instance of GoogleCloudRetailV2alphaAlertConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_policies ⇒ Array<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 |
#name ⇒ String
Required. Immutable. The name of the AlertConfig singleton resource. Format:
projects/*/alertConfig
Corresponds to the JSON property name
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 |