Class CalendarsResource.TransferOwnershipRequest
Transfers a secondary calendar between users within a Google Workspace organization. Requires user authentication with Manage Calendars administrator privilege, and one of the following authorization scopes:
- https://www.googleapis.com/auth/calendar - https://www.googleapis.com/auth/calendar.calendars In the request, set useAdminAccess to true. The secondary calendar must be active to be transferred. Transferring disabled or deleted calendars isn't supported.
Inheritance
Inherited Members
Namespace: Google.Apis.Calendar.v3
Assembly: Google.Apis.Calendar.v3.dll
Syntax
public class CalendarsResource.TransferOwnershipRequest : CalendarBaseServiceRequest<string>, IClientServiceRequest<string>, IClientServiceRequest
Constructors
TransferOwnershipRequest(IClientService, string, string, bool)
Constructs a new TransferOwnership request.
Declaration
public TransferOwnershipRequest(IClientService service, string calendarId, string newDataOwner, bool useAdminAccess)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | calendarId | |
| string | newDataOwner | |
| bool | useAdminAccess |
Properties
CalendarId
Calendar identifier. To retrieve calendar IDs, call the calendarList.list method.
Declaration
[RequestParameter("calendarId", RequestParameterType.Path)]
public virtual string CalendarId { get; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
NewDataOwner
The email address of a user who will become the data owner of the calendar.
Declaration
[RequestParameter("newDataOwner", RequestParameterType.Query)]
public virtual string NewDataOwner { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
UseAdminAccess
When true, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the Manage Calendars privilege. This method currently only supports admin access, thus only true is accepted for this field.
Declaration
[RequestParameter("useAdminAccess", RequestParameterType.Query)]
public virtual bool UseAdminAccess { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
InitParameters()
Initializes TransferOwnership parameter list.
Declaration
protected override void InitParameters()