Class: Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse

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

Overview

The GetNotificationChannelVerificationCode request.

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

Returns a new instance of GetNotificationChannelVerificationCodeResponse.


1317
1318
1319
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1317

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

Instance Attribute Details

#codeString

The verification code, which may be used to verify other channels that have an equivalent identity (i.e. other channels of the same type with the same fingerprint such as other email channels with the same email address or other sms channels with the same number). Corresponds to the JSON property code

Returns:

  • (String)

1308
1309
1310
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1308

def code
  @code
end

#expire_timeString

The expiration time associated with the code that was returned. If an expiration was provided in the request, this is the minimum of the requested expiration in the request and the max permitted expiration. Corresponds to the JSON property expireTime

Returns:

  • (String)

1315
1316
1317
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1315

def expire_time
  @expire_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1322
1323
1324
1325
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1322

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