public class Calendar.Calendars.TransferOwnership extends CalendarRequest<Void>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
TransferOwnership(String calendarId,
String newDataOwner,
Boolean useAdminAccess)
Transfers a secondary calendar between users within a Google Workspace organization.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCalendarId()
Calendar identifier.
|
String |
getNewDataOwner()
The email address of a user who will become the data owner of the calendar.
|
Boolean |
getUseAdminAccess()
When true, the method runs using the user's Google Workspace administrator privileges.
|
Calendar.Calendars.TransferOwnership |
set(String parameterName,
Object value) |
Calendar.Calendars.TransferOwnership |
setAlt(String alt)
Data format for the response.
|
Calendar.Calendars.TransferOwnership |
setCalendarId(String calendarId)
Calendar identifier.
|
Calendar.Calendars.TransferOwnership |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Calendar.Calendars.TransferOwnership |
setKey(String key)
API key.
|
Calendar.Calendars.TransferOwnership |
setNewDataOwner(String newDataOwner)
The email address of a user who will become the data owner of the calendar.
|
Calendar.Calendars.TransferOwnership |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Calendar.Calendars.TransferOwnership |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Calendar.Calendars.TransferOwnership |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Calendar.Calendars.TransferOwnership |
setUseAdminAccess(Boolean useAdminAccess)
When true, the method runs using the user's Google Workspace administrator privileges.
|
Calendar.Calendars.TransferOwnership |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected TransferOwnership(String calendarId, String newDataOwner, Boolean useAdminAccess)
AbstractGoogleClientRequest.execute() method to invoke the remote
operation. TransferOwnership#initialize(com.google.api.client.googleapis.services.Ab
stractGoogleClientRequest) must be called to initialize this instance immediately after
invoking the constructor.
calendarId - Calendar identifier. To retrieve calendar IDs, call the calendarList.list method.newDataOwner - The email address of a user who will become the data owner of the calendar.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.public Calendar.Calendars.TransferOwnership setAlt(String alt)
CalendarRequestsetAlt in class CalendarRequest<Void>public Calendar.Calendars.TransferOwnership setFields(String fields)
CalendarRequestsetFields in class CalendarRequest<Void>public Calendar.Calendars.TransferOwnership setKey(String key)
CalendarRequestsetKey in class CalendarRequest<Void>public Calendar.Calendars.TransferOwnership setOauthToken(String oauthToken)
CalendarRequestsetOauthToken in class CalendarRequest<Void>public Calendar.Calendars.TransferOwnership setPrettyPrint(Boolean prettyPrint)
CalendarRequestsetPrettyPrint in class CalendarRequest<Void>public Calendar.Calendars.TransferOwnership setQuotaUser(String quotaUser)
CalendarRequestsetQuotaUser in class CalendarRequest<Void>public Calendar.Calendars.TransferOwnership setUserIp(String userIp)
CalendarRequestsetUserIp in class CalendarRequest<Void>public String getCalendarId()
public Calendar.Calendars.TransferOwnership setCalendarId(String calendarId)
public String getNewDataOwner()
public Calendar.Calendars.TransferOwnership setNewDataOwner(String newDataOwner)
public Boolean getUseAdminAccess()
public Calendar.Calendars.TransferOwnership setUseAdminAccess(Boolean useAdminAccess)
public Calendar.Calendars.TransferOwnership set(String parameterName, Object value)
set in class CalendarRequest<Void>Copyright © 2011–2026 Google. All rights reserved.