Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<string>
CalendarBaseServiceRequest<string>
CalendarsResource.TransferOwnershipRequest
Implements
IClientServiceRequest<string>
IClientServiceRequest
Inherited Members
CalendarBaseServiceRequest<string>.Alt
CalendarBaseServiceRequest<string>.Fields
CalendarBaseServiceRequest<string>.Key
CalendarBaseServiceRequest<string>.OauthToken
CalendarBaseServiceRequest<string>.PrettyPrint
CalendarBaseServiceRequest<string>.QuotaUser
CalendarBaseServiceRequest<string>.UserIp
ClientServiceRequest<string>.Execute()
ClientServiceRequest<string>.ExecuteAsStream()
ClientServiceRequest<string>.ExecuteAsync()
ClientServiceRequest<string>.ExecuteAsync(CancellationToken)
ClientServiceRequest<string>.ExecuteAsStreamAsync()
ClientServiceRequest<string>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<string>.CreateRequest(bool?)
ClientServiceRequest<string>.GenerateRequestUri()
ClientServiceRequest<string>.GetBody()
ClientServiceRequest<string>.GetDefaultETagAction(string)
ClientServiceRequest<string>.ETagAction
ClientServiceRequest<string>.ModifyRequest
ClientServiceRequest<string>.ValidateParameters
ClientServiceRequest<string>.ApiVersion
ClientServiceRequest<string>.RequestParameters
ClientServiceRequest<string>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<string>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<string>.MethodName

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
ClientServiceRequest<string>.RestPath

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()
Overrides
CalendarBaseServiceRequest<string>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX