@@ -2056,6 +2056,209 @@ public List set(String parameterName, Object value) {
20562056 return (List) super.set(parameterName, value);
20572057 }
20582058 }
2059+ /**
2060+ * Updates the parameters of a single Autonomous Database.
2061+ *
2062+ * Create a request for the method "autonomousDatabases.patch".
2063+ *
2064+ * This request holds the parameters needed by the oracledatabase server. After setting any
2065+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
2066+ *
2067+ * @param name Identifier. The name of the Autonomous Database resource in the following format:
2068+ * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
2069+ * @param content the {@link com.google.api.services.oracledatabase.v1.model.AutonomousDatabase}
2070+ * @return the request
2071+ */
2072+ public Patch patch(java.lang.String name, com.google.api.services.oracledatabase.v1.model.AutonomousDatabase content) throws java.io.IOException {
2073+ Patch result = new Patch(name, content);
2074+ initialize(result);
2075+ return result;
2076+ }
2077+
2078+ public class Patch extends OracleDatabaseRequest<com.google.api.services.oracledatabase.v1.model.Operation> {
2079+
2080+ private static final String REST_PATH = "v1/{+name}";
2081+
2082+ private final java.util.regex.Pattern NAME_PATTERN =
2083+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+$");
2084+
2085+ /**
2086+ * Updates the parameters of a single Autonomous Database.
2087+ *
2088+ * Create a request for the method "autonomousDatabases.patch".
2089+ *
2090+ * This request holds the parameters needed by the the oracledatabase server. After setting any
2091+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
2092+ * <p> {@link
2093+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2094+ * be called to initialize this instance immediately after invoking the constructor. </p>
2095+ *
2096+ * @param name Identifier. The name of the Autonomous Database resource in the following format:
2097+ * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
2098+ * @param content the {@link com.google.api.services.oracledatabase.v1.model.AutonomousDatabase}
2099+ * @since 1.13
2100+ */
2101+ protected Patch(java.lang.String name, com.google.api.services.oracledatabase.v1.model.AutonomousDatabase content) {
2102+ super(OracleDatabase.this, "PATCH", REST_PATH, content, com.google.api.services.oracledatabase.v1.model.Operation.class);
2103+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2104+ if (!getSuppressPatternChecks()) {
2105+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2106+ "Parameter name must conform to the pattern " +
2107+ "^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+$");
2108+ }
2109+ }
2110+
2111+ @Override
2112+ public Patch set$Xgafv(java.lang.String $Xgafv) {
2113+ return (Patch) super.set$Xgafv($Xgafv);
2114+ }
2115+
2116+ @Override
2117+ public Patch setAccessToken(java.lang.String accessToken) {
2118+ return (Patch) super.setAccessToken(accessToken);
2119+ }
2120+
2121+ @Override
2122+ public Patch setAlt(java.lang.String alt) {
2123+ return (Patch) super.setAlt(alt);
2124+ }
2125+
2126+ @Override
2127+ public Patch setCallback(java.lang.String callback) {
2128+ return (Patch) super.setCallback(callback);
2129+ }
2130+
2131+ @Override
2132+ public Patch setFields(java.lang.String fields) {
2133+ return (Patch) super.setFields(fields);
2134+ }
2135+
2136+ @Override
2137+ public Patch setKey(java.lang.String key) {
2138+ return (Patch) super.setKey(key);
2139+ }
2140+
2141+ @Override
2142+ public Patch setOauthToken(java.lang.String oauthToken) {
2143+ return (Patch) super.setOauthToken(oauthToken);
2144+ }
2145+
2146+ @Override
2147+ public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
2148+ return (Patch) super.setPrettyPrint(prettyPrint);
2149+ }
2150+
2151+ @Override
2152+ public Patch setQuotaUser(java.lang.String quotaUser) {
2153+ return (Patch) super.setQuotaUser(quotaUser);
2154+ }
2155+
2156+ @Override
2157+ public Patch setUploadType(java.lang.String uploadType) {
2158+ return (Patch) super.setUploadType(uploadType);
2159+ }
2160+
2161+ @Override
2162+ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
2163+ return (Patch) super.setUploadProtocol(uploadProtocol);
2164+ }
2165+
2166+ /**
2167+ * Identifier. The name of the Autonomous Database resource in the following format:
2168+ * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
2169+ */
2170+ @com.google.api.client.util.Key
2171+ private java.lang.String name;
2172+
2173+ /** Identifier. The name of the Autonomous Database resource in the following format:
2174+ projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
2175+ */
2176+ public java.lang.String getName() {
2177+ return name;
2178+ }
2179+
2180+ /**
2181+ * Identifier. The name of the Autonomous Database resource in the following format:
2182+ * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
2183+ */
2184+ public Patch setName(java.lang.String name) {
2185+ if (!getSuppressPatternChecks()) {
2186+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2187+ "Parameter name must conform to the pattern " +
2188+ "^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+$");
2189+ }
2190+ this.name = name;
2191+ return this;
2192+ }
2193+
2194+ /**
2195+ * Optional. An optional ID to identify the request. This value is used to identify
2196+ * duplicate requests. If you make a request with the same request ID and the original
2197+ * request is still in progress or completed, the server ignores the second request. This
2198+ * prevents clients from accidentally creating duplicate commitments. The request ID must
2199+ * be a valid UUID with the exception that zero UUID is not supported
2200+ * (00000000-0000-0000-0000-000000000000).
2201+ */
2202+ @com.google.api.client.util.Key
2203+ private java.lang.String requestId;
2204+
2205+ /** Optional. An optional ID to identify the request. This value is used to identify duplicate
2206+ requests. If you make a request with the same request ID and the original request is still in
2207+ progress or completed, the server ignores the second request. This prevents clients from
2208+ accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception
2209+ that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2210+ */
2211+ public java.lang.String getRequestId() {
2212+ return requestId;
2213+ }
2214+
2215+ /**
2216+ * Optional. An optional ID to identify the request. This value is used to identify
2217+ * duplicate requests. If you make a request with the same request ID and the original
2218+ * request is still in progress or completed, the server ignores the second request. This
2219+ * prevents clients from accidentally creating duplicate commitments. The request ID must
2220+ * be a valid UUID with the exception that zero UUID is not supported
2221+ * (00000000-0000-0000-0000-000000000000).
2222+ */
2223+ public Patch setRequestId(java.lang.String requestId) {
2224+ this.requestId = requestId;
2225+ return this;
2226+ }
2227+
2228+ /**
2229+ * Optional. Field mask is used to specify the fields to be overwritten in the Exadata
2230+ * resource by the update. The fields specified in the update_mask are relative to the
2231+ * resource, not the full request. A field will be overwritten if it is in the mask. If
2232+ * the user does not provide a mask then all fields will be overwritten.
2233+ */
2234+ @com.google.api.client.util.Key
2235+ private String updateMask;
2236+
2237+ /** Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the
2238+ update. The fields specified in the update_mask are relative to the resource, not the full request.
2239+ A field will be overwritten if it is in the mask. If the user does not provide a mask then all
2240+ fields will be overwritten.
2241+ */
2242+ public String getUpdateMask() {
2243+ return updateMask;
2244+ }
2245+
2246+ /**
2247+ * Optional. Field mask is used to specify the fields to be overwritten in the Exadata
2248+ * resource by the update. The fields specified in the update_mask are relative to the
2249+ * resource, not the full request. A field will be overwritten if it is in the mask. If
2250+ * the user does not provide a mask then all fields will be overwritten.
2251+ */
2252+ public Patch setUpdateMask(String updateMask) {
2253+ this.updateMask = updateMask;
2254+ return this;
2255+ }
2256+
2257+ @Override
2258+ public Patch set(String parameterName, Object value) {
2259+ return (Patch) super.set(parameterName, value);
2260+ }
2261+ }
20592262 /**
20602263 * Restarts an Autonomous Database.
20612264 *
@@ -11783,6 +11986,40 @@ public List setPageToken(java.lang.String pageToken) {
1178311986 return this;
1178411987 }
1178511988
11989+ /**
11990+ * When set to `true`, operations that are reachable are returned as normal, and those
11991+ * that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
11992+ * This can only be `true` when reading across collections e.g. when `parent` is set to
11993+ * `"projects/example/locations/-"`. This field is not by default supported and will
11994+ * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
11995+ * service or product specific documentation.
11996+ */
11997+ @com.google.api.client.util.Key
11998+ private java.lang.Boolean returnPartialSuccess;
11999+
12000+ /** When set to `true`, operations that are reachable are returned as normal, and those that are
12001+ unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true`
12002+ when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This
12003+ field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless
12004+ explicitly documented otherwise in service or product specific documentation.
12005+ */
12006+ public java.lang.Boolean getReturnPartialSuccess() {
12007+ return returnPartialSuccess;
12008+ }
12009+
12010+ /**
12011+ * When set to `true`, operations that are reachable are returned as normal, and those
12012+ * that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
12013+ * This can only be `true` when reading across collections e.g. when `parent` is set to
12014+ * `"projects/example/locations/-"`. This field is not by default supported and will
12015+ * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
12016+ * service or product specific documentation.
12017+ */
12018+ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) {
12019+ this.returnPartialSuccess = returnPartialSuccess;
12020+ return this;
12021+ }
12022+
1178612023 @Override
1178712024 public List set(String parameterName, Object value) {
1178812025 return (List) super.set(parameterName, value);
0 commit comments