Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment

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

Overview

The alert enrollment status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment.



7273
7274
7275
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7273

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

Instance Attribute Details

#alert_idString

Immutable. The id of an alert. Corresponds to the JSON property alertId

Returns:

  • (String)


7266
7267
7268
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7266

def alert_id
  @alert_id
end

#enroll_stateString

Required. The enrollment status of a customer. Corresponds to the JSON property enrollState

Returns:

  • (String)


7271
7272
7273
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7271

def enroll_state
  @enroll_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7278
7279
7280
7281
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7278

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