Google Cloud Advisory Notifications V1 Client - Class Notification (0.6.0)

Reference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class Notification.

A notification object for notifying customers about security and privacy issues.

Generated from protobuf message google.cloud.advisorynotifications.v1.Notification

Namespace

Google \ Cloud \ AdvisoryNotifications \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.

↳ subject
Google\Cloud\AdvisoryNotifications\V1\Subject

The subject line of the notification.

↳ messages
array< Google\Cloud\AdvisoryNotifications\V1\Message >

A list of messages in the notification.

↳ create_time
Google\Protobuf\Timestamp

Output only. Time the notification was created.

↳ notification_type
int

Type of notification

getName

The resource name of the notification.

Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.

Returns
Type
Description
string

setName

The resource name of the notification.

Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSubject

The subject line of the notification.

Returns
Type
Description

hasSubject

clearSubject

setSubject

The subject line of the notification.

Parameter
Name
Description
Returns
Type
Description
$this

getMessages

A list of messages in the notification.

Returns
Type
Description

setMessages

A list of messages in the notification.

Parameter
Name
Description
Returns
Type
Description
$this

getCreateTime

Output only. Time the notification was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time the notification was created.

Parameter
Name
Description
Returns
Type
Description
$this

getNotificationType

Type of notification

Returns
Type
Description
int

setNotificationType

Type of notification

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: