@@ -22327,6 +22327,162 @@ public Patch set(String parameterName, Object value) {
22327
22327
return (Patch) super.set(parameterName, value);
22328
22328
}
22329
22329
}
22330
+ /**
22331
+ * Rolls back messages from the HL7 store to the specified time. This method returns an Operation
22332
+ * that can be used to track the status of the rollback by calling GetOperation. Immediate fatal
22333
+ * errors appear in the error field, errors are also logged to Cloud Logging (see [Viewing error
22334
+ * logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging)). Otherwise,
22335
+ * when the operation finishes, a detailed response of type RollbackHl7V2MessagesResponse is
22336
+ * returned in the response field. The metadata field type for this operation is OperationMetadata.
22337
+ *
22338
+ * Create a request for the method "hl7V2Stores.rollback".
22339
+ *
22340
+ * This request holds the parameters needed by the healthcare server. After setting any optional
22341
+ * parameters, call the {@link Rollback#execute()} method to invoke the remote operation.
22342
+ *
22343
+ * @param name Required. The name of the HL7v2 store to rollback, in the format of
22344
+ * "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
22345
+ * /hl7V2Stores/{hl7v2_store_id}".
22346
+ * @param content the {@link com.google.api.services.healthcare.v1.model.RollbackHl7V2MessagesRequest}
22347
+ * @return the request
22348
+ */
22349
+ public Rollback rollback(java.lang.String name, com.google.api.services.healthcare.v1.model.RollbackHl7V2MessagesRequest content) throws java.io.IOException {
22350
+ Rollback result = new Rollback(name, content);
22351
+ initialize(result);
22352
+ return result;
22353
+ }
22354
+
22355
+ public class Rollback extends CloudHealthcareRequest<com.google.api.services.healthcare.v1.model.Operation> {
22356
+
22357
+ private static final String REST_PATH = "v1/{+name}:rollback";
22358
+
22359
+ private final java.util.regex.Pattern NAME_PATTERN =
22360
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$");
22361
+
22362
+ /**
22363
+ * Rolls back messages from the HL7 store to the specified time. This method returns an Operation
22364
+ * that can be used to track the status of the rollback by calling GetOperation. Immediate fatal
22365
+ * errors appear in the error field, errors are also logged to Cloud Logging (see [Viewing error
22366
+ * logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging)). Otherwise,
22367
+ * when the operation finishes, a detailed response of type RollbackHl7V2MessagesResponse is
22368
+ * returned in the response field. The metadata field type for this operation is
22369
+ * OperationMetadata.
22370
+ *
22371
+ * Create a request for the method "hl7V2Stores.rollback".
22372
+ *
22373
+ * This request holds the parameters needed by the the healthcare server. After setting any
22374
+ * optional parameters, call the {@link Rollback#execute()} method to invoke the remote operation.
22375
+ * <p> {@link
22376
+ * Rollback#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
22377
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
22378
+ *
22379
+ * @param name Required. The name of the HL7v2 store to rollback, in the format of
22380
+ * "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
22381
+ * /hl7V2Stores/{hl7v2_store_id}".
22382
+ * @param content the {@link com.google.api.services.healthcare.v1.model.RollbackHl7V2MessagesRequest}
22383
+ * @since 1.13
22384
+ */
22385
+ protected Rollback(java.lang.String name, com.google.api.services.healthcare.v1.model.RollbackHl7V2MessagesRequest content) {
22386
+ super(CloudHealthcare.this, "POST", REST_PATH, content, com.google.api.services.healthcare.v1.model.Operation.class);
22387
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
22388
+ if (!getSuppressPatternChecks()) {
22389
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
22390
+ "Parameter name must conform to the pattern " +
22391
+ "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$");
22392
+ }
22393
+ }
22394
+
22395
+ @Override
22396
+ public Rollback set$Xgafv(java.lang.String $Xgafv) {
22397
+ return (Rollback) super.set$Xgafv($Xgafv);
22398
+ }
22399
+
22400
+ @Override
22401
+ public Rollback setAccessToken(java.lang.String accessToken) {
22402
+ return (Rollback) super.setAccessToken(accessToken);
22403
+ }
22404
+
22405
+ @Override
22406
+ public Rollback setAlt(java.lang.String alt) {
22407
+ return (Rollback) super.setAlt(alt);
22408
+ }
22409
+
22410
+ @Override
22411
+ public Rollback setCallback(java.lang.String callback) {
22412
+ return (Rollback) super.setCallback(callback);
22413
+ }
22414
+
22415
+ @Override
22416
+ public Rollback setFields(java.lang.String fields) {
22417
+ return (Rollback) super.setFields(fields);
22418
+ }
22419
+
22420
+ @Override
22421
+ public Rollback setKey(java.lang.String key) {
22422
+ return (Rollback) super.setKey(key);
22423
+ }
22424
+
22425
+ @Override
22426
+ public Rollback setOauthToken(java.lang.String oauthToken) {
22427
+ return (Rollback) super.setOauthToken(oauthToken);
22428
+ }
22429
+
22430
+ @Override
22431
+ public Rollback setPrettyPrint(java.lang.Boolean prettyPrint) {
22432
+ return (Rollback) super.setPrettyPrint(prettyPrint);
22433
+ }
22434
+
22435
+ @Override
22436
+ public Rollback setQuotaUser(java.lang.String quotaUser) {
22437
+ return (Rollback) super.setQuotaUser(quotaUser);
22438
+ }
22439
+
22440
+ @Override
22441
+ public Rollback setUploadType(java.lang.String uploadType) {
22442
+ return (Rollback) super.setUploadType(uploadType);
22443
+ }
22444
+
22445
+ @Override
22446
+ public Rollback setUploadProtocol(java.lang.String uploadProtocol) {
22447
+ return (Rollback) super.setUploadProtocol(uploadProtocol);
22448
+ }
22449
+
22450
+ /**
22451
+ * Required. The name of the HL7v2 store to rollback, in the format of
22452
+ * "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
22453
+ * /hl7V2Stores/{hl7v2_store_id}".
22454
+ */
22455
+ @com.google.api.client.util.Key
22456
+ private java.lang.String name;
22457
+
22458
+ /** Required. The name of the HL7v2 store to rollback, in the format of
22459
+ "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
22460
+ /hl7V2Stores/{hl7v2_store_id}".
22461
+ */
22462
+ public java.lang.String getName() {
22463
+ return name;
22464
+ }
22465
+
22466
+ /**
22467
+ * Required. The name of the HL7v2 store to rollback, in the format of
22468
+ * "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
22469
+ * /hl7V2Stores/{hl7v2_store_id}".
22470
+ */
22471
+ public Rollback setName(java.lang.String name) {
22472
+ if (!getSuppressPatternChecks()) {
22473
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
22474
+ "Parameter name must conform to the pattern " +
22475
+ "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$");
22476
+ }
22477
+ this.name = name;
22478
+ return this;
22479
+ }
22480
+
22481
+ @Override
22482
+ public Rollback set(String parameterName, Object value) {
22483
+ return (Rollback) super.set(parameterName, value);
22484
+ }
22485
+ }
22330
22486
/**
22331
22487
* Sets the access control policy on the specified resource. Replaces any existing policy. Can
22332
22488
* return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
0 commit comments