@@ -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.
0 commit comments