Skip to content

Commit 748deb3

Browse files
1 parent 5f56d5b commit 748deb3

File tree

7 files changed

+434
-15
lines changed

7 files changed

+434
-15
lines changed

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

clients/google-api-services-workloadmanager/v1/2.0.0/com/google/api/services/workloadmanager/v1/WorkloadManager.java

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,215 @@ public List set(String parameterName, Object value) {
15061506
return (List) super.set(parameterName, value);
15071507
}
15081508
}
1509+
/**
1510+
* Updates the parameters of a single Evaluation.
1511+
*
1512+
* Create a request for the method "evaluations.patch".
1513+
*
1514+
* This request holds the parameters needed by the workloadmanager server. After setting any
1515+
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1516+
*
1517+
* @param name name of resource names have the form
1518+
* 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
1519+
* @param content the {@link com.google.api.services.workloadmanager.v1.model.Evaluation}
1520+
* @return the request
1521+
*/
1522+
public Patch patch(java.lang.String name, com.google.api.services.workloadmanager.v1.model.Evaluation content) throws java.io.IOException {
1523+
Patch result = new Patch(name, content);
1524+
initialize(result);
1525+
return result;
1526+
}
1527+
1528+
public class Patch extends WorkloadManagerRequest<com.google.api.services.workloadmanager.v1.model.Operation> {
1529+
1530+
private static final String REST_PATH = "v1/{+name}";
1531+
1532+
private final java.util.regex.Pattern NAME_PATTERN =
1533+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$");
1534+
1535+
/**
1536+
* Updates the parameters of a single Evaluation.
1537+
*
1538+
* Create a request for the method "evaluations.patch".
1539+
*
1540+
* This request holds the parameters needed by the the workloadmanager server. After setting any
1541+
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1542+
* <p> {@link
1543+
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1544+
* be called to initialize this instance immediately after invoking the constructor. </p>
1545+
*
1546+
* @param name name of resource names have the form
1547+
* 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
1548+
* @param content the {@link com.google.api.services.workloadmanager.v1.model.Evaluation}
1549+
* @since 1.13
1550+
*/
1551+
protected Patch(java.lang.String name, com.google.api.services.workloadmanager.v1.model.Evaluation content) {
1552+
super(WorkloadManager.this, "PATCH", REST_PATH, content, com.google.api.services.workloadmanager.v1.model.Operation.class);
1553+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1554+
if (!getSuppressPatternChecks()) {
1555+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1556+
"Parameter name must conform to the pattern " +
1557+
"^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$");
1558+
}
1559+
}
1560+
1561+
@Override
1562+
public Patch set$Xgafv(java.lang.String $Xgafv) {
1563+
return (Patch) super.set$Xgafv($Xgafv);
1564+
}
1565+
1566+
@Override
1567+
public Patch setAccessToken(java.lang.String accessToken) {
1568+
return (Patch) super.setAccessToken(accessToken);
1569+
}
1570+
1571+
@Override
1572+
public Patch setAlt(java.lang.String alt) {
1573+
return (Patch) super.setAlt(alt);
1574+
}
1575+
1576+
@Override
1577+
public Patch setCallback(java.lang.String callback) {
1578+
return (Patch) super.setCallback(callback);
1579+
}
1580+
1581+
@Override
1582+
public Patch setFields(java.lang.String fields) {
1583+
return (Patch) super.setFields(fields);
1584+
}
1585+
1586+
@Override
1587+
public Patch setKey(java.lang.String key) {
1588+
return (Patch) super.setKey(key);
1589+
}
1590+
1591+
@Override
1592+
public Patch setOauthToken(java.lang.String oauthToken) {
1593+
return (Patch) super.setOauthToken(oauthToken);
1594+
}
1595+
1596+
@Override
1597+
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
1598+
return (Patch) super.setPrettyPrint(prettyPrint);
1599+
}
1600+
1601+
@Override
1602+
public Patch setQuotaUser(java.lang.String quotaUser) {
1603+
return (Patch) super.setQuotaUser(quotaUser);
1604+
}
1605+
1606+
@Override
1607+
public Patch setUploadType(java.lang.String uploadType) {
1608+
return (Patch) super.setUploadType(uploadType);
1609+
}
1610+
1611+
@Override
1612+
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
1613+
return (Patch) super.setUploadProtocol(uploadProtocol);
1614+
}
1615+
1616+
/**
1617+
* name of resource names have the form
1618+
* 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
1619+
*/
1620+
@com.google.api.client.util.Key
1621+
private java.lang.String name;
1622+
1623+
/** name of resource names have the form
1624+
'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
1625+
*/
1626+
public java.lang.String getName() {
1627+
return name;
1628+
}
1629+
1630+
/**
1631+
* name of resource names have the form
1632+
* 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
1633+
*/
1634+
public Patch setName(java.lang.String name) {
1635+
if (!getSuppressPatternChecks()) {
1636+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1637+
"Parameter name must conform to the pattern " +
1638+
"^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$");
1639+
}
1640+
this.name = name;
1641+
return this;
1642+
}
1643+
1644+
/**
1645+
* Optional. An optional request ID to identify requests. Specify a unique request ID so
1646+
* that if you must retry your request, the server will know to ignore the request if it
1647+
* has already been completed. The server will guarantee that for at least 60 minutes
1648+
* since the first request. For example, consider a situation where you make an initial
1649+
* request and the request times out. If you make the request again with the same request
1650+
* ID, the server can check if original operation with the same request ID was received,
1651+
* and if so, will ignore the second request. This prevents clients from accidentally
1652+
* creating duplicate commitments. The request ID must be a valid UUID with the exception
1653+
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1654+
*/
1655+
@com.google.api.client.util.Key
1656+
private java.lang.String requestId;
1657+
1658+
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
1659+
must retry your request, the server will know to ignore the request if it has already been
1660+
completed. The server will guarantee that for at least 60 minutes since the first request. For
1661+
example, consider a situation where you make an initial request and the request times out. If you
1662+
make the request again with the same request ID, the server can check if original operation with
1663+
the same request ID was received, and if so, will ignore the second request. This prevents clients
1664+
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
1665+
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1666+
*/
1667+
public java.lang.String getRequestId() {
1668+
return requestId;
1669+
}
1670+
1671+
/**
1672+
* Optional. An optional request ID to identify requests. Specify a unique request ID so
1673+
* that if you must retry your request, the server will know to ignore the request if it
1674+
* has already been completed. The server will guarantee that for at least 60 minutes
1675+
* since the first request. For example, consider a situation where you make an initial
1676+
* request and the request times out. If you make the request again with the same request
1677+
* ID, the server can check if original operation with the same request ID was received,
1678+
* and if so, will ignore the second request. This prevents clients from accidentally
1679+
* creating duplicate commitments. The request ID must be a valid UUID with the exception
1680+
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1681+
*/
1682+
public Patch setRequestId(java.lang.String requestId) {
1683+
this.requestId = requestId;
1684+
return this;
1685+
}
1686+
1687+
/**
1688+
* Required. Field mask is used to specify the fields to be overwritten in the Evaluation
1689+
* resource by the update. The fields specified in the update_mask are relative to the
1690+
* resource, not the full request. A field will be overwritten if it is in the mask.
1691+
*/
1692+
@com.google.api.client.util.Key
1693+
private String updateMask;
1694+
1695+
/** Required. Field mask is used to specify the fields to be overwritten in the Evaluation resource by
1696+
the update. The fields specified in the update_mask are relative to the resource, not the full
1697+
request. A field will be overwritten if it is in the mask.
1698+
*/
1699+
public String getUpdateMask() {
1700+
return updateMask;
1701+
}
1702+
1703+
/**
1704+
* Required. Field mask is used to specify the fields to be overwritten in the Evaluation
1705+
* resource by the update. The fields specified in the update_mask are relative to the
1706+
* resource, not the full request. A field will be overwritten if it is in the mask.
1707+
*/
1708+
public Patch setUpdateMask(String updateMask) {
1709+
this.updateMask = updateMask;
1710+
return this;
1711+
}
1712+
1713+
@Override
1714+
public Patch set(String parameterName, Object value) {
1715+
return (Patch) super.set(parameterName, value);
1716+
}
1717+
}
15091718

15101719
/**
15111720
* An accessor for creating requests from the Executions collection.
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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.workloadmanager.v1.model;
18+
19+
/**
20+
* Message represent an rule that failed to be validated.
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 Workload Manager 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 InvalidRule extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* display name of the invalid rule
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String displayName;
38+
39+
/**
40+
* cloud storage destination of the invalid rule
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String gcsUri;
45+
46+
/**
47+
* name of the invalid rule
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String name;
52+
53+
/**
54+
* The error message of valdating rule formats.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String valiadtionError;
59+
60+
/**
61+
* display name of the invalid rule
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.String getDisplayName() {
65+
return displayName;
66+
}
67+
68+
/**
69+
* display name of the invalid rule
70+
* @param displayName displayName or {@code null} for none
71+
*/
72+
public InvalidRule setDisplayName(java.lang.String displayName) {
73+
this.displayName = displayName;
74+
return this;
75+
}
76+
77+
/**
78+
* cloud storage destination of the invalid rule
79+
* @return value or {@code null} for none
80+
*/
81+
public java.lang.String getGcsUri() {
82+
return gcsUri;
83+
}
84+
85+
/**
86+
* cloud storage destination of the invalid rule
87+
* @param gcsUri gcsUri or {@code null} for none
88+
*/
89+
public InvalidRule setGcsUri(java.lang.String gcsUri) {
90+
this.gcsUri = gcsUri;
91+
return this;
92+
}
93+
94+
/**
95+
* name of the invalid rule
96+
* @return value or {@code null} for none
97+
*/
98+
public java.lang.String getName() {
99+
return name;
100+
}
101+
102+
/**
103+
* name of the invalid rule
104+
* @param name name or {@code null} for none
105+
*/
106+
public InvalidRule setName(java.lang.String name) {
107+
this.name = name;
108+
return this;
109+
}
110+
111+
/**
112+
* The error message of valdating rule formats.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.lang.String getValiadtionError() {
116+
return valiadtionError;
117+
}
118+
119+
/**
120+
* The error message of valdating rule formats.
121+
* @param valiadtionError valiadtionError or {@code null} for none
122+
*/
123+
public InvalidRule setValiadtionError(java.lang.String valiadtionError) {
124+
this.valiadtionError = valiadtionError;
125+
return this;
126+
}
127+
128+
@Override
129+
public InvalidRule set(String fieldName, Object value) {
130+
return (InvalidRule) super.set(fieldName, value);
131+
}
132+
133+
@Override
134+
public InvalidRule clone() {
135+
return (InvalidRule) super.clone();
136+
}
137+
138+
}

0 commit comments

Comments
 (0)