class UserRoles extends Resource (View source)

The "userRoles" collection of methods.

Typical usage is:

 $dfareportingService = new Google\Service\Dfareporting(...);
 $userRoles = $dfareportingService->userRoles;

Methods

delete(string $profileId, string $id, array $optParams = [])

Deletes an existing user role. (userRoles.delete)

get(string $profileId, string $id, array $optParams = [])

Gets one user role by ID. (userRoles.get)

insert(string $profileId, UserRole $postBody, array $optParams = [])

Inserts a new user role. (userRoles.insert)

listUserRoles(string $profileId, array $optParams = [])

Retrieves a list of user roles, possibly filtered. This method supports paging. (userRoles.listUserRoles)

patch(string $profileId, string $id, UserRole $postBody, array $optParams = [])

Updates an existing user role. This method supports patch semantics.

update(string $profileId, UserRole $postBody, array $optParams = [])

Updates an existing user role. (userRoles.update)

Details

delete(string $profileId, string $id, array $optParams = [])

Deletes an existing user role. (userRoles.delete)

Parameters

string $profileId

User profile ID associated with this request.

string $id

User role ID.

array $optParams

Optional parameters.

Exceptions

Exception

UserRole get(string $profileId, string $id, array $optParams = [])

Gets one user role by ID. (userRoles.get)

Parameters

string $profileId

User profile ID associated with this request.

string $id

User role ID.

array $optParams

Optional parameters.

Return Value

UserRole

Exceptions

Exception

UserRole insert(string $profileId, UserRole $postBody, array $optParams = [])

Inserts a new user role. (userRoles.insert)

Parameters

string $profileId

User profile ID associated with this request.

UserRole $postBody
array $optParams

Optional parameters.

Return Value

UserRole

Exceptions

Exception

UserRolesListResponse listUserRoles(string $profileId, array $optParams = [])

Retrieves a list of user roles, possibly filtered. This method supports paging. (userRoles.listUserRoles)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

UserRolesListResponse

Exceptions

Exception

UserRole patch(string $profileId, string $id, UserRole $postBody, array $optParams = [])

Updates an existing user role. This method supports patch semantics.

(userRoles.patch)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Required. UserRole ID.

UserRole $postBody
array $optParams

Optional parameters.

Return Value

UserRole

Exceptions

Exception

UserRole update(string $profileId, UserRole $postBody, array $optParams = [])

Updates an existing user role. (userRoles.update)

Parameters

string $profileId

User profile ID associated with this request.

UserRole $postBody
array $optParams

Optional parameters.

Return Value

UserRole

Exceptions

Exception