Class UserRolesResource
The "userRoles" collection of methods.
Inherited Members
Namespace: Google.Apis.Dfareporting.v4
Assembly: Google.Apis.Dfareporting.v4.dll
Syntax
public class UserRolesResource
Constructors
UserRolesResource(IClientService)
Constructs a new resource.
Declaration
public UserRolesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(long, long)
Deletes an existing user role.
Declaration
public virtual UserRolesResource.DeleteRequest Delete(long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
long | id | User role ID. |
Returns
Type | Description |
---|---|
UserRolesResource.DeleteRequest |
Get(long, long)
Gets one user role by ID.
Declaration
public virtual UserRolesResource.GetRequest Get(long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
long | id | User role ID. |
Returns
Type | Description |
---|---|
UserRolesResource.GetRequest |
Insert(UserRole, long)
Inserts a new user role.
Declaration
public virtual UserRolesResource.InsertRequest Insert(UserRole body, long profileId)
Parameters
Type | Name | Description |
---|---|---|
UserRole | body | The body of the request. |
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
UserRolesResource.InsertRequest |
List(long)
Retrieves a list of user roles, possibly filtered. This method supports paging.
Declaration
public virtual UserRolesResource.ListRequest List(long profileId)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
UserRolesResource.ListRequest |
Patch(UserRole, long, long)
Updates an existing user role. This method supports patch semantics.
Declaration
public virtual UserRolesResource.PatchRequest Patch(UserRole body, long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
UserRole | body | The body of the request. |
long | profileId | User profile ID associated with this request. |
long | id | Required. UserRole ID. |
Returns
Type | Description |
---|---|
UserRolesResource.PatchRequest |
Update(UserRole, long)
Updates an existing user role.
Declaration
public virtual UserRolesResource.UpdateRequest Update(UserRole body, long profileId)
Parameters
Type | Name | Description |
---|---|---|
UserRole | body | The body of the request. |
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
UserRolesResource.UpdateRequest |