Skip to content

Commit 1980c02

Browse files
1 parent 0ad4973 commit 1980c02

File tree

7 files changed

+307
-15
lines changed

7 files changed

+307
-15
lines changed

clients/google-api-services-backupdr/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-backupdr</artifactId>
25-
<version>v1-rev20250625-2.0.0</version>
25+
<version>v1-rev20250711-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-backupdr:v1-rev20250625-2.0.0'
38+
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20250711-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/Backupdr.java

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8819,6 +8819,152 @@ public List set(String parameterName, Object value) {
88198819
return (List) super.set(parameterName, value);
88208820
}
88218821
}
8822+
/**
8823+
* Returns the Assured Workloads compliance metadata for a given project.
8824+
*
8825+
* Create a request for the method "managementServers.msComplianceMetadata".
8826+
*
8827+
* This request holds the parameters needed by the backupdr server. After setting any optional
8828+
* parameters, call the {@link MsComplianceMetadata#execute()} method to invoke the remote
8829+
* operation.
8830+
*
8831+
* @param parent Required. The project and location to be used to check CSS metadata for target project information,
8832+
* in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR, locations
8833+
* map to Google Cloud regions, for example **us-central1**.
8834+
* @param content the {@link com.google.api.services.backupdr.v1.model.FetchMsComplianceMetadataRequest}
8835+
* @return the request
8836+
*/
8837+
public MsComplianceMetadata msComplianceMetadata(java.lang.String parent, com.google.api.services.backupdr.v1.model.FetchMsComplianceMetadataRequest content) throws java.io.IOException {
8838+
MsComplianceMetadata result = new MsComplianceMetadata(parent, content);
8839+
initialize(result);
8840+
return result;
8841+
}
8842+
8843+
public class MsComplianceMetadata extends BackupdrRequest<com.google.api.services.backupdr.v1.model.FetchMsComplianceMetadataResponse> {
8844+
8845+
private static final String REST_PATH = "v1/{+parent}:msComplianceMetadata";
8846+
8847+
private final java.util.regex.Pattern PARENT_PATTERN =
8848+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/managementServers$");
8849+
8850+
/**
8851+
* Returns the Assured Workloads compliance metadata for a given project.
8852+
*
8853+
* Create a request for the method "managementServers.msComplianceMetadata".
8854+
*
8855+
* This request holds the parameters needed by the the backupdr server. After setting any
8856+
* optional parameters, call the {@link MsComplianceMetadata#execute()} method to invoke the
8857+
* remote operation. <p> {@link MsComplianceMetadata#initialize(com.google.api.client.googleapis.s
8858+
* ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
8859+
* after invoking the constructor. </p>
8860+
*
8861+
* @param parent Required. The project and location to be used to check CSS metadata for target project information,
8862+
* in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR, locations
8863+
* map to Google Cloud regions, for example **us-central1**.
8864+
* @param content the {@link com.google.api.services.backupdr.v1.model.FetchMsComplianceMetadataRequest}
8865+
* @since 1.13
8866+
*/
8867+
protected MsComplianceMetadata(java.lang.String parent, com.google.api.services.backupdr.v1.model.FetchMsComplianceMetadataRequest content) {
8868+
super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.v1.model.FetchMsComplianceMetadataResponse.class);
8869+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
8870+
if (!getSuppressPatternChecks()) {
8871+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
8872+
"Parameter parent must conform to the pattern " +
8873+
"^projects/[^/]+/locations/[^/]+/managementServers$");
8874+
}
8875+
}
8876+
8877+
@Override
8878+
public MsComplianceMetadata set$Xgafv(java.lang.String $Xgafv) {
8879+
return (MsComplianceMetadata) super.set$Xgafv($Xgafv);
8880+
}
8881+
8882+
@Override
8883+
public MsComplianceMetadata setAccessToken(java.lang.String accessToken) {
8884+
return (MsComplianceMetadata) super.setAccessToken(accessToken);
8885+
}
8886+
8887+
@Override
8888+
public MsComplianceMetadata setAlt(java.lang.String alt) {
8889+
return (MsComplianceMetadata) super.setAlt(alt);
8890+
}
8891+
8892+
@Override
8893+
public MsComplianceMetadata setCallback(java.lang.String callback) {
8894+
return (MsComplianceMetadata) super.setCallback(callback);
8895+
}
8896+
8897+
@Override
8898+
public MsComplianceMetadata setFields(java.lang.String fields) {
8899+
return (MsComplianceMetadata) super.setFields(fields);
8900+
}
8901+
8902+
@Override
8903+
public MsComplianceMetadata setKey(java.lang.String key) {
8904+
return (MsComplianceMetadata) super.setKey(key);
8905+
}
8906+
8907+
@Override
8908+
public MsComplianceMetadata setOauthToken(java.lang.String oauthToken) {
8909+
return (MsComplianceMetadata) super.setOauthToken(oauthToken);
8910+
}
8911+
8912+
@Override
8913+
public MsComplianceMetadata setPrettyPrint(java.lang.Boolean prettyPrint) {
8914+
return (MsComplianceMetadata) super.setPrettyPrint(prettyPrint);
8915+
}
8916+
8917+
@Override
8918+
public MsComplianceMetadata setQuotaUser(java.lang.String quotaUser) {
8919+
return (MsComplianceMetadata) super.setQuotaUser(quotaUser);
8920+
}
8921+
8922+
@Override
8923+
public MsComplianceMetadata setUploadType(java.lang.String uploadType) {
8924+
return (MsComplianceMetadata) super.setUploadType(uploadType);
8925+
}
8926+
8927+
@Override
8928+
public MsComplianceMetadata setUploadProtocol(java.lang.String uploadProtocol) {
8929+
return (MsComplianceMetadata) super.setUploadProtocol(uploadProtocol);
8930+
}
8931+
8932+
/**
8933+
* Required. The project and location to be used to check CSS metadata for target project
8934+
* information, in the format 'projects/{project_id}/locations/{location}'. In Cloud
8935+
* BackupDR, locations map to Google Cloud regions, for example **us-central1**.
8936+
*/
8937+
@com.google.api.client.util.Key
8938+
private java.lang.String parent;
8939+
8940+
/** Required. The project and location to be used to check CSS metadata for target project information,
8941+
in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR, locations map to
8942+
Google Cloud regions, for example **us-central1**.
8943+
*/
8944+
public java.lang.String getParent() {
8945+
return parent;
8946+
}
8947+
8948+
/**
8949+
* Required. The project and location to be used to check CSS metadata for target project
8950+
* information, in the format 'projects/{project_id}/locations/{location}'. In Cloud
8951+
* BackupDR, locations map to Google Cloud regions, for example **us-central1**.
8952+
*/
8953+
public MsComplianceMetadata setParent(java.lang.String parent) {
8954+
if (!getSuppressPatternChecks()) {
8955+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
8956+
"Parameter parent must conform to the pattern " +
8957+
"^projects/[^/]+/locations/[^/]+/managementServers$");
8958+
}
8959+
this.parent = parent;
8960+
return this;
8961+
}
8962+
8963+
@Override
8964+
public MsComplianceMetadata set(String parameterName, Object value) {
8965+
return (MsComplianceMetadata) super.set(parameterName, value);
8966+
}
8967+
}
88228968
/**
88238969
* Sets the access control policy on the specified resource. Replaces any existing policy. Can
88248970
* return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceRestoreProperties.java

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public final class ComputeInstanceRestoreProperties extends com.google.api.clien
7070

7171
/**
7272
* Optional. Array of disks associated with this instance. Persistent disks must be created before
73-
* you can assign them.
73+
* you can assign them. Source regional persistent disks will be restored with default replica
74+
* zones if not specified.
7475
* The value may be {@code null}.
7576
*/
7677
@com.google.api.client.util.Key
@@ -164,7 +165,8 @@ public final class ComputeInstanceRestoreProperties extends com.google.api.clien
164165
/**
165166
* Optional. An array of network configurations for this instance. These specify how interfaces
166167
* are configured to interact with other network services, such as connecting to the internet.
167-
* Multiple interfaces are supported per instance.
168+
* Multiple interfaces are supported per instance. Required to restore in different project or
169+
* region.
168170
* The value may be {@code null}.
169171
*/
170172
@com.google.api.client.util.Key
@@ -201,7 +203,8 @@ public final class ComputeInstanceRestoreProperties extends com.google.api.clien
201203
private AllocationAffinity reservationAffinity;
202204

203205
/**
204-
* Optional. Resource policies applied to this instance.
206+
* Optional. Resource policies applied to this instance. By default, no resource policies will be
207+
* applied.
205208
* The value may be {@code null}.
206209
*/
207210
@com.google.api.client.util.Key
@@ -321,7 +324,8 @@ public ComputeInstanceRestoreProperties setDescription(java.lang.String descript
321324

322325
/**
323326
* Optional. Array of disks associated with this instance. Persistent disks must be created before
324-
* you can assign them.
327+
* you can assign them. Source regional persistent disks will be restored with default replica
328+
* zones if not specified.
325329
* @return value or {@code null} for none
326330
*/
327331
public java.util.List<AttachedDisk> getDisks() {
@@ -330,7 +334,8 @@ public java.util.List<AttachedDisk> getDisks() {
330334

331335
/**
332336
* Optional. Array of disks associated with this instance. Persistent disks must be created before
333-
* you can assign them.
337+
* you can assign them. Source regional persistent disks will be restored with default replica
338+
* zones if not specified.
334339
* @param disks disks or {@code null} for none
335340
*/
336341
public ComputeInstanceRestoreProperties setDisks(java.util.List<AttachedDisk> disks) {
@@ -517,7 +522,8 @@ public ComputeInstanceRestoreProperties setName(java.lang.String name) {
517522
/**
518523
* Optional. An array of network configurations for this instance. These specify how interfaces
519524
* are configured to interact with other network services, such as connecting to the internet.
520-
* Multiple interfaces are supported per instance.
525+
* Multiple interfaces are supported per instance. Required to restore in different project or
526+
* region.
521527
* @return value or {@code null} for none
522528
*/
523529
public java.util.List<NetworkInterface> getNetworkInterfaces() {
@@ -527,7 +533,8 @@ public java.util.List<NetworkInterface> getNetworkInterfaces() {
527533
/**
528534
* Optional. An array of network configurations for this instance. These specify how interfaces
529535
* are configured to interact with other network services, such as connecting to the internet.
530-
* Multiple interfaces are supported per instance.
536+
* Multiple interfaces are supported per instance. Required to restore in different project or
537+
* region.
531538
* @param networkInterfaces networkInterfaces or {@code null} for none
532539
*/
533540
public ComputeInstanceRestoreProperties setNetworkInterfaces(java.util.List<NetworkInterface> networkInterfaces) {
@@ -608,15 +615,17 @@ public ComputeInstanceRestoreProperties setReservationAffinity(AllocationAffinit
608615
}
609616

610617
/**
611-
* Optional. Resource policies applied to this instance.
618+
* Optional. Resource policies applied to this instance. By default, no resource policies will be
619+
* applied.
612620
* @return value or {@code null} for none
613621
*/
614622
public java.util.List<java.lang.String> getResourcePolicies() {
615623
return resourcePolicies;
616624
}
617625

618626
/**
619-
* Optional. Resource policies applied to this instance.
627+
* Optional. Resource policies applied to this instance. By default, no resource policies will be
628+
* applied.
620629
* @param resourcePolicies resourcePolicies or {@code null} for none
621630
*/
622631
public ComputeInstanceRestoreProperties setResourcePolicies(java.util.List<java.lang.String> resourcePolicies) {
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.backupdr.v1.model;
18+
19+
/**
20+
* Request message for GetMsComplianceMetadata
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 Backup and DR Service API. For a detailed explanation
24+
* 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 FetchMsComplianceMetadataRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The project id of the target project
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String projectId;
39+
40+
/**
41+
* Required. The project id of the target project
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getProjectId() {
45+
return projectId;
46+
}
47+
48+
/**
49+
* Required. The project id of the target project
50+
* @param projectId projectId or {@code null} for none
51+
*/
52+
public FetchMsComplianceMetadataRequest setProjectId(java.lang.String projectId) {
53+
this.projectId = projectId;
54+
return this;
55+
}
56+
57+
@Override
58+
public FetchMsComplianceMetadataRequest set(String fieldName, Object value) {
59+
return (FetchMsComplianceMetadataRequest) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public FetchMsComplianceMetadataRequest clone() {
64+
return (FetchMsComplianceMetadataRequest) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.backupdr.v1.model;
18+
19+
/**
20+
* Response message for GetMsComplianceMetadata
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 Backup and DR Service API. For a detailed explanation
24+
* 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 FetchMsComplianceMetadataResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The ms compliance metadata of the target project, if the project is an assured workloads
35+
* project, values will be true, otherwise false.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean isAssuredWorkload;
40+
41+
/**
42+
* The ms compliance metadata of the target project, if the project is an assured workloads
43+
* project, values will be true, otherwise false.
44+
* @return value or {@code null} for none
45+
*/
46+
public java.lang.Boolean getIsAssuredWorkload() {
47+
return isAssuredWorkload;
48+
}
49+
50+
/**
51+
* The ms compliance metadata of the target project, if the project is an assured workloads
52+
* project, values will be true, otherwise false.
53+
* @param isAssuredWorkload isAssuredWorkload or {@code null} for none
54+
*/
55+
public FetchMsComplianceMetadataResponse setIsAssuredWorkload(java.lang.Boolean isAssuredWorkload) {
56+
this.isAssuredWorkload = isAssuredWorkload;
57+
return this;
58+
}
59+
60+
@Override
61+
public FetchMsComplianceMetadataResponse set(String fieldName, Object value) {
62+
return (FetchMsComplianceMetadataResponse) super.set(fieldName, value);
63+
}
64+
65+
@Override
66+
public FetchMsComplianceMetadataResponse clone() {
67+
return (FetchMsComplianceMetadataResponse) super.clone();
68+
}
69+
70+
}

0 commit comments

Comments
 (0)