Google Analytics Admin V1alpha Client - Class CreateUserLinkRequest (0.20.0)

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

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Example format: accounts/1234

↳ notify_new_user bool

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

↳ user_link Google\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
var string
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
var bool
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
var Google\Analytics\Admin\V1alpha\UserLink
Returns
TypeDescription
$this