@@ -2355,6 +2355,162 @@ public Lookup set(String parameterName, Object value) {
23552355 return (Lookup) super.set(parameterName, value);
23562356 }
23572357 }
2358+ /**
2359+ * Update an Api Hub instance. The following fields in the ApiHubInstance can be updated: *
2360+ * disable_search * vertex_location * agent_registry_sync_config The update_mask should be used to
2361+ * specify the fields being updated.
2362+ *
2363+ * Create a request for the method "apiHubInstances.patch".
2364+ *
2365+ * This request holds the parameters needed by the apihub server. After setting any optional
2366+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
2367+ *
2368+ * @param name Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2369+ * @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance}
2370+ * @return the request
2371+ */
2372+ public Patch patch(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance content) throws java.io.IOException {
2373+ Patch result = new Patch(name, content);
2374+ initialize(result);
2375+ return result;
2376+ }
2377+
2378+ public class Patch extends APIhubRequest<com.google.api.services.apihub.v1.model.GoogleLongrunningOperation> {
2379+
2380+ private static final String REST_PATH = "v1/{+name}";
2381+
2382+ private final java.util.regex.Pattern NAME_PATTERN =
2383+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$");
2384+
2385+ /**
2386+ * Update an Api Hub instance. The following fields in the ApiHubInstance can be updated: *
2387+ * disable_search * vertex_location * agent_registry_sync_config The update_mask should be used to
2388+ * specify the fields being updated.
2389+ *
2390+ * Create a request for the method "apiHubInstances.patch".
2391+ *
2392+ * This request holds the parameters needed by the the apihub server. After setting any optional
2393+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
2394+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2395+ * be called to initialize this instance immediately after invoking the constructor. </p>
2396+ *
2397+ * @param name Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2398+ * @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance}
2399+ * @since 1.13
2400+ */
2401+ protected Patch(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance content) {
2402+ super(APIhub.this, "PATCH", REST_PATH, content, com.google.api.services.apihub.v1.model.GoogleLongrunningOperation.class);
2403+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2404+ if (!getSuppressPatternChecks()) {
2405+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2406+ "Parameter name must conform to the pattern " +
2407+ "^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$");
2408+ }
2409+ }
2410+
2411+ @Override
2412+ public Patch set$Xgafv(java.lang.String $Xgafv) {
2413+ return (Patch) super.set$Xgafv($Xgafv);
2414+ }
2415+
2416+ @Override
2417+ public Patch setAccessToken(java.lang.String accessToken) {
2418+ return (Patch) super.setAccessToken(accessToken);
2419+ }
2420+
2421+ @Override
2422+ public Patch setAlt(java.lang.String alt) {
2423+ return (Patch) super.setAlt(alt);
2424+ }
2425+
2426+ @Override
2427+ public Patch setCallback(java.lang.String callback) {
2428+ return (Patch) super.setCallback(callback);
2429+ }
2430+
2431+ @Override
2432+ public Patch setFields(java.lang.String fields) {
2433+ return (Patch) super.setFields(fields);
2434+ }
2435+
2436+ @Override
2437+ public Patch setKey(java.lang.String key) {
2438+ return (Patch) super.setKey(key);
2439+ }
2440+
2441+ @Override
2442+ public Patch setOauthToken(java.lang.String oauthToken) {
2443+ return (Patch) super.setOauthToken(oauthToken);
2444+ }
2445+
2446+ @Override
2447+ public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
2448+ return (Patch) super.setPrettyPrint(prettyPrint);
2449+ }
2450+
2451+ @Override
2452+ public Patch setQuotaUser(java.lang.String quotaUser) {
2453+ return (Patch) super.setQuotaUser(quotaUser);
2454+ }
2455+
2456+ @Override
2457+ public Patch setUploadType(java.lang.String uploadType) {
2458+ return (Patch) super.setUploadType(uploadType);
2459+ }
2460+
2461+ @Override
2462+ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
2463+ return (Patch) super.setUploadProtocol(uploadProtocol);
2464+ }
2465+
2466+ /**
2467+ * Identifier. Format:
2468+ * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2469+ */
2470+ @com.google.api.client.util.Key
2471+ private java.lang.String name;
2472+
2473+ /** Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2474+ */
2475+ public java.lang.String getName() {
2476+ return name;
2477+ }
2478+
2479+ /**
2480+ * Identifier. Format:
2481+ * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2482+ */
2483+ public Patch setName(java.lang.String name) {
2484+ if (!getSuppressPatternChecks()) {
2485+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2486+ "Parameter name must conform to the pattern " +
2487+ "^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$");
2488+ }
2489+ this.name = name;
2490+ return this;
2491+ }
2492+
2493+ /** Optional. The list of fields to update. */
2494+ @com.google.api.client.util.Key
2495+ private String updateMask;
2496+
2497+ /** Optional. The list of fields to update.
2498+ */
2499+ public String getUpdateMask() {
2500+ return updateMask;
2501+ }
2502+
2503+ /** Optional. The list of fields to update. */
2504+ public Patch setUpdateMask(String updateMask) {
2505+ this.updateMask = updateMask;
2506+ return this;
2507+ }
2508+
2509+ @Override
2510+ public Patch set(String parameterName, Object value) {
2511+ return (Patch) super.set(parameterName, value);
2512+ }
2513+ }
23582514
23592515 }
23602516 /**
0 commit comments