Google Analytics Admin V1alpha Client - Class CreateUserLinkRequest (0.11.1)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class CreateUserLinkRequest.

Request message for CreateUserLink RPC.

Users can have multiple email addresses associated with their Google account, and one of these email addresses is the "primary" email address. Any of the email addresses associated with a Google account may be used for a new UserLink, but the returned UserLink will always contain the "primary" email address. As a result, the input and output email address for this request may differ.

Generated from protobuf message google.analytics.admin.v1alpha.CreateUserLinkRequest

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. Example format: accounts/1234

↳ notify_new_userbool

Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.

↳ user_linkGoogle\Analytics\Admin\V1alpha\UserLink

Required. The user link to create.

getParent

Required. Example format: accounts/1234

Returns
TypeDescription
string

setParent

Required. Example format: accounts/1234

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getNotifyNewUser

Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.

Returns
TypeDescription
bool

setNotifyNewUser

Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

Required. The user link to create.

Returns
TypeDescription
Google\Analytics\Admin\V1alpha\UserLink|null

Required. The user link to create.

Parameter
NameDescription
varGoogle\Analytics\Admin\V1alpha\UserLink
Returns
TypeDescription
$this