@@ -10003,6 +10003,169 @@ public Create set(String parameterName, Object value) {
1000310003 return (Create) super.set(parameterName, value);
1000410004 }
1000510005 }
10006+ /**
10007+ * Creates a new Workspace in a given Repository asynchronously.
10008+ *
10009+ * Create a request for the method "workspaces.createLongRunning".
10010+ *
10011+ * This request holds the parameters needed by the dataform server. After setting any optional
10012+ * parameters, call the {@link CreateLongRunning#execute()} method to invoke the remote operation.
10013+ *
10014+ * @param parent Required. The repository in which to create the workspace. Must be in the format
10015+ * `projects/locations/repositories`.
10016+ * @param content the {@link com.google.api.services.dataform.v1beta1.model.Workspace}
10017+ * @return the request
10018+ */
10019+ public CreateLongRunning createLongRunning(java.lang.String parent, com.google.api.services.dataform.v1beta1.model.Workspace content) throws java.io.IOException {
10020+ CreateLongRunning result = new CreateLongRunning(parent, content);
10021+ initialize(result);
10022+ return result;
10023+ }
10024+
10025+ public class CreateLongRunning extends DataformRequest<com.google.api.services.dataform.v1beta1.model.Operation> {
10026+
10027+ private static final String REST_PATH = "v1beta1/{+parent}/workspaces:createLongRunning";
10028+
10029+ private final java.util.regex.Pattern PARENT_PATTERN =
10030+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$");
10031+
10032+ /**
10033+ * Creates a new Workspace in a given Repository asynchronously.
10034+ *
10035+ * Create a request for the method "workspaces.createLongRunning".
10036+ *
10037+ * This request holds the parameters needed by the the dataform server. After setting any
10038+ * optional parameters, call the {@link CreateLongRunning#execute()} method to invoke the remote
10039+ * operation. <p> {@link CreateLongRunning#initialize(com.google.api.client.googleapis.services.Ab
10040+ * stractGoogleClientRequest)} must be called to initialize this instance immediately after
10041+ * invoking the constructor. </p>
10042+ *
10043+ * @param parent Required. The repository in which to create the workspace. Must be in the format
10044+ * `projects/locations/repositories`.
10045+ * @param content the {@link com.google.api.services.dataform.v1beta1.model.Workspace}
10046+ * @since 1.13
10047+ */
10048+ protected CreateLongRunning(java.lang.String parent, com.google.api.services.dataform.v1beta1.model.Workspace content) {
10049+ super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1beta1.model.Operation.class);
10050+ this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
10051+ if (!getSuppressPatternChecks()) {
10052+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
10053+ "Parameter parent must conform to the pattern " +
10054+ "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$");
10055+ }
10056+ }
10057+
10058+ @Override
10059+ public CreateLongRunning set$Xgafv(java.lang.String $Xgafv) {
10060+ return (CreateLongRunning) super.set$Xgafv($Xgafv);
10061+ }
10062+
10063+ @Override
10064+ public CreateLongRunning setAccessToken(java.lang.String accessToken) {
10065+ return (CreateLongRunning) super.setAccessToken(accessToken);
10066+ }
10067+
10068+ @Override
10069+ public CreateLongRunning setAlt(java.lang.String alt) {
10070+ return (CreateLongRunning) super.setAlt(alt);
10071+ }
10072+
10073+ @Override
10074+ public CreateLongRunning setCallback(java.lang.String callback) {
10075+ return (CreateLongRunning) super.setCallback(callback);
10076+ }
10077+
10078+ @Override
10079+ public CreateLongRunning setFields(java.lang.String fields) {
10080+ return (CreateLongRunning) super.setFields(fields);
10081+ }
10082+
10083+ @Override
10084+ public CreateLongRunning setKey(java.lang.String key) {
10085+ return (CreateLongRunning) super.setKey(key);
10086+ }
10087+
10088+ @Override
10089+ public CreateLongRunning setOauthToken(java.lang.String oauthToken) {
10090+ return (CreateLongRunning) super.setOauthToken(oauthToken);
10091+ }
10092+
10093+ @Override
10094+ public CreateLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) {
10095+ return (CreateLongRunning) super.setPrettyPrint(prettyPrint);
10096+ }
10097+
10098+ @Override
10099+ public CreateLongRunning setQuotaUser(java.lang.String quotaUser) {
10100+ return (CreateLongRunning) super.setQuotaUser(quotaUser);
10101+ }
10102+
10103+ @Override
10104+ public CreateLongRunning setUploadType(java.lang.String uploadType) {
10105+ return (CreateLongRunning) super.setUploadType(uploadType);
10106+ }
10107+
10108+ @Override
10109+ public CreateLongRunning setUploadProtocol(java.lang.String uploadProtocol) {
10110+ return (CreateLongRunning) super.setUploadProtocol(uploadProtocol);
10111+ }
10112+
10113+ /**
10114+ * Required. The repository in which to create the workspace. Must be in the format
10115+ * `projects/locations/repositories`.
10116+ */
10117+ @com.google.api.client.util.Key
10118+ private java.lang.String parent;
10119+
10120+ /** Required. The repository in which to create the workspace. Must be in the format
10121+ `projects/locations/repositories`.
10122+ */
10123+ public java.lang.String getParent() {
10124+ return parent;
10125+ }
10126+
10127+ /**
10128+ * Required. The repository in which to create the workspace. Must be in the format
10129+ * `projects/locations/repositories`.
10130+ */
10131+ public CreateLongRunning setParent(java.lang.String parent) {
10132+ if (!getSuppressPatternChecks()) {
10133+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
10134+ "Parameter parent must conform to the pattern " +
10135+ "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$");
10136+ }
10137+ this.parent = parent;
10138+ return this;
10139+ }
10140+
10141+ /**
10142+ * Required. The ID to use for the workspace, which will become the final component of
10143+ * the workspace's resource name.
10144+ */
10145+ @com.google.api.client.util.Key
10146+ private java.lang.String workspaceId;
10147+
10148+ /** Required. The ID to use for the workspace, which will become the final component of the workspace's
10149+ resource name.
10150+ */
10151+ public java.lang.String getWorkspaceId() {
10152+ return workspaceId;
10153+ }
10154+
10155+ /**
10156+ * Required. The ID to use for the workspace, which will become the final component of
10157+ * the workspace's resource name.
10158+ */
10159+ public CreateLongRunning setWorkspaceId(java.lang.String workspaceId) {
10160+ this.workspaceId = workspaceId;
10161+ return this;
10162+ }
10163+
10164+ @Override
10165+ public CreateLongRunning set(String parameterName, Object value) {
10166+ return (CreateLongRunning) super.set(parameterName, value);
10167+ }
10168+ }
1000610169 /**
1000710170 * Deletes a single Workspace.
1000810171 *
0 commit comments