Reference documentation and code samples for the Stackdriver Monitoring V3 Client class GetNotificationChannelVerificationCodeRequest.
The GetNotificationChannelVerificationCode request.
Generated from protobuf message google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
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 for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.
The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).
getName
Required. The notification channel for which a verification code is to be
generated and retrieved. This must name a channel that is already verified;
if the specified channel is not verified, the request will fail.
Returns
Type
Description
string
setName
Required. The notification channel for which a verification code is to be
generated and retrieved. This must name a channel that is already verified;
if the specified channel is not verified, the request will fail.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getExpireTime
The desired expiration time. If specified, the API will guarantee that
the returned code will not be valid after the specified timestamp;
however, the API cannot guarantee that the returned code will be
valid for at least as long as the requested time (the API puts an upper
bound on the amount of time for which a code may be valid). If omitted,
a default expiration will be used, which may be less than the max
permissible expiration (so specifying an expiration may extend the
code's lifetime over omitting an expiration, even though the API does
impose an upper limit on the maximum expiration that is permitted).
The desired expiration time. If specified, the API will guarantee that
the returned code will not be valid after the specified timestamp;
however, the API cannot guarantee that the returned code will be
valid for at least as long as the requested time (the API puts an upper
bound on the amount of time for which a code may be valid). If omitted,
a default expiration will be used, which may be less than the max
permissible expiration (so specifying an expiration may extend the
code's lifetime over omitting an expiration, even though the API does
impose an upper limit on the maximum expiration that is permitted).
Required. The notification channel for which a verification code is to be
generated and retrieved. This must name a channel that is already verified;
if the specified channel is not verified, the request will fail. Please see
NotificationChannelServiceClient::notificationChannelName() for help formatting this field.
[[["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 GetNotificationChannelVerificationCodeRequest (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.GetNotificationChannelVerificationCodeRequest)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.GetNotificationChannelVerificationCodeRequest)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.GetNotificationChannelVerificationCodeRequest)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.GetNotificationChannelVerificationCodeRequest) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class GetNotificationChannelVerificationCodeRequest.\n\nThe `GetNotificationChannelVerificationCode` request.\n\nGenerated from protobuf message `google.monitoring.v3.GetNotificationChannelVerificationCodeRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The notification channel for which a verification code is to be\ngenerated and retrieved. This must name a channel that is already verified;\nif the specified channel is not verified, the request will fail.\n\n### setName\n\nRequired. The notification channel for which a verification code is to be\ngenerated and retrieved. This must name a channel that is already verified;\nif the specified channel is not verified, the request will fail.\n\n### getExpireTime\n\nThe desired expiration time. If specified, the API will guarantee that\nthe returned code will not be valid after the specified timestamp;\nhowever, the API cannot guarantee that the returned code will be\nvalid for at least as long as the requested time (the API puts an upper\nbound on the amount of time for which a code may be valid). If omitted,\na default expiration will be used, which may be less than the max\npermissible expiration (so specifying an expiration may extend the\ncode's lifetime over omitting an expiration, even though the API does\nimpose an upper limit on the maximum expiration that is permitted).\n\n### hasExpireTime\n\n### clearExpireTime\n\n### setExpireTime\n\nThe desired expiration time. If specified, the API will guarantee that\nthe returned code will not be valid after the specified timestamp;\nhowever, the API cannot guarantee that the returned code will be\nvalid for at least as long as the requested time (the API puts an upper\nbound on the amount of time for which a code may be valid). If omitted,\na default expiration will be used, which may be less than the max\npermissible expiration (so specifying an expiration may extend the\ncode's lifetime over omitting an expiration, even though the API does\nimpose an upper limit on the maximum expiration that is permitted).\n\n### static::build"]]