Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1AlertPolicyConfigAlertEnrollment

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) ⇒ GoogleCloudDiscoveryengineV1AlertPolicyConfigAlertEnrollment

Returns a new instance of GoogleCloudDiscoveryengineV1AlertPolicyConfigAlertEnrollment.



979
980
981
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 979

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)


972
973
974
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 972

def alert_id
  @alert_id
end

#enroll_stateString

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

Returns:

  • (String)


977
978
979
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 977

def enroll_state
  @enroll_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



984
985
986
987
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 984

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