Skip to content

Commit 2793f7b

Browse files
1 parent 5e9450a commit 2793f7b

File tree

14 files changed

+1028
-12
lines changed

14 files changed

+1028
-12
lines changed

clients/google-api-services-healthcare/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-healthcare</artifactId>
25-
<version>v1-rev20240718-2.0.0</version>
25+
<version>v1-rev20240731-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-healthcare:v1-rev20240718-2.0.0'
38+
implementation 'com.google.apis:google-api-services-healthcare:v1-rev20240731-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/CloudHealthcare.java

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22327,6 +22327,162 @@ public Patch set(String parameterName, Object value) {
2232722327
return (Patch) super.set(parameterName, value);
2232822328
}
2232922329
}
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+
}
2233022486
/**
2233122487
* Sets the access control policy on the specified resource. Replaces any existing policy. Can
2233222488
* return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.healthcare.v1.model;
18+
19+
/**
20+
* Filtering fields for an HL7 rollback. Currently only supports a list of operation ids to roll
21+
* back.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Healthcare API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class RollbackHL7MessagesFilteringFields extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. A list of operation IDs to roll back.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
38+
private java.util.List<java.math.BigInteger> operationIds;
39+
40+
/**
41+
* Optional. A list of operation IDs to roll back.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<java.math.BigInteger> getOperationIds() {
45+
return operationIds;
46+
}
47+
48+
/**
49+
* Optional. A list of operation IDs to roll back.
50+
* @param operationIds operationIds or {@code null} for none
51+
*/
52+
public RollbackHL7MessagesFilteringFields setOperationIds(java.util.List<java.math.BigInteger> operationIds) {
53+
this.operationIds = operationIds;
54+
return this;
55+
}
56+
57+
@Override
58+
public RollbackHL7MessagesFilteringFields set(String fieldName, Object value) {
59+
return (RollbackHL7MessagesFilteringFields) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public RollbackHL7MessagesFilteringFields clone() {
64+
return (RollbackHL7MessagesFilteringFields) super.clone();
65+
}
66+
67+
}

0 commit comments

Comments
 (0)