@@ -6583,6 +6583,164 @@ public Export set(String parameterName, Object value) {
65836583 return (Export) super.set(parameterName, value);
65846584 }
65856585 }
6586+ /**
6587+ * Generates a CSE token which can be used to create or update CSE files.
6588+ *
6589+ * Create a request for the method "files.generateCseToken".
6590+ *
6591+ * This request holds the parameters needed by the drive server. After setting any optional
6592+ * parameters, call the {@link GenerateCseToken#execute()} method to invoke the remote operation.
6593+ *
6594+ * @return the request
6595+ */
6596+ public GenerateCseToken generateCseToken() throws java.io.IOException {
6597+ GenerateCseToken result = new GenerateCseToken();
6598+ initialize(result);
6599+ return result;
6600+ }
6601+
6602+ public class GenerateCseToken extends DriveRequest<com.google.api.services.drive.model.GenerateCseTokenResponse> {
6603+
6604+ private static final String REST_PATH = "files/generateCseToken";
6605+
6606+ /**
6607+ * Generates a CSE token which can be used to create or update CSE files.
6608+ *
6609+ * Create a request for the method "files.generateCseToken".
6610+ *
6611+ * This request holds the parameters needed by the the drive server. After setting any optional
6612+ * parameters, call the {@link GenerateCseToken#execute()} method to invoke the remote operation.
6613+ * <p> {@link GenerateCseToken#initialize(com.google.api.client.googleapis.services.AbstractGoogle
6614+ * ClientRequest)} must be called to initialize this instance immediately after invoking the
6615+ * constructor. </p>
6616+ *
6617+ * @since 1.13
6618+ */
6619+ protected GenerateCseToken() {
6620+ super(Drive.this, "GET", REST_PATH, null, com.google.api.services.drive.model.GenerateCseTokenResponse.class);
6621+ }
6622+
6623+ @Override
6624+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
6625+ return super.executeUsingHead();
6626+ }
6627+
6628+ @Override
6629+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
6630+ return super.buildHttpRequestUsingHead();
6631+ }
6632+
6633+ @Override
6634+ public GenerateCseToken set$Xgafv(java.lang.String $Xgafv) {
6635+ return (GenerateCseToken) super.set$Xgafv($Xgafv);
6636+ }
6637+
6638+ @Override
6639+ public GenerateCseToken setAccessToken(java.lang.String accessToken) {
6640+ return (GenerateCseToken) super.setAccessToken(accessToken);
6641+ }
6642+
6643+ @Override
6644+ public GenerateCseToken setAlt(java.lang.String alt) {
6645+ return (GenerateCseToken) super.setAlt(alt);
6646+ }
6647+
6648+ @Override
6649+ public GenerateCseToken setCallback(java.lang.String callback) {
6650+ return (GenerateCseToken) super.setCallback(callback);
6651+ }
6652+
6653+ @Override
6654+ public GenerateCseToken setFields(java.lang.String fields) {
6655+ return (GenerateCseToken) super.setFields(fields);
6656+ }
6657+
6658+ @Override
6659+ public GenerateCseToken setKey(java.lang.String key) {
6660+ return (GenerateCseToken) super.setKey(key);
6661+ }
6662+
6663+ @Override
6664+ public GenerateCseToken setOauthToken(java.lang.String oauthToken) {
6665+ return (GenerateCseToken) super.setOauthToken(oauthToken);
6666+ }
6667+
6668+ @Override
6669+ public GenerateCseToken setPrettyPrint(java.lang.Boolean prettyPrint) {
6670+ return (GenerateCseToken) super.setPrettyPrint(prettyPrint);
6671+ }
6672+
6673+ @Override
6674+ public GenerateCseToken setQuotaUser(java.lang.String quotaUser) {
6675+ return (GenerateCseToken) super.setQuotaUser(quotaUser);
6676+ }
6677+
6678+ @Override
6679+ public GenerateCseToken setUploadType(java.lang.String uploadType) {
6680+ return (GenerateCseToken) super.setUploadType(uploadType);
6681+ }
6682+
6683+ @Override
6684+ public GenerateCseToken setUploadProtocol(java.lang.String uploadProtocol) {
6685+ return (GenerateCseToken) super.setUploadProtocol(uploadProtocol);
6686+ }
6687+
6688+ /**
6689+ * The ID of the file for which the JWT should be generated. If not provided, an id will be
6690+ * generated.
6691+ */
6692+ @com.google.api.client.util.Key
6693+ private java.lang.String fileId;
6694+
6695+ /** The ID of the file for which the JWT should be generated. If not provided, an id will be generated.
6696+ */
6697+ public java.lang.String getFileId() {
6698+ return fileId;
6699+ }
6700+
6701+ /**
6702+ * The ID of the file for which the JWT should be generated. If not provided, an id will be
6703+ * generated.
6704+ */
6705+ public GenerateCseToken setFileId(java.lang.String fileId) {
6706+ this.fileId = fileId;
6707+ return this;
6708+ }
6709+
6710+ /**
6711+ * The ID of the expected parent of the file. Used when generating a JWT for a new CSE file.
6712+ * If specified, the parent will be fetched, and if the parent is a shared drive item, the
6713+ * shared drive's policy will be used to determine the KACLS that should be used. It is
6714+ * invalid to specify both file_id and parent in a single request.
6715+ */
6716+ @com.google.api.client.util.Key
6717+ private java.lang.String parent;
6718+
6719+ /** The ID of the expected parent of the file. Used when generating a JWT for a new CSE file. If
6720+ specified, the parent will be fetched, and if the parent is a shared drive item, the shared drive's
6721+ policy will be used to determine the KACLS that should be used. It is invalid to specify both
6722+ file_id and parent in a single request.
6723+ */
6724+ public java.lang.String getParent() {
6725+ return parent;
6726+ }
6727+
6728+ /**
6729+ * The ID of the expected parent of the file. Used when generating a JWT for a new CSE file.
6730+ * If specified, the parent will be fetched, and if the parent is a shared drive item, the
6731+ * shared drive's policy will be used to determine the KACLS that should be used. It is
6732+ * invalid to specify both file_id and parent in a single request.
6733+ */
6734+ public GenerateCseToken setParent(java.lang.String parent) {
6735+ this.parent = parent;
6736+ return this;
6737+ }
6738+
6739+ @Override
6740+ public GenerateCseToken set(String parameterName, Object value) {
6741+ return (GenerateCseToken) super.set(parameterName, value);
6742+ }
6743+ }
65866744 /**
65876745 * Generates a set of file IDs which can be provided in insert or copy requests.
65886746 *
0 commit comments