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.



7240
7241
7242
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7240

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)


7233
7234
7235
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7233

def alert_id
  @alert_id
end

#enroll_stateString

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

Returns:

  • (String)


7238
7239
7240
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7238

def enroll_state
  @enroll_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7245
7246
7247
7248
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7245

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