#include <permission.h>
◆ Permission() [1/2]
google_drive_api::Permission::Permission |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ Permission() [2/2]
google_drive_api::Permission::Permission |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~Permission()
google_drive_api::Permission::~Permission |
( |
| ) |
|
|
virtual |
◆ clear_additional_roles()
void google_drive_api::Permission::clear_additional_roles |
( |
| ) |
|
|
inline |
Clears the 'additionalRoles
' attribute.
◆ clear_auth_key()
void google_drive_api::Permission::clear_auth_key |
( |
| ) |
|
|
inline |
Clears the 'authKey
' attribute.
◆ clear_deleted()
void google_drive_api::Permission::clear_deleted |
( |
| ) |
|
|
inline |
Clears the 'deleted
' attribute.
◆ clear_domain()
void google_drive_api::Permission::clear_domain |
( |
| ) |
|
|
inline |
Clears the 'domain
' attribute.
◆ clear_email_address()
void google_drive_api::Permission::clear_email_address |
( |
| ) |
|
|
inline |
Clears the 'emailAddress
' attribute.
◆ clear_etag()
void google_drive_api::Permission::clear_etag |
( |
| ) |
|
|
inline |
Clears the 'etag
' attribute.
◆ clear_expiration_date()
void google_drive_api::Permission::clear_expiration_date |
( |
| ) |
|
|
inline |
Clears the 'expirationDate
' attribute.
◆ clear_id()
void google_drive_api::Permission::clear_id |
( |
| ) |
|
|
inline |
Clears the 'id
' attribute.
◆ clear_kind()
void google_drive_api::Permission::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind
' attribute.
◆ clear_name()
void google_drive_api::Permission::clear_name |
( |
| ) |
|
|
inline |
Clears the 'name
' attribute.
◆ clear_permission_details()
void google_drive_api::Permission::clear_permission_details |
( |
| ) |
|
|
inline |
Clears the 'permissionDetails
' attribute.
◆ clear_photo_link()
void google_drive_api::Permission::clear_photo_link |
( |
| ) |
|
|
inline |
Clears the 'photoLink
' attribute.
◆ clear_role()
void google_drive_api::Permission::clear_role |
( |
| ) |
|
|
inline |
Clears the 'role
' attribute.
◆ clear_self_link()
void google_drive_api::Permission::clear_self_link |
( |
| ) |
|
|
inline |
Clears the 'selfLink
' attribute.
◆ clear_team_drive_permission_details()
void google_drive_api::Permission::clear_team_drive_permission_details |
( |
| ) |
|
|
inline |
Clears the 'teamDrivePermissionDetails
' attribute.
◆ clear_type()
void google_drive_api::Permission::clear_type |
( |
| ) |
|
|
inline |
Clears the 'type
' attribute.
◆ clear_value()
void google_drive_api::Permission::clear_value |
( |
| ) |
|
|
inline |
Clears the 'value
' attribute.
◆ clear_with_link()
void google_drive_api::Permission::clear_with_link |
( |
| ) |
|
|
inline |
Clears the 'withLink
' attribute.
◆ get_additional_roles()
const client::JsonCppArray<string > google_drive_api::Permission::get_additional_roles |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'additionalRoles
' attribute.
◆ get_auth_key()
const StringPiece google_drive_api::Permission::get_auth_key |
( |
| ) |
const |
|
inline |
Get the value of the 'authKey
' attribute.
◆ get_deleted()
bool google_drive_api::Permission::get_deleted |
( |
| ) |
const |
|
inline |
Get the value of the 'deleted
' attribute.
◆ get_domain()
const StringPiece google_drive_api::Permission::get_domain |
( |
| ) |
const |
|
inline |
Get the value of the 'domain
' attribute.
◆ get_email_address()
const StringPiece google_drive_api::Permission::get_email_address |
( |
| ) |
const |
|
inline |
Get the value of the 'emailAddress
' attribute.
◆ get_etag()
const StringPiece google_drive_api::Permission::get_etag |
( |
| ) |
const |
|
inline |
Get the value of the 'etag
' attribute.
◆ get_expiration_date()
client::DateTime google_drive_api::Permission::get_expiration_date |
( |
| ) |
const |
|
inline |
Get the value of the 'expirationDate
' attribute.
◆ get_id()
const StringPiece google_drive_api::Permission::get_id |
( |
| ) |
const |
|
inline |
Get the value of the 'id
' attribute.
◆ get_kind()
const StringPiece google_drive_api::Permission::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind
' attribute.
◆ get_name()
const StringPiece google_drive_api::Permission::get_name |
( |
| ) |
const |
|
inline |
Get the value of the 'name
' attribute.
◆ get_permission_details()
Get a reference to the value of the 'permissionDetails
' attribute.
◆ get_photo_link()
const StringPiece google_drive_api::Permission::get_photo_link |
( |
| ) |
const |
|
inline |
Get the value of the 'photoLink
' attribute.
◆ get_role()
const StringPiece google_drive_api::Permission::get_role |
( |
| ) |
const |
|
inline |
Get the value of the 'role
' attribute.
◆ get_self_link()
const StringPiece google_drive_api::Permission::get_self_link |
( |
| ) |
const |
|
inline |
Get the value of the 'selfLink
' attribute.
◆ get_team_drive_permission_details()
Get a reference to the value of the 'teamDrivePermissionDetails
' attribute.
◆ get_type()
const StringPiece google_drive_api::Permission::get_type |
( |
| ) |
const |
|
inline |
Get the value of the 'type
' attribute.
◆ get_value()
const StringPiece google_drive_api::Permission::get_value |
( |
| ) |
const |
|
inline |
Get the value of the 'value
' attribute.
◆ get_with_link()
bool google_drive_api::Permission::get_with_link |
( |
| ) |
const |
|
inline |
Get the value of the 'withLink
' attribute.
◆ GetTypeName()
const StringPiece google_drive_api::Permission::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_additional_roles()
bool google_drive_api::Permission::has_additional_roles |
( |
| ) |
const |
|
inline |
Determine if the 'additionalRoles
' attribute was set.
- Returns
- true if the '
additionalRoles
' attribute was set.
◆ has_auth_key()
bool google_drive_api::Permission::has_auth_key |
( |
| ) |
const |
|
inline |
Determine if the 'authKey
' attribute was set.
- Returns
- true if the '
authKey
' attribute was set.
◆ has_deleted()
bool google_drive_api::Permission::has_deleted |
( |
| ) |
const |
|
inline |
Determine if the 'deleted
' attribute was set.
- Returns
- true if the '
deleted
' attribute was set.
◆ has_domain()
bool google_drive_api::Permission::has_domain |
( |
| ) |
const |
|
inline |
Determine if the 'domain
' attribute was set.
- Returns
- true if the '
domain
' attribute was set.
◆ has_email_address()
bool google_drive_api::Permission::has_email_address |
( |
| ) |
const |
|
inline |
Determine if the 'emailAddress
' attribute was set.
- Returns
- true if the '
emailAddress
' attribute was set.
◆ has_etag()
bool google_drive_api::Permission::has_etag |
( |
| ) |
const |
|
inline |
Determine if the 'etag
' attribute was set.
- Returns
- true if the '
etag
' attribute was set.
◆ has_expiration_date()
bool google_drive_api::Permission::has_expiration_date |
( |
| ) |
const |
|
inline |
Determine if the 'expirationDate
' attribute was set.
- Returns
- true if the '
expirationDate
' attribute was set.
◆ has_id()
bool google_drive_api::Permission::has_id |
( |
| ) |
const |
|
inline |
Determine if the 'id
' attribute was set.
- Returns
- true if the '
id
' attribute was set.
◆ has_kind()
bool google_drive_api::Permission::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind
' attribute was set.
- Returns
- true if the '
kind
' attribute was set.
◆ has_name()
bool google_drive_api::Permission::has_name |
( |
| ) |
const |
|
inline |
Determine if the 'name
' attribute was set.
- Returns
- true if the '
name
' attribute was set.
◆ has_permission_details()
bool google_drive_api::Permission::has_permission_details |
( |
| ) |
const |
|
inline |
Determine if the 'permissionDetails
' attribute was set.
- Returns
- true if the '
permissionDetails
' attribute was set.
◆ has_photo_link()
bool google_drive_api::Permission::has_photo_link |
( |
| ) |
const |
|
inline |
Determine if the 'photoLink
' attribute was set.
- Returns
- true if the '
photoLink
' attribute was set.
◆ has_role()
bool google_drive_api::Permission::has_role |
( |
| ) |
const |
|
inline |
Determine if the 'role
' attribute was set.
- Returns
- true if the '
role
' attribute was set.
◆ has_self_link()
bool google_drive_api::Permission::has_self_link |
( |
| ) |
const |
|
inline |
Determine if the 'selfLink
' attribute was set.
- Returns
- true if the '
selfLink
' attribute was set.
◆ has_team_drive_permission_details()
bool google_drive_api::Permission::has_team_drive_permission_details |
( |
| ) |
const |
|
inline |
Determine if the 'teamDrivePermissionDetails
' attribute was set.
- Returns
- true if the '
teamDrivePermissionDetails
' attribute was set.
◆ has_type()
bool google_drive_api::Permission::has_type |
( |
| ) |
const |
|
inline |
Determine if the 'type
' attribute was set.
- Returns
- true if the '
type
' attribute was set.
◆ has_value()
bool google_drive_api::Permission::has_value |
( |
| ) |
const |
|
inline |
Determine if the 'value
' attribute was set.
- Returns
- true if the '
value
' attribute was set.
◆ has_with_link()
bool google_drive_api::Permission::has_with_link |
( |
| ) |
const |
|
inline |
Determine if the 'withLink
' attribute was set.
- Returns
- true if the '
withLink
' attribute was set.
◆ mutable_additionalRoles()
client::JsonCppArray<string > google_drive_api::Permission::mutable_additionalRoles |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'additionalRoles
' property.
Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_permissionDetails()
Gets a reference to a mutable value of the 'permissionDetails
' property.
Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_teamDrivePermissionDetails()
Gets a reference to a mutable value of the 'teamDrivePermissionDetails
' property.
- Deprecated:
Deprecated - use permissionDetails instead.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Permission * google_drive_api::Permission::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_auth_key()
void google_drive_api::Permission::set_auth_key |
( |
const StringPiece & |
value | ) |
|
|
inline |
◆ set_deleted()
void google_drive_api::Permission::set_deleted |
( |
bool |
value | ) |
|
|
inline |
Change the 'deleted
' attribute.
Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
- Parameters
-
◆ set_domain()
void google_drive_api::Permission::set_domain |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'domain
' attribute.
The domain name of the entity this permission refers to. This is an output- only field which is present when the permission type is user, group or domain.
- Parameters
-
◆ set_email_address()
void google_drive_api::Permission::set_email_address |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'emailAddress
' attribute.
The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
- Parameters
-
◆ set_etag()
void google_drive_api::Permission::set_etag |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'etag
' attribute.
The ETag of the permission.
- Parameters
-
◆ set_expiration_date()
void google_drive_api::Permission::set_expiration_date |
( |
client::DateTime |
value | ) |
|
|
inline |
Change the 'expirationDate
' attribute.
The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
- They can only be set on user and group permissions
- The date must be in the future
- The date cannot be more than a year in the future
- The date can only be set on drive.permissions.update or drive.permissions.patch requests.
- Parameters
-
◆ set_id()
void google_drive_api::Permission::set_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'id
' attribute.
The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
- Parameters
-
◆ set_kind()
void google_drive_api::Permission::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind
' attribute.
This is always drive::permission.
- Parameters
-
◆ set_name()
void google_drive_api::Permission::set_name |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'name
' attribute.
The name for this permission.
- Parameters
-
◆ set_photo_link()
void google_drive_api::Permission::set_photo_link |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'photoLink
' attribute.
A link to the profile photo, if available.
- Parameters
-
◆ set_role()
void google_drive_api::Permission::set_role |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'role
' attribute.
The primary role for this user. While new values may be supported in the future, the following are currently allowed:
- owner
- organizer
- fileOrganizer
- writer
- reader.
- Parameters
-
◆ set_self_link()
void google_drive_api::Permission::set_self_link |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'selfLink
' attribute.
A link back to this permission.
- Parameters
-
◆ set_type()
void google_drive_api::Permission::set_type |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'type
' attribute.
The account type. Allowed values are:
- user
- group
- domain
- anyone.
- Parameters
-
◆ set_value()
void google_drive_api::Permission::set_value |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'value
' attribute.
The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
- Parameters
-
◆ set_with_link()
void google_drive_api::Permission::set_with_link |
( |
bool |
value | ) |
|
|
inline |
Change the 'withLink
' attribute.
Whether the link is required for this permission.
- Parameters
-
The documentation for this class was generated from the following files:
- google/drive_api/permission.h
- google/drive_api/permission.cc