Class: Google::Apis::MonitoringV3::VerifyNotificationChannelRequest

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 VerifyNotificationChannel 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) ⇒ VerifyNotificationChannelRequest

Returns a new instance of VerifyNotificationChannelRequest



2976
2977
2978
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2976

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

Instance Attribute Details

#codeString

The verification code that was delivered to the channel as a result of invoking the SendNotificationChannelVerificationCode API method or that was retrieved from a verified channel via GetNotificationChannelVerificationCode. For example, one might have "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only guaranteed that the code is valid UTF-8; one should not make any assumptions regarding the structure or format of the code). Corresponds to the JSON property code

Returns:

  • (String)


2974
2975
2976
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2974

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2981
2982
2983
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2981

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