Reference documentation and code samples for the Stackdriver Monitoring V3 Client class VerifyNotificationChannelRequest.
The VerifyNotificationChannel request.
Generated from protobuf message google.monitoring.v3.VerifyNotificationChannelRequest
Namespace
Google \ Cloud \ Monitoring \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The notification channel to verify.
↳ code
string
Required. 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).
getName
Required. The notification channel to verify.
Returns
Type
Description
string
setName
Required. The notification channel to verify.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCode
Required. 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).
Returns
Type
Description
string
setCode
Required. 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).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
name
string
Required. The notification channel to verify. Please see
NotificationChannelServiceClient::notificationChannelName() for help formatting this field.
code
string
Required. 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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Monitoring V3 Client - Class VerifyNotificationChannelRequest (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.VerifyNotificationChannelRequest)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.VerifyNotificationChannelRequest)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.VerifyNotificationChannelRequest)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.VerifyNotificationChannelRequest)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.VerifyNotificationChannelRequest)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.VerifyNotificationChannelRequest)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.VerifyNotificationChannelRequest)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.VerifyNotificationChannelRequest)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.VerifyNotificationChannelRequest)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.VerifyNotificationChannelRequest)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.VerifyNotificationChannelRequest)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.VerifyNotificationChannelRequest)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.VerifyNotificationChannelRequest)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.VerifyNotificationChannelRequest) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class VerifyNotificationChannelRequest.\n\nThe `VerifyNotificationChannel` request.\n\nGenerated from protobuf message `google.monitoring.v3.VerifyNotificationChannelRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The notification channel to verify.\n\n### setName\n\nRequired. The notification channel to verify.\n\n### getCode\n\nRequired. The verification code that was delivered to the channel as\na result of invoking the `SendNotificationChannelVerificationCode` API\nmethod or that was retrieved from a verified channel via\n`GetNotificationChannelVerificationCode`. For example, one might have\n\"G-123456\" or \"TKNZGhhd2EyN3I1MnRnMjRv\" (in general, one is only\nguaranteed that the code is valid UTF-8; one should not\nmake any assumptions regarding the structure or format of the code).\n\n### setCode\n\nRequired. The verification code that was delivered to the channel as\na result of invoking the `SendNotificationChannelVerificationCode` API\nmethod or that was retrieved from a verified channel via\n`GetNotificationChannelVerificationCode`. For example, one might have\n\"G-123456\" or \"TKNZGhhd2EyN3I1MnRnMjRv\" (in general, one is only\nguaranteed that the code is valid UTF-8; one should not\nmake any assumptions regarding the structure or format of the code).\n\n### static::build"]]