Class Info |
|---|
public class Drive.Changes. List extends DriveRequest<ChangeList> Drive.Changes.List类结构。 |
Constructor Name |
|---|
Drive.Changes.List(String cursor) Drive.Changes.List构造方法。 |
Qualifier and Type |
Method Name and Description |
|---|---|
execute() 发送HTTP请求,返回要转换的对象。 |
|
String |
获取用户要查询存储空间的类型。 |
String |
获取cursor,cursor为分页游标,由前一个响应的nextCursor获取或者从getStartCursor方法获取。 |
Boolean |
获取是否包括已从更改列表中删除的项目更改,例如通过删除或失去访问权限。 |
Integer |
获取pageSize,pageSize为每次分页查询请求返回的changes列表数量,默认值是100,可接受值1-100,注意在到达最后的列表之前,实际有可能返回部分或者空结果。 |
boolean |
获取设置的IncludeDeleted参数转换值。 |
set(String parameterName, Object value) 设置其他参数名称和参数值。 |
|
setContainers(String containers) 设置用户要查询存储空间的类型。 |
|
setCursor(String cursor) 设置cursor,cursor为分页游标,由前一个响应的nextCursor获取或者从getStartCursor方法获取。 |
|
setFields(String fields) 设置希望在响应中包含的字段。 |
|
setForm(String form) 设置响应的数据格式。 |
|
setIncludeDeleted(Boolean includeDeleted) 设置是否包括已从更改列表中删除的项目更改,例如通过删除或失去访问权限。 |
|
setPageSize(Integer pageSize) 设置pageSize,pageSize为每次分页查询请求返回的changes列表数量,默认值是100,可接受值1-100,注意在到达最后的列表之前,实际有可能返回部分或者空结果。 |
|
setPrettyPrint(Boolean prettyPrint) 设置返回带有缩进和换行符的响应(格式化,便于阅读打印)。 |
|
setQuotaId(String quotaId) 设置一个不超过40字符的字符串,用于代表用户,主要用于服务端基于用户限制单个用户的API访问数量,用做API访问量配额控制。 |
Constructor |
|---|
protected Drive.Changes.List(String cursor) Drive.Changes.List构造方法。 |
Parameters
Name |
Description |
|---|---|
cursor |
分页游标,由前一个响应的nextCursor获取或者从getStartCursor方法获取;由于每次查询请求,服务器返回的changes列表数量至多为100个,如果本次待返回的数量大于100,则需要设置cursor,用以指定下一次查询的分页游标,再次进行遍历查询请求,直至响应结果中的nextCursor为空,才能获取到所有待查询的changes列表信息。 |
Method |
|---|
public Drive.Changes.List setFields(String fields) 设置希望在响应中包含的字段。说明:fields填*时,drive#file 结构中sharer、sharedWithMeTime、hasShared、capabilities、permissions、permissionIds不返回。 |
Parameters
Name |
Description |
|---|---|
fields |
取值范围为响应结果中的字段,如果希望在响应中包含所有字段,支持*匹配所有字段;如果希望仅返回某些特定字段,则设置需要返回的字段名即可,示例如下:"category、 nextCursor、 newStartCursor、changes/category、changes/changeType"。 若不设置fields,则默认返回:“category、 changes.fileName、changes.time、 newStartCursor、 nextCursor”。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public Drive.Changes.List set(String parameterName, Object value) 设置其他参数名称和参数值。 |
Parameters
Name |
Description |
|---|---|
parameterName |
参数名称。 |
value |
参数值。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public Drive.Changes.List setCursor(String cursor) 设置cursor。 |
Parameters
Name |
Description |
|---|---|
cursor |
分页游标,由前一个响应的nextCursor获取或者从getStartCursor方法获取;由于每次查询请求,服务器返回的changes列表数量至多为100个,如果本次待返回的数量大于100,则需要设置cursor,用以指定下一次查询的分页游标,再次进行遍历查询请求,直至响应结果中的nextCursor为空,才能获取到所有待查询的changes列表信息。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public Integer getPageSize() 获取pageSize。 |
Returns
Type |
Description |
|---|---|
Integer |
返回pageSize大小。 |
Method |
|---|
public Drive.Changes.List setPageSize(Integer pageSize) 设置pageSize。 |
Parameters
Name |
Description |
|---|---|
pageSize |
指定每次分页查询请求返回的changes列表数量,默认值是100,可接受值1-100,注意在到达最后的列表之前,实际有可能返回部分或者空结果。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public String getContainers() 获取用户要查询存储空间的类型。 |
Returns
Type |
Description |
|---|---|
String |
用户要查询存储空间的类型。支持的值是:'drive'和'applicationData'。 |
Method |
|---|
public Drive.Changes.List setContainers(String containers) 设置用户要查询存储空间的类型。 |
Parameters
Name |
Description |
|---|---|
containers |
用户要查询存储空间的类型。支持的值是“drive”和“applicationData”。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public Drive.Changes.List setForm(String form) 设置响应的数据格式。 |
Parameters
Name |
Description |
|---|---|
form |
响应的数据格式,默认为json,只支持json。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public Drive.Changes.List setPrettyPrint(Boolean prettyPrint) 设置返回带有缩进和换行符的响应(格式化,便于阅读打印)。 |
Parameters
Name |
Description |
|---|---|
prettyPrint |
布尔值,标识响应是否带有缩进和换行符。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public Drive.Changes.List setQuotaId(String quotaId) 设置一个不超过40字符的字符串,用于代表用户,主要用于服务端基于用户限制单个用户的API访问数量,用做API访问量配额控制。 |
Parameters
Name |
Description |
|---|---|
quotaId |
一个不超过40字符的字符串,用于代表用户,主要用于服务端基于用户限制单个用户的API访问数量,用做API访问量配额控制。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public Boolean getIncludeDeleted() 获取是否包含已从更改列表中删除的项目更改,例如通过删除或失去访问权限。[default: true]。 |
Returns
Type |
Description |
|---|---|
Boolean |
返回是否包含已从更改列表中删除的项目更改,例如通过删除或失去访问权限。[default: true]。 |
Method |
|---|
public Drive.Changes.List setIncludeDeleted(Boolean includeDeleted) 设置是否包括已从更改列表中删除的项目更改,例如通过删除或失去访问权限。 |
Parameters
Name |
Description |
|---|---|
includeDeleted |
是否包括已从更改列表中删除的项目更改,例如通过删除或失去访问权限。 |
Returns
Type |
Description |
|---|---|
Drive.Changes.List |
返回一个Drive.Changes.List类对象。 |
Method |
|---|
public boolean isIncludeDeleted() 是否设置IncludeDeleted参数转换值。 |
Returns
Type |
Description |
|---|---|
boolean |
是否设置IncludeDeleted参数转换值。 |
Method |
|---|
public T execute() throws IOException 发送HTTP请求,返回要转换的对象。 |
Throws
Name |
Description |
|---|---|
java.io.IOException |
若接口调用异常,会返回IOException。您可以通过getMessage方法获取错误描述。 |
Returns
Type |
Description |
|---|---|
ChangeList |
Drive.Changes.List类继承自DriveRequest<ChangeList>。调用execute方法返回,返回结果封装为ChangeList对象。 |