Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig

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

Overview

Project level alert config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaAlertConfig

Returns a new instance of GoogleCloudRetailV2betaAlertConfig.



2659
2660
2661
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2659

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

Instance Attribute Details

#alert_policiesArray<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfigAlertPolicy>

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



2651
2652
2653
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2651

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)


2657
2658
2659
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2657

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2664
2665
2666
2667
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2664

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