recommender_service.proto 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.recommender.v1beta1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/cloud/recommender/v1beta1/insight.proto";
  21. import "google/cloud/recommender/v1beta1/insight_type_config.proto";
  22. import "google/cloud/recommender/v1beta1/recommendation.proto";
  23. import "google/cloud/recommender/v1beta1/recommender_config.proto";
  24. import "google/protobuf/field_mask.proto";
  25. option csharp_namespace = "Google.Cloud.Recommender.V1Beta1";
  26. option go_package = "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1;recommender";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "RecommenderProto";
  29. option java_package = "com.google.cloud.recommender.v1beta1";
  30. option objc_class_prefix = "CREC";
  31. // Provides insights and recommendations for cloud customers for various
  32. // categories like performance optimization, cost savings, reliability, feature
  33. // discovery, etc. Insights and recommendations are generated automatically
  34. // based on analysis of user resources, configuration and monitoring metrics.
  35. service Recommender {
  36. option (google.api.default_host) = "recommender.googleapis.com";
  37. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  38. // Lists insights for the specified Cloud Resource. Requires the
  39. // recommender.*.list IAM permission for the specified insight type.
  40. rpc ListInsights(ListInsightsRequest) returns (ListInsightsResponse) {
  41. option (google.api.http) = {
  42. get: "/v1beta1/{parent=projects/*/locations/*/insightTypes/*}/insights"
  43. additional_bindings {
  44. get: "/v1beta1/{parent=billingAccounts/*/locations/*/insightTypes/*}/insights"
  45. }
  46. additional_bindings {
  47. get: "/v1beta1/{parent=folders/*/locations/*/insightTypes/*}/insights"
  48. }
  49. additional_bindings {
  50. get: "/v1beta1/{parent=organizations/*/locations/*/insightTypes/*}/insights"
  51. }
  52. };
  53. option (google.api.method_signature) = "parent";
  54. }
  55. // Gets the requested insight. Requires the recommender.*.get IAM permission
  56. // for the specified insight type.
  57. rpc GetInsight(GetInsightRequest) returns (Insight) {
  58. option (google.api.http) = {
  59. get: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}"
  60. additional_bindings {
  61. get: "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}"
  62. }
  63. additional_bindings {
  64. get: "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}"
  65. }
  66. additional_bindings {
  67. get: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}"
  68. }
  69. };
  70. option (google.api.method_signature) = "name";
  71. }
  72. // Marks the Insight State as Accepted. Users can use this method to
  73. // indicate to the Recommender API that they have applied some action based
  74. // on the insight. This stops the insight content from being updated.
  75. //
  76. // MarkInsightAccepted can be applied to insights in ACTIVE state. Requires
  77. // the recommender.*.update IAM permission for the specified insight.
  78. rpc MarkInsightAccepted(MarkInsightAcceptedRequest) returns (Insight) {
  79. option (google.api.http) = {
  80. post: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted"
  81. body: "*"
  82. additional_bindings {
  83. post: "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}:markAccepted"
  84. body: "*"
  85. }
  86. additional_bindings {
  87. post: "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}:markAccepted"
  88. body: "*"
  89. }
  90. additional_bindings {
  91. post: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted"
  92. body: "*"
  93. }
  94. };
  95. option (google.api.method_signature) = "name,state_metadata,etag";
  96. }
  97. // Lists recommendations for the specified Cloud Resource. Requires the
  98. // recommender.*.list IAM permission for the specified recommender.
  99. rpc ListRecommendations(ListRecommendationsRequest) returns (ListRecommendationsResponse) {
  100. option (google.api.http) = {
  101. get: "/v1beta1/{parent=projects/*/locations/*/recommenders/*}/recommendations"
  102. additional_bindings {
  103. get: "/v1beta1/{parent=billingAccounts/*/locations/*/recommenders/*}/recommendations"
  104. }
  105. additional_bindings {
  106. get: "/v1beta1/{parent=folders/*/locations/*/recommenders/*}/recommendations"
  107. }
  108. additional_bindings {
  109. get: "/v1beta1/{parent=organizations/*/locations/*/recommenders/*}/recommendations"
  110. }
  111. };
  112. option (google.api.method_signature) = "parent,filter";
  113. }
  114. // Gets the requested recommendation. Requires the recommender.*.get
  115. // IAM permission for the specified recommender.
  116. rpc GetRecommendation(GetRecommendationRequest) returns (Recommendation) {
  117. option (google.api.http) = {
  118. get: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}"
  119. additional_bindings {
  120. get: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}"
  121. }
  122. additional_bindings {
  123. get: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}"
  124. }
  125. additional_bindings {
  126. get: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}"
  127. }
  128. };
  129. option (google.api.method_signature) = "name";
  130. }
  131. // Marks the Recommendation State as Claimed. Users can use this method to
  132. // indicate to the Recommender API that they are starting to apply the
  133. // recommendation themselves. This stops the recommendation content from being
  134. // updated. Associated insights are frozen and placed in the ACCEPTED state.
  135. //
  136. // MarkRecommendationClaimed can be applied to recommendations in CLAIMED or
  137. // ACTIVE state.
  138. //
  139. // Requires the recommender.*.update IAM permission for the specified
  140. // recommender.
  141. rpc MarkRecommendationClaimed(MarkRecommendationClaimedRequest) returns (Recommendation) {
  142. option (google.api.http) = {
  143. post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed"
  144. body: "*"
  145. additional_bindings {
  146. post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markClaimed"
  147. body: "*"
  148. }
  149. additional_bindings {
  150. post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markClaimed"
  151. body: "*"
  152. }
  153. additional_bindings {
  154. post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed"
  155. body: "*"
  156. }
  157. };
  158. option (google.api.method_signature) = "name,state_metadata,etag";
  159. }
  160. // Marks the Recommendation State as Succeeded. Users can use this method to
  161. // indicate to the Recommender API that they have applied the recommendation
  162. // themselves, and the operation was successful. This stops the recommendation
  163. // content from being updated. Associated insights are frozen and placed in
  164. // the ACCEPTED state.
  165. //
  166. // MarkRecommendationSucceeded can be applied to recommendations in ACTIVE,
  167. // CLAIMED, SUCCEEDED, or FAILED state.
  168. //
  169. // Requires the recommender.*.update IAM permission for the specified
  170. // recommender.
  171. rpc MarkRecommendationSucceeded(MarkRecommendationSucceededRequest) returns (Recommendation) {
  172. option (google.api.http) = {
  173. post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded"
  174. body: "*"
  175. additional_bindings {
  176. post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markSucceeded"
  177. body: "*"
  178. }
  179. additional_bindings {
  180. post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markSucceeded"
  181. body: "*"
  182. }
  183. additional_bindings {
  184. post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded"
  185. body: "*"
  186. }
  187. };
  188. option (google.api.method_signature) = "name,state_metadata,etag";
  189. }
  190. // Marks the Recommendation State as Failed. Users can use this method to
  191. // indicate to the Recommender API that they have applied the recommendation
  192. // themselves, and the operation failed. This stops the recommendation content
  193. // from being updated. Associated insights are frozen and placed in the
  194. // ACCEPTED state.
  195. //
  196. // MarkRecommendationFailed can be applied to recommendations in ACTIVE,
  197. // CLAIMED, SUCCEEDED, or FAILED state.
  198. //
  199. // Requires the recommender.*.update IAM permission for the specified
  200. // recommender.
  201. rpc MarkRecommendationFailed(MarkRecommendationFailedRequest) returns (Recommendation) {
  202. option (google.api.http) = {
  203. post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed"
  204. body: "*"
  205. additional_bindings {
  206. post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markFailed"
  207. body: "*"
  208. }
  209. additional_bindings {
  210. post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markFailed"
  211. body: "*"
  212. }
  213. additional_bindings {
  214. post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed"
  215. body: "*"
  216. }
  217. };
  218. option (google.api.method_signature) = "name,state_metadata,etag";
  219. }
  220. // Gets the requested Recommender Config. There is only one instance of the
  221. // config for each Recommender.
  222. rpc GetRecommenderConfig(GetRecommenderConfigRequest) returns (RecommenderConfig) {
  223. option (google.api.http) = {
  224. get: "/v1beta1/{name=projects/*/locations/*/recommenders/*/config}"
  225. additional_bindings {
  226. get: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/config}"
  227. }
  228. };
  229. option (google.api.method_signature) = "name";
  230. }
  231. // Updates a Recommender Config. This will create a new revision of the
  232. // config.
  233. rpc UpdateRecommenderConfig(UpdateRecommenderConfigRequest) returns (RecommenderConfig) {
  234. option (google.api.http) = {
  235. patch: "/v1beta1/{recommender_config.name=projects/*/locations/*/recommenders/*/config}"
  236. body: "recommender_config"
  237. additional_bindings {
  238. post: "/v1beta1/{recommender_config.name=organizations/*/locations/*/recommenders/*/config}"
  239. body: "recommender_config"
  240. }
  241. };
  242. option (google.api.method_signature) = "recommender_config,update_mask";
  243. }
  244. // Gets the requested InsightTypeConfig. There is only one instance of the
  245. // config for each InsightType.
  246. rpc GetInsightTypeConfig(GetInsightTypeConfigRequest) returns (InsightTypeConfig) {
  247. option (google.api.http) = {
  248. get: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/config}"
  249. additional_bindings {
  250. get: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/config}"
  251. }
  252. };
  253. option (google.api.method_signature) = "name";
  254. }
  255. // Updates an InsightTypeConfig change. This will create a new revision of the
  256. // config.
  257. rpc UpdateInsightTypeConfig(UpdateInsightTypeConfigRequest) returns (InsightTypeConfig) {
  258. option (google.api.http) = {
  259. patch: "/v1beta1/{insight_type_config.name=projects/*/locations/*/insightTypes/*/config}"
  260. body: "insight_type_config"
  261. additional_bindings {
  262. post: "/v1beta1/{insight_type_config.name=organizations/*/locations/*/insightTypes/*/config}"
  263. body: "insight_type_config"
  264. }
  265. };
  266. option (google.api.method_signature) = "insight_type_config,update_mask";
  267. }
  268. }
  269. // Request for the `ListInsights` method.
  270. message ListInsightsRequest {
  271. // Required. The container resource on which to execute the request.
  272. // Acceptable formats:
  273. //
  274. // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`
  275. //
  276. // * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`
  277. //
  278. // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`
  279. //
  280. // * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`
  281. //
  282. // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`
  283. //
  284. // LOCATION here refers to GCP Locations:
  285. // https://cloud.google.com/about/locations/
  286. // INSIGHT_TYPE_ID refers to supported insight types:
  287. // https://cloud.google.com/recommender/docs/insights/insight-types.
  288. string parent = 1 [
  289. (google.api.field_behavior) = REQUIRED,
  290. (google.api.resource_reference) = {
  291. type: "recommender.googleapis.com/InsightType"
  292. }
  293. ];
  294. // Optional. The maximum number of results to return from this request. Non-positive
  295. // values are ignored. If not specified, the server will determine the number
  296. // of results to return.
  297. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
  298. // Optional. If present, retrieves the next batch of results from the preceding call to
  299. // this method. `page_token` must be the value of `next_page_token` from the
  300. // previous response. The values of other method parameters must be identical
  301. // to those in the previous call.
  302. string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
  303. // Optional. Filter expression to restrict the insights returned. Supported
  304. // filter fields:
  305. //
  306. // * `stateInfo.state`
  307. //
  308. // * `insightSubtype`
  309. //
  310. // * `severity`
  311. //
  312. // Examples:
  313. //
  314. // * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
  315. //
  316. // * `insightSubtype = PERMISSIONS_USAGE`
  317. //
  318. // * `severity = CRITICAL OR severity = HIGH`
  319. //
  320. // * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)`
  321. //
  322. // (These expressions are based on the filter language described at
  323. // https://google.aip.dev/160)
  324. string filter = 4 [(google.api.field_behavior) = OPTIONAL];
  325. }
  326. // Response to the `ListInsights` method.
  327. message ListInsightsResponse {
  328. // The set of insights for the `parent` resource.
  329. repeated Insight insights = 1;
  330. // A token that can be used to request the next page of results. This field is
  331. // empty if there are no additional results.
  332. string next_page_token = 2;
  333. }
  334. // Request to the `GetInsight` method.
  335. message GetInsightRequest {
  336. // Required. Name of the insight.
  337. string name = 1 [
  338. (google.api.field_behavior) = REQUIRED,
  339. (google.api.resource_reference) = {
  340. type: "recommender.googleapis.com/Insight"
  341. }
  342. ];
  343. }
  344. // Request for the `MarkInsightAccepted` method.
  345. message MarkInsightAcceptedRequest {
  346. // Required. Name of the insight.
  347. string name = 1 [
  348. (google.api.field_behavior) = REQUIRED,
  349. (google.api.resource_reference) = {
  350. type: "recommender.googleapis.com/Insight"
  351. }
  352. ];
  353. // Optional. State properties user wish to include with this state. Full replace of the
  354. // current state_metadata.
  355. map<string, string> state_metadata = 2 [(google.api.field_behavior) = OPTIONAL];
  356. // Required. Fingerprint of the Insight. Provides optimistic locking.
  357. string etag = 3 [(google.api.field_behavior) = REQUIRED];
  358. }
  359. // Request for the `ListRecommendations` method.
  360. message ListRecommendationsRequest {
  361. // Required. The container resource on which to execute the request.
  362. // Acceptable formats:
  363. //
  364. // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`
  365. //
  366. // * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`
  367. //
  368. // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`
  369. //
  370. // * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`
  371. //
  372. // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`
  373. //
  374. // LOCATION here refers to GCP Locations:
  375. // https://cloud.google.com/about/locations/
  376. // RECOMMENDER_ID refers to supported recommenders:
  377. // https://cloud.google.com/recommender/docs/recommenders.
  378. string parent = 1 [
  379. (google.api.field_behavior) = REQUIRED,
  380. (google.api.resource_reference) = {
  381. type: "recommender.googleapis.com/Recommender"
  382. }
  383. ];
  384. // Optional. The maximum number of results to return from this request. Non-positive
  385. // values are ignored. If not specified, the server will determine the number
  386. // of results to return.
  387. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
  388. // Optional. If present, retrieves the next batch of results from the preceding call to
  389. // this method. `page_token` must be the value of `next_page_token` from the
  390. // previous response. The values of other method parameters must be identical
  391. // to those in the previous call.
  392. string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
  393. // Filter expression to restrict the recommendations returned. Supported
  394. // filter fields:
  395. //
  396. // * `state_info.state`
  397. //
  398. // * `recommenderSubtype`
  399. //
  400. // * `priority`
  401. //
  402. // Examples:
  403. //
  404. // * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
  405. //
  406. // * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE`
  407. //
  408. // * `priority = P1 OR priority = P2`
  409. //
  410. // * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)`
  411. //
  412. // (These expressions are based on the filter language described at
  413. // https://google.aip.dev/160)
  414. string filter = 5;
  415. }
  416. // Response to the `ListRecommendations` method.
  417. message ListRecommendationsResponse {
  418. // The set of recommendations for the `parent` resource.
  419. repeated Recommendation recommendations = 1;
  420. // A token that can be used to request the next page of results. This field is
  421. // empty if there are no additional results.
  422. string next_page_token = 2;
  423. }
  424. // Request to the `GetRecommendation` method.
  425. message GetRecommendationRequest {
  426. // Required. Name of the recommendation.
  427. string name = 1 [
  428. (google.api.field_behavior) = REQUIRED,
  429. (google.api.resource_reference) = {
  430. type: "recommender.googleapis.com/Recommendation"
  431. }
  432. ];
  433. }
  434. // Request for the `MarkRecommendationClaimed` Method.
  435. message MarkRecommendationClaimedRequest {
  436. // Required. Name of the recommendation.
  437. string name = 1 [
  438. (google.api.field_behavior) = REQUIRED,
  439. (google.api.resource_reference) = {
  440. type: "recommender.googleapis.com/Recommendation"
  441. }
  442. ];
  443. // State properties to include with this state. Overwrites any existing
  444. // `state_metadata`.
  445. // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
  446. // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
  447. map<string, string> state_metadata = 2;
  448. // Required. Fingerprint of the Recommendation. Provides optimistic locking.
  449. string etag = 3 [(google.api.field_behavior) = REQUIRED];
  450. }
  451. // Request for the `MarkRecommendationSucceeded` Method.
  452. message MarkRecommendationSucceededRequest {
  453. // Required. Name of the recommendation.
  454. string name = 1 [
  455. (google.api.field_behavior) = REQUIRED,
  456. (google.api.resource_reference) = {
  457. type: "recommender.googleapis.com/Recommendation"
  458. }
  459. ];
  460. // State properties to include with this state. Overwrites any existing
  461. // `state_metadata`.
  462. // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
  463. // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
  464. map<string, string> state_metadata = 2;
  465. // Required. Fingerprint of the Recommendation. Provides optimistic locking.
  466. string etag = 3 [(google.api.field_behavior) = REQUIRED];
  467. }
  468. // Request for the `MarkRecommendationFailed` Method.
  469. message MarkRecommendationFailedRequest {
  470. // Required. Name of the recommendation.
  471. string name = 1 [
  472. (google.api.field_behavior) = REQUIRED,
  473. (google.api.resource_reference) = {
  474. type: "recommender.googleapis.com/Recommendation"
  475. }
  476. ];
  477. // State properties to include with this state. Overwrites any existing
  478. // `state_metadata`.
  479. // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
  480. // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
  481. map<string, string> state_metadata = 2;
  482. // Required. Fingerprint of the Recommendation. Provides optimistic locking.
  483. string etag = 3 [(google.api.field_behavior) = REQUIRED];
  484. }
  485. // Request for the GetRecommenderConfig` method.
  486. message GetRecommenderConfigRequest {
  487. // Required. Name of the Recommendation Config to get.
  488. //
  489. // Acceptable formats:
  490. //
  491. // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`
  492. //
  493. // * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`
  494. //
  495. // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`
  496. string name = 1 [
  497. (google.api.field_behavior) = REQUIRED,
  498. (google.api.resource_reference) = {
  499. type: "recommender.googleapis.com/RecommenderConfig"
  500. }
  501. ];
  502. }
  503. // Request for the `UpdateRecommenderConfig` method.
  504. message UpdateRecommenderConfigRequest {
  505. // Required. The RecommenderConfig to update.
  506. RecommenderConfig recommender_config = 1 [(google.api.field_behavior) = REQUIRED];
  507. // The list of fields to be updated.
  508. google.protobuf.FieldMask update_mask = 2;
  509. // If true, validate the request and preview the change, but do not actually
  510. // update it.
  511. bool validate_only = 3;
  512. }
  513. // Request for the GetInsightTypeConfig` method.
  514. message GetInsightTypeConfigRequest {
  515. // Required. Name of the InsightTypeConfig to get.
  516. //
  517. // Acceptable formats:
  518. //
  519. // * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`
  520. //
  521. // * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`
  522. //
  523. // * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`
  524. string name = 1 [
  525. (google.api.field_behavior) = REQUIRED,
  526. (google.api.resource_reference) = {
  527. type: "recommender.googleapis.com/InsightTypeConfig"
  528. }
  529. ];
  530. }
  531. // Request for the `UpdateInsightTypeConfig` method.
  532. message UpdateInsightTypeConfigRequest {
  533. // Required. The InsightTypeConfig to update.
  534. InsightTypeConfig insight_type_config = 1 [(google.api.field_behavior) = REQUIRED];
  535. // The list of fields to be updated.
  536. google.protobuf.FieldMask update_mask = 2;
  537. // If true, validate the request and preview the change, but do not actually
  538. // update it.
  539. bool validate_only = 3;
  540. }