Skip to content

Commit 9890860

Browse files
1 parent d56460c commit 9890860

16 files changed

Lines changed: 860 additions & 124 deletions

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-rev20251211-2.0.0</version>
25+
<version>v1-rev20260128-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-rev20251211-2.0.0'
38+
implementation 'com.google.apis:google-api-services-healthcare:v1-rev20260128-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: 160 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class CloudHealthcare extends com.google.api.client.googleapis.services.j
103103
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
104104
* <li>Android: {@code newCompatibleTransport} from
105105
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
106-
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
106+
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
107107
* </li>
108108
* </ul>
109109
* @param jsonFactory JSON factory, which may be:
@@ -312,7 +312,10 @@ public Get set(String parameterName, Object value) {
312312
}
313313
}
314314
/**
315-
* Lists information about the supported locations for this service.
315+
* Lists information about the supported locations for this service. This method can be called in
316+
* two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-
317+
* visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include
318+
* public locations as well as private or other locations specifically visible to the project.
316319
*
317320
* Create a request for the method "locations.list".
318321
*
@@ -336,7 +339,10 @@ public class List extends CloudHealthcareRequest<com.google.api.services.healthc
336339
java.util.regex.Pattern.compile("^projects/[^/]+$");
337340

338341
/**
339-
* Lists information about the supported locations for this service.
342+
* Lists information about the supported locations for this service. This method can be called in
343+
* two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-
344+
* visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include
345+
* public locations as well as private or other locations specifically visible to the project.
340346
*
341347
* Create a request for the method "locations.list".
342348
*
@@ -16541,6 +16547,156 @@ public BulkExportGroup set(String parameterName, Object value) {
1654116547
return (BulkExportGroup) super.set(parameterName, value);
1654216548
}
1654316549
}
16550+
/**
16551+
* Bulk deletes the FHIR resources from the given FHIR store. This method returns an Operation that
16552+
* can be used to track the progress of the deletion by calling GetOperation. The success and
16553+
* secondary_success counters correspond to the deleted current version and historical versions,
16554+
* respectively.
16555+
*
16556+
* Create a request for the method "fhirStores.bulkDelete".
16557+
*
16558+
* This request holds the parameters needed by the healthcare server. After setting any optional
16559+
* parameters, call the {@link BulkDelete#execute()} method to invoke the remote operation.
16560+
*
16561+
* @param name Required. The name of the FHIR store to bulk delete resources from, in the format of
16562+
* `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_stor
16563+
* e_id}`.
16564+
* @param content the {@link com.google.api.services.healthcare.v1.model.BulkDeleteResourcesRequest}
16565+
* @return the request
16566+
*/
16567+
public BulkDelete bulkDelete(java.lang.String name, com.google.api.services.healthcare.v1.model.BulkDeleteResourcesRequest content) throws java.io.IOException {
16568+
BulkDelete result = new BulkDelete(name, content);
16569+
initialize(result);
16570+
return result;
16571+
}
16572+
16573+
public class BulkDelete extends CloudHealthcareRequest<com.google.api.services.healthcare.v1.model.Operation> {
16574+
16575+
private static final String REST_PATH = "v1/{+name}:bulkDelete";
16576+
16577+
private final java.util.regex.Pattern NAME_PATTERN =
16578+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$");
16579+
16580+
/**
16581+
* Bulk deletes the FHIR resources from the given FHIR store. This method returns an Operation
16582+
* that can be used to track the progress of the deletion by calling GetOperation. The success and
16583+
* secondary_success counters correspond to the deleted current version and historical versions,
16584+
* respectively.
16585+
*
16586+
* Create a request for the method "fhirStores.bulkDelete".
16587+
*
16588+
* This request holds the parameters needed by the the healthcare server. After setting any
16589+
* optional parameters, call the {@link BulkDelete#execute()} method to invoke the remote
16590+
* operation. <p> {@link
16591+
* BulkDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
16592+
* must be called to initialize this instance immediately after invoking the constructor. </p>
16593+
*
16594+
* @param name Required. The name of the FHIR store to bulk delete resources from, in the format of
16595+
* `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_stor
16596+
* e_id}`.
16597+
* @param content the {@link com.google.api.services.healthcare.v1.model.BulkDeleteResourcesRequest}
16598+
* @since 1.13
16599+
*/
16600+
protected BulkDelete(java.lang.String name, com.google.api.services.healthcare.v1.model.BulkDeleteResourcesRequest content) {
16601+
super(CloudHealthcare.this, "POST", REST_PATH, content, com.google.api.services.healthcare.v1.model.Operation.class);
16602+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
16603+
if (!getSuppressPatternChecks()) {
16604+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
16605+
"Parameter name must conform to the pattern " +
16606+
"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$");
16607+
}
16608+
}
16609+
16610+
@Override
16611+
public BulkDelete set$Xgafv(java.lang.String $Xgafv) {
16612+
return (BulkDelete) super.set$Xgafv($Xgafv);
16613+
}
16614+
16615+
@Override
16616+
public BulkDelete setAccessToken(java.lang.String accessToken) {
16617+
return (BulkDelete) super.setAccessToken(accessToken);
16618+
}
16619+
16620+
@Override
16621+
public BulkDelete setAlt(java.lang.String alt) {
16622+
return (BulkDelete) super.setAlt(alt);
16623+
}
16624+
16625+
@Override
16626+
public BulkDelete setCallback(java.lang.String callback) {
16627+
return (BulkDelete) super.setCallback(callback);
16628+
}
16629+
16630+
@Override
16631+
public BulkDelete setFields(java.lang.String fields) {
16632+
return (BulkDelete) super.setFields(fields);
16633+
}
16634+
16635+
@Override
16636+
public BulkDelete setKey(java.lang.String key) {
16637+
return (BulkDelete) super.setKey(key);
16638+
}
16639+
16640+
@Override
16641+
public BulkDelete setOauthToken(java.lang.String oauthToken) {
16642+
return (BulkDelete) super.setOauthToken(oauthToken);
16643+
}
16644+
16645+
@Override
16646+
public BulkDelete setPrettyPrint(java.lang.Boolean prettyPrint) {
16647+
return (BulkDelete) super.setPrettyPrint(prettyPrint);
16648+
}
16649+
16650+
@Override
16651+
public BulkDelete setQuotaUser(java.lang.String quotaUser) {
16652+
return (BulkDelete) super.setQuotaUser(quotaUser);
16653+
}
16654+
16655+
@Override
16656+
public BulkDelete setUploadType(java.lang.String uploadType) {
16657+
return (BulkDelete) super.setUploadType(uploadType);
16658+
}
16659+
16660+
@Override
16661+
public BulkDelete setUploadProtocol(java.lang.String uploadProtocol) {
16662+
return (BulkDelete) super.setUploadProtocol(uploadProtocol);
16663+
}
16664+
16665+
/**
16666+
* Required. The name of the FHIR store to bulk delete resources from, in the format of
16667+
* `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir
16668+
* _store_id}`.
16669+
*/
16670+
@com.google.api.client.util.Key
16671+
private java.lang.String name;
16672+
16673+
/** Required. The name of the FHIR store to bulk delete resources from, in the format of
16674+
`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.
16675+
*/
16676+
public java.lang.String getName() {
16677+
return name;
16678+
}
16679+
16680+
/**
16681+
* Required. The name of the FHIR store to bulk delete resources from, in the format of
16682+
* `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir
16683+
* _store_id}`.
16684+
*/
16685+
public BulkDelete setName(java.lang.String name) {
16686+
if (!getSuppressPatternChecks()) {
16687+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
16688+
"Parameter name must conform to the pattern " +
16689+
"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$");
16690+
}
16691+
this.name = name;
16692+
return this;
16693+
}
16694+
16695+
@Override
16696+
public BulkDelete set(String parameterName, Object value) {
16697+
return (BulkDelete) super.set(parameterName, value);
16698+
}
16699+
}
1654416700
/**
1654516701
* Creates a new FHIR store within the parent dataset.
1654616702
*
@@ -28010,8 +28166,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
2801028166
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
2801128167
* <li>Android: {@code newCompatibleTransport} from
2801228168
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
28013-
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
28014-
* </li>
28169+
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
2801528170
* </ul>
2801628171
* @param jsonFactory JSON factory, which may be:
2801728172
* <ul>
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
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+
* Request to bulk delete FHIR resources.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Healthcare API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class BulkDeleteResourcesRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The Cloud Storage output destination. The Healthcare Service Agent account requires
34+
* the `roles/storage.objectAdmin` role on the Cloud Storage location. The deleted resources
35+
* outputs are organized by FHIR resource types. The server creates one or more objects per
36+
* resource type. Each object contains newline delimited strings in the format
37+
* {resourceType}/{resourceId}.
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private GoogleCloudHealthcareV1FhirGcsDestination gcsDestination;
42+
43+
/**
44+
* Optional. String of comma-delimited FHIR resource types. If provided, only resources of the
45+
* specified resource type(s) will be deleted.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.lang.String type;
50+
51+
/**
52+
* Optional. If provided, only resources updated before or atthis time are deleted. The time uses
53+
* the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00` or
54+
* `2017-01-01T00:00:00Z`. The time must be specified to the second and include a time zone.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String until;
59+
60+
/**
61+
* Optional. Specifies which version of the resources to delete.
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private java.lang.String versionConfig;
66+
67+
/**
68+
* Optional. The Cloud Storage output destination. The Healthcare Service Agent account requires
69+
* the `roles/storage.objectAdmin` role on the Cloud Storage location. The deleted resources
70+
* outputs are organized by FHIR resource types. The server creates one or more objects per
71+
* resource type. Each object contains newline delimited strings in the format
72+
* {resourceType}/{resourceId}.
73+
* @return value or {@code null} for none
74+
*/
75+
public GoogleCloudHealthcareV1FhirGcsDestination getGcsDestination() {
76+
return gcsDestination;
77+
}
78+
79+
/**
80+
* Optional. The Cloud Storage output destination. The Healthcare Service Agent account requires
81+
* the `roles/storage.objectAdmin` role on the Cloud Storage location. The deleted resources
82+
* outputs are organized by FHIR resource types. The server creates one or more objects per
83+
* resource type. Each object contains newline delimited strings in the format
84+
* {resourceType}/{resourceId}.
85+
* @param gcsDestination gcsDestination or {@code null} for none
86+
*/
87+
public BulkDeleteResourcesRequest setGcsDestination(GoogleCloudHealthcareV1FhirGcsDestination gcsDestination) {
88+
this.gcsDestination = gcsDestination;
89+
return this;
90+
}
91+
92+
/**
93+
* Optional. String of comma-delimited FHIR resource types. If provided, only resources of the
94+
* specified resource type(s) will be deleted.
95+
* @return value or {@code null} for none
96+
*/
97+
public java.lang.String getType() {
98+
return type;
99+
}
100+
101+
/**
102+
* Optional. String of comma-delimited FHIR resource types. If provided, only resources of the
103+
* specified resource type(s) will be deleted.
104+
* @param type type or {@code null} for none
105+
*/
106+
public BulkDeleteResourcesRequest setType(java.lang.String type) {
107+
this.type = type;
108+
return this;
109+
}
110+
111+
/**
112+
* Optional. If provided, only resources updated before or atthis time are deleted. The time uses
113+
* the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00` or
114+
* `2017-01-01T00:00:00Z`. The time must be specified to the second and include a time zone.
115+
* @return value or {@code null} for none
116+
*/
117+
public java.lang.String getUntil() {
118+
return until;
119+
}
120+
121+
/**
122+
* Optional. If provided, only resources updated before or atthis time are deleted. The time uses
123+
* the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00` or
124+
* `2017-01-01T00:00:00Z`. The time must be specified to the second and include a time zone.
125+
* @param until until or {@code null} for none
126+
*/
127+
public BulkDeleteResourcesRequest setUntil(java.lang.String until) {
128+
this.until = until;
129+
return this;
130+
}
131+
132+
/**
133+
* Optional. Specifies which version of the resources to delete.
134+
* @return value or {@code null} for none
135+
*/
136+
public java.lang.String getVersionConfig() {
137+
return versionConfig;
138+
}
139+
140+
/**
141+
* Optional. Specifies which version of the resources to delete.
142+
* @param versionConfig versionConfig or {@code null} for none
143+
*/
144+
public BulkDeleteResourcesRequest setVersionConfig(java.lang.String versionConfig) {
145+
this.versionConfig = versionConfig;
146+
return this;
147+
}
148+
149+
@Override
150+
public BulkDeleteResourcesRequest set(String fieldName, Object value) {
151+
return (BulkDeleteResourcesRequest) super.set(fieldName, value);
152+
}
153+
154+
@Override
155+
public BulkDeleteResourcesRequest clone() {
156+
return (BulkDeleteResourcesRequest) super.clone();
157+
}
158+
159+
}

0 commit comments

Comments
 (0)