Common Protos for Google Cloud APIs Client - Class FirstPartyPrincipal (0.4.2)

Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class FirstPartyPrincipal.

First party identity principal.

Generated from protobuf message google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal

Namespace

Google \ Cloud \ Audit \ ServiceAccountDelegationInfo

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ principal_email string

The email address of a Google account.

↳ service_metadata Google\Protobuf\Struct

Metadata about the service that uses the service account.

getPrincipalEmail

The email address of a Google account.

Returns
TypeDescription
string

setPrincipalEmail

The email address of a Google account.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServiceMetadata

Metadata about the service that uses the service account.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasServiceMetadata

clearServiceMetadata

setServiceMetadata

Metadata about the service that uses the service account.

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this