Class: Google::Apis::AlertcenterV1beta1::AlertFeedback

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

Overview

A customer feedback about an alert.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AlertFeedback


174
175
176
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 174

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

Instance Attribute Details

#alert_idString

Output only. The alert identifier. Corresponds to the JSON property alertId


147
148
149
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 147

def alert_id
  @alert_id
end

#create_timeString

Output only. The time this feedback was created. Corresponds to the JSON property createTime


152
153
154
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 152

def create_time
  @create_time
end

#customer_idString

Output only. The unique identifier of the Google account of the customer. Corresponds to the JSON property customerId


157
158
159
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 157

def customer_id
  @customer_id
end

#emailString

Output only. The email of the user that provided the feedback. Corresponds to the JSON property email


162
163
164
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 162

def email
  @email
end

#feedback_idString

Output only. The unique identifier for the feedback. Corresponds to the JSON property feedbackId


167
168
169
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 167

def feedback_id
  @feedback_id
end

#typeString

Required. The type of the feedback. Corresponds to the JSON property type


172
173
174
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 172

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


179
180
181
182
183
184
185
186
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 179

def update!(**args)
  @alert_id = args[:alert_id] if args.key?(:alert_id)
  @create_time = args[:create_time] if args.key?(:create_time)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @email = args[:email] if args.key?(:email)
  @feedback_id = args[:feedback_id] if args.key?(:feedback_id)
  @type = args[:type] if args.key?(:type)
end