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.



2653
2654
2655
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2653

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



2645
2646
2647
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2645

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)


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

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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