@@ -1200,6 +1200,82 @@ public final UnaryCallable<GetRecommendationRequest, Recommendation> getRecommen |
1200 | 1200 | return stub.getRecommendationCallable(); |
1201 | 1201 | } |
1202 | 1202 |
|
| 1203 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 1204 | + /** |
| 1205 | + * Mark the Recommendation State as Dismissed. Users can use this method to indicate to the |
| 1206 | + * Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. |
| 1207 | + * |
| 1208 | + * <p>MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. |
| 1209 | + * |
| 1210 | + * <p>Requires the recommender.*.update IAM permission for the specified recommender. |
| 1211 | + * |
| 1212 | + * <p>Sample code: |
| 1213 | + * |
| 1214 | + * <pre>{@code |
| 1215 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 1216 | + * // It will require modifications to work: |
| 1217 | + * // - It may require correct/in-range values for request initialization. |
| 1218 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 1219 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 1220 | + * try (RecommenderClient recommenderClient = RecommenderClient.create()) { |
| 1221 | + * MarkRecommendationDismissedRequest request = |
| 1222 | + * MarkRecommendationDismissedRequest.newBuilder() |
| 1223 | + * .setName( |
| 1224 | + * RecommendationName.ofProjectLocationRecommenderRecommendationName( |
| 1225 | + * "[PROJECT]", "[LOCATION]", "[RECOMMENDER]", "[RECOMMENDATION]") |
| 1226 | + * .toString()) |
| 1227 | + * .setEtag("etag3123477") |
| 1228 | + * .build(); |
| 1229 | + * Recommendation response = recommenderClient.markRecommendationDismissed(request); |
| 1230 | + * } |
| 1231 | + * }</pre> |
| 1232 | + * |
| 1233 | + * @param request The request object containing all of the parameters for the API call. |
| 1234 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 1235 | + */ |
| 1236 | + public final Recommendation markRecommendationDismissed( |
| 1237 | + MarkRecommendationDismissedRequest request) { |
| 1238 | + return markRecommendationDismissedCallable().call(request); |
| 1239 | + } |
| 1240 | + |
| 1241 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 1242 | + /** |
| 1243 | + * Mark the Recommendation State as Dismissed. Users can use this method to indicate to the |
| 1244 | + * Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. |
| 1245 | + * |
| 1246 | + * <p>MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. |
| 1247 | + * |
| 1248 | + * <p>Requires the recommender.*.update IAM permission for the specified recommender. |
| 1249 | + * |
| 1250 | + * <p>Sample code: |
| 1251 | + * |
| 1252 | + * <pre>{@code |
| 1253 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 1254 | + * // It will require modifications to work: |
| 1255 | + * // - It may require correct/in-range values for request initialization. |
| 1256 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 1257 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 1258 | + * try (RecommenderClient recommenderClient = RecommenderClient.create()) { |
| 1259 | + * MarkRecommendationDismissedRequest request = |
| 1260 | + * MarkRecommendationDismissedRequest.newBuilder() |
| 1261 | + * .setName( |
| 1262 | + * RecommendationName.ofProjectLocationRecommenderRecommendationName( |
| 1263 | + * "[PROJECT]", "[LOCATION]", "[RECOMMENDER]", "[RECOMMENDATION]") |
| 1264 | + * .toString()) |
| 1265 | + * .setEtag("etag3123477") |
| 1266 | + * .build(); |
| 1267 | + * ApiFuture<Recommendation> future = |
| 1268 | + * recommenderClient.markRecommendationDismissedCallable().futureCall(request); |
| 1269 | + * // Do something. |
| 1270 | + * Recommendation response = future.get(); |
| 1271 | + * } |
| 1272 | + * }</pre> |
| 1273 | + */ |
| 1274 | + public final UnaryCallable<MarkRecommendationDismissedRequest, Recommendation> |
| 1275 | + markRecommendationDismissedCallable() { |
| 1276 | + return stub.markRecommendationDismissedCallable(); |
| 1277 | + } |
| 1278 | + |
1203 | 1279 | // AUTO-GENERATED DOCUMENTATION AND METHOD. |
1204 | 1280 | /** |
1205 | 1281 | * Marks the Recommendation State as Claimed. Users can use this method to indicate to the |
@@ -1779,6 +1855,9 @@ public final Recommendation markRecommendationFailed(MarkRecommendationFailedReq |
1779 | 1855 | * <ul> |
1780 | 1856 | * <li>`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` |
1781 | 1857 | * </ul> |
| 1858 | + * <ul> |
| 1859 | + * <li>`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` |
| 1860 | + * </ul> |
1782 | 1861 | * |
1783 | 1862 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
1784 | 1863 | */ |
@@ -1823,6 +1902,9 @@ public final RecommenderConfig getRecommenderConfig(RecommenderConfigName name) |
1823 | 1902 | * <ul> |
1824 | 1903 | * <li>`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` |
1825 | 1904 | * </ul> |
| 1905 | + * <ul> |
| 1906 | + * <li>`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` |
| 1907 | + * </ul> |
1826 | 1908 | * |
1827 | 1909 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
1828 | 1910 | */ |
@@ -2016,13 +2098,16 @@ public final RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRe |
2016 | 2098 | * @param name Required. Name of the InsightTypeConfig to get. |
2017 | 2099 | * <p>Acceptable formats: |
2018 | 2100 | * <ul> |
2019 | | - * <li>`projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` |
| 2101 | + * <li>`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
2020 | 2102 | * </ul> |
2021 | 2103 | * <ul> |
2022 | | - * <li>`projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` |
| 2104 | + * <li>`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
2023 | 2105 | * </ul> |
2024 | 2106 | * <ul> |
2025 | | - * <li>`organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` |
| 2107 | + * <li>`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
| 2108 | + * </ul> |
| 2109 | + * <ul> |
| 2110 | + * <li>`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
2026 | 2111 | * </ul> |
2027 | 2112 | * |
2028 | 2113 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
@@ -2060,13 +2145,16 @@ public final InsightTypeConfig getInsightTypeConfig(InsightTypeConfigName name) |
2060 | 2145 | * @param name Required. Name of the InsightTypeConfig to get. |
2061 | 2146 | * <p>Acceptable formats: |
2062 | 2147 | * <ul> |
2063 | | - * <li>`projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` |
| 2148 | + * <li>`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
| 2149 | + * </ul> |
| 2150 | + * <ul> |
| 2151 | + * <li>`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
2064 | 2152 | * </ul> |
2065 | 2153 | * <ul> |
2066 | | - * <li>`projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` |
| 2154 | + * <li>`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
2067 | 2155 | * </ul> |
2068 | 2156 | * <ul> |
2069 | | - * <li>`organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` |
| 2157 | + * <li>`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` |
2070 | 2158 | * </ul> |
2071 | 2159 | * |
2072 | 2160 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
|