{ "canonicalName": "Recommender", "ownerDomain": "google.com", "discoveryVersion": "v1", "description": "", "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/cloud-platform": { "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." } } } }, "batchPath": "batch", "fullyEncodeReservedExpansion": true, "ownerName": "Google", "icons": { "x32": "http://www.google.com/images/icons/product/search-32.gif", "x16": "http://www.google.com/images/icons/product/search-16.gif" }, "documentationLink": "https://cloud.google.com/recommender/docs/", "resources": { "insightTypes": { "methods": { "list": { "parameterOrder": [], "httpMethod": "GET", "description": "Lists available InsightTypes. No IAM permissions are required.", "path": "v1beta1/insightTypes", "id": "recommender.insightTypes.list", "parameters": { "pageToken": { "location": "query", "description": "Optional. A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page.", "type": "string" }, "pageSize": { "description": "Optional. The number of InsightTypes to return per page. The service may return fewer than this value.", "location": "query", "type": "integer", "format": "int32" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1beta1/insightTypes", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListInsightTypesResponse" } } } }, "folders": { "resources": { "locations": { "methods": { "list": { "response": { "$ref": "GoogleCloudLocationListLocationsResponse" }, "flatPath": "v1beta1/folders/{foldersId}/locations", "parameters": { "pageToken": { "location": "query", "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", "type": "string" }, "pageSize": { "location": "query", "description": "The maximum number of results to return. If not set, the service selects a default.", "type": "integer", "format": "int32" }, "name": { "required": true, "location": "path", "description": "The resource that owns the locations collection, if applicable.", "type": "string", "pattern": "^folders/[^/]+$" }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "type": "string", "location": "query" } }, "id": "recommender.folders.locations.list", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Lists locations with recommendations or insights.", "path": "v1beta1/{+name}/locations", "httpMethod": "GET" } }, "resources": { "recommenders": { "resources": { "recommendations": { "methods": { "markSucceeded": { "path": "v1beta1/{+name}:markSucceeded", "id": "recommender.folders.locations.recommenders.recommendations.markSucceeded", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "httpMethod": "POST", "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "parameters": { "name": { "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "required": true, "description": "Required. Name of the recommendation.", "type": "string", "location": "path" } }, "description": "Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender." }, "markDismissed": { "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "httpMethod": "POST", "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "parameterOrder": [ "name" ], "id": "recommender.folders.locations.recommenders.recommendations.markDismissed", "parameters": { "name": { "description": "Required. Name of the recommendation.", "location": "path", "type": "string", "required": true, "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "path": "v1beta1/{+name}:markDismissed", "description": "Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "markClaimed": { "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "id": "recommender.folders.locations.recommenders.recommendations.markClaimed", "description": "Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "httpMethod": "POST", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest" }, "parameterOrder": [ "name" ], "path": "v1beta1/{+name}:markClaimed", "parameters": { "name": { "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "description": "Required. Name of the recommendation.", "required": true, "type": "string" } } }, "markFailed": { "parameterOrder": [ "name" ], "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest" }, "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "parameters": { "name": { "description": "Required. Name of the recommendation.", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "type": "string", "required": true, "location": "path" } }, "description": "Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", "httpMethod": "POST", "path": "v1beta1/{+name}:markFailed", "id": "recommender.folders.locations.recommenders.recommendations.markFailed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { "path": "v1beta1/{+name}", "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}", "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "httpMethod": "GET", "parameterOrder": [ "name" ], "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "required": true, "type": "string", "location": "path", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "description": "Required. Name of the recommendation." } }, "id": "recommender.folders.locations.recommenders.recommendations.get" }, "list": { "response": { "$ref": "GoogleCloudRecommenderV1beta1ListRecommendationsResponse" }, "path": "v1beta1/{+parent}/recommendations", "httpMethod": "GET", "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.folders.locations.recommenders.recommendations.list", "parameters": { "parent": { "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+$", "required": true, "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.", "type": "string", "location": "path" }, "filter": { "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "location": "query", "type": "string" }, "pageToken": { "location": "query", "type": "string", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call." }, "pageSize": { "location": "query", "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "type": "integer", "format": "int32" } }, "parameterOrder": [ "parent" ], "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations" } } } } }, "insightTypes": { "resources": { "insights": { "methods": { "get": { "httpMethod": "GET", "id": "recommender.folders.locations.insightTypes.insights.get", "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}", "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1beta1/{+name}", "parameterOrder": [ "name" ], "parameters": { "name": { "location": "path", "description": "Required. Name of the insight.", "pattern": "^folders/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true, "type": "string" } } }, "markAccepted": { "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "httpMethod": "POST", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1beta1/{+name}:markAccepted", "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "parameterOrder": [ "name" ], "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest" }, "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "parameters": { "name": { "location": "path", "required": true, "description": "Required. Name of the insight.", "pattern": "^folders/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "type": "string" } }, "id": "recommender.folders.locations.insightTypes.insights.markAccepted" }, "list": { "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights", "id": "recommender.folders.locations.insightTypes.insights.list", "parameterOrder": [ "parent" ], "httpMethod": "GET", "parameters": { "pageToken": { "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "location": "query", "type": "string" }, "parent": { "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.", "type": "string", "required": true, "pattern": "^folders/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "location": "path" }, "pageSize": { "location": "query", "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "type": "integer", "format": "int32" }, "filter": { "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string", "location": "query" } }, "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", "path": "v1beta1/{+parent}/insights", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListInsightsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } } } } } } } }, "recommenders": { "methods": { "list": { "parameters": { "pageSize": { "format": "int32", "description": "Optional. The number of RecommenderTypes to return per page. The service may return fewer than this value.", "type": "integer", "location": "query" }, "pageToken": { "description": "Optional. A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page.", "type": "string", "location": "query" } }, "response": { "$ref": "GoogleCloudRecommenderV1beta1ListRecommendersResponse" }, "httpMethod": "GET", "flatPath": "v1beta1/recommenders", "id": "recommender.recommenders.list", "parameterOrder": [], "description": "Lists all available Recommenders. No IAM permissions are required.", "path": "v1beta1/recommenders", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } }, "organizations": { "resources": { "locations": { "methods": { "list": { "response": { "$ref": "GoogleCloudLocationListLocationsResponse" }, "path": "v1beta1/{+name}/locations", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "parameters": { "filter": { "type": "string", "location": "query", "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160)." }, "pageSize": { "location": "query", "format": "int32", "description": "The maximum number of results to return. If not set, the service selects a default.", "type": "integer" }, "name": { "location": "path", "description": "The resource that owns the locations collection, if applicable.", "required": true, "type": "string", "pattern": "^organizations/[^/]+$" }, "pageToken": { "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", "type": "string", "location": "query" } }, "flatPath": "v1beta1/organizations/{organizationsId}/locations", "description": "Lists locations with recommendations or insights.", "httpMethod": "GET", "id": "recommender.organizations.locations.list" } }, "resources": { "recommenders": { "resources": { "recommendations": { "methods": { "get": { "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "httpMethod": "GET", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}", "path": "v1beta1/{+name}", "id": "recommender.organizations.locations.recommenders.recommendations.get", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "Required. Name of the recommendation.", "location": "path", "type": "string", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations", "parameterOrder": [ "parent" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "filter": { "type": "string", "location": "query", "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)" }, "pageSize": { "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "location": "query", "type": "integer", "format": "int32" }, "parent": { "location": "path", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.", "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+$", "required": true }, "pageToken": { "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "location": "query", "type": "string" } }, "path": "v1beta1/{+parent}/recommendations", "id": "recommender.organizations.locations.recommenders.recommendations.list", "httpMethod": "GET", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListRecommendationsResponse" } }, "markDismissed": { "description": "Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest" }, "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "id": "recommender.organizations.locations.recommenders.recommendations.markDismissed", "httpMethod": "POST", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1beta1/{+name}:markDismissed", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "parameters": { "name": { "type": "string", "location": "path", "description": "Required. Name of the recommendation.", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "required": true } }, "parameterOrder": [ "name" ] }, "markFailed": { "httpMethod": "POST", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "parameterOrder": [ "name" ], "path": "v1beta1/{+name}:markFailed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.organizations.locations.recommenders.recommendations.markFailed", "parameters": { "name": { "location": "path", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "type": "string", "description": "Required. Name of the recommendation." } }, "description": "Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest" }, "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed" }, "markSucceeded": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest" }, "path": "v1beta1/{+name}:markSucceeded", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "id": "recommender.organizations.locations.recommenders.recommendations.markSucceeded", "description": "Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", "parameters": { "name": { "required": true, "description": "Required. Name of the recommendation.", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "type": "string" } }, "parameterOrder": [ "name" ], "httpMethod": "POST" }, "markClaimed": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "POST", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "path": "v1beta1/{+name}:markClaimed", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest" }, "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "type": "string", "required": true, "description": "Required. Name of the recommendation." } }, "id": "recommender.organizations.locations.recommenders.recommendations.markClaimed", "description": "Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "parameterOrder": [ "name" ] } } } }, "methods": { "updateConfig": { "parameterOrder": [ "name" ], "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "description": "Updates a Recommender Config. This will create a new revision of the config.", "httpMethod": "PATCH", "path": "v1beta1/{+name}", "id": "recommender.organizations.locations.recommenders.updateConfig", "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, "request": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, "parameters": { "updateMask": { "type": "string", "format": "google-fieldmask", "description": "The list of fields to be updated.", "location": "query" }, "validateOnly": { "type": "boolean", "location": "query", "description": "If true, validate the request and preview the change, but do not actually update it." }, "name": { "location": "path", "type": "string", "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "getConfig": { "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "id": "recommender.organizations.locations.recommenders.getConfig", "parameterOrder": [ "name" ], "path": "v1beta1/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", "httpMethod": "GET", "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "location": "path", "type": "string", "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", "required": true } }, "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" } } } }, "insightTypes": { "methods": { "updateConfig": { "httpMethod": "PATCH", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameterOrder": [ "name" ], "id": "recommender.organizations.locations.insightTypes.updateConfig", "request": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "path": "v1beta1/{+name}", "description": "Updates an InsightTypeConfig change. This will create a new revision of the config.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "parameters": { "updateMask": { "location": "query", "description": "The list of fields to be updated.", "type": "string", "format": "google-fieldmask" }, "validateOnly": { "type": "boolean", "location": "query", "description": "If true, validate the request and preview the change, but do not actually update it." }, "name": { "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "type": "string", "required": true, "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$" } } }, "getConfig": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameterOrder": [ "name" ], "id": "recommender.organizations.locations.insightTypes.getConfig", "path": "v1beta1/{+name}", "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", "httpMethod": "GET", "parameters": { "name": { "location": "path", "type": "string", "required": true, "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$" } }, "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" } } }, "resources": { "insights": { "methods": { "markAccepted": { "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "parameters": { "name": { "location": "path", "type": "string", "description": "Required. Name of the insight.", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true } }, "path": "v1beta1/{+name}:markAccepted", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest" }, "id": "recommender.organizations.locations.insightTypes.insights.markAccepted", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "httpMethod": "POST" }, "get": { "httpMethod": "GET", "id": "recommender.organizations.locations.insightTypes.insights.get", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}", "parameterOrder": [ "name" ], "path": "v1beta1/{+name}", "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "parameters": { "name": { "location": "path", "type": "string", "description": "Required. Name of the insight.", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true } }, "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type." }, "list": { "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", "id": "recommender.organizations.locations.insightTypes.insights.list", "parameterOrder": [ "parent" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "pageSize": { "type": "integer", "format": "int32", "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "location": "query" }, "filter": { "location": "query", "type": "string", "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)" }, "parent": { "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "required": true, "location": "path", "type": "string" }, "pageToken": { "type": "string", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "location": "query" } }, "path": "v1beta1/{+parent}/insights", "httpMethod": "GET", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListInsightsResponse" }, "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights" } } } } } } } } }, "billingAccounts": { "resources": { "locations": { "resources": { "recommenders": { "methods": { "updateConfig": { "parameterOrder": [ "name" ], "httpMethod": "PATCH", "request": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, "path": "v1beta1/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.billingAccounts.locations.recommenders.updateConfig", "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "parameters": { "name": { "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, "type": "string", "location": "path", "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config" }, "validateOnly": { "description": "If true, validate the request and preview the change, but do not actually update it.", "type": "boolean", "location": "query" }, "updateMask": { "location": "query", "type": "string", "description": "The list of fields to be updated.", "format": "google-fieldmask" } }, "description": "Updates a Recommender Config. This will create a new revision of the config.", "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" } }, "getConfig": { "httpMethod": "GET", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "path": "v1beta1/{+name}", "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, "id": "recommender.billingAccounts.locations.recommenders.getConfig", "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", "parameters": { "name": { "location": "path", "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "type": "string", "required": true } } } }, "resources": { "recommendations": { "methods": { "markDismissed": { "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest" }, "description": "Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "parameters": { "name": { "description": "Required. Name of the recommendation.", "required": true, "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "type": "string" } }, "httpMethod": "POST", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed", "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "path": "v1beta1/{+name}:markDismissed" }, "get": { "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "httpMethod": "GET", "parameterOrder": [ "name" ], "id": "recommender.billingAccounts.locations.recommenders.recommendations.get", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "required": true, "type": "string", "location": "path", "description": "Required. Name of the recommendation.", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}", "path": "v1beta1/{+name}" }, "markFailed": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest" }, "path": "v1beta1/{+name}:markFailed", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "description": "Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", "parameterOrder": [ "name" ], "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed", "parameters": { "name": { "type": "string", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "required": true, "description": "Required. Name of the recommendation." } }, "id": "recommender.billingAccounts.locations.recommenders.recommendations.markFailed", "httpMethod": "POST" }, "markSucceeded": { "httpMethod": "POST", "description": "Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "path": "v1beta1/{+name}:markSucceeded", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest" }, "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "parameters": { "name": { "required": true, "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "type": "string", "description": "Required. Name of the recommendation." } }, "id": "recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded" }, "markClaimed": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "parameters": { "name": { "required": true, "description": "Required. Name of the recommendation.", "type": "string", "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "httpMethod": "POST", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest" }, "path": "v1beta1/{+name}:markClaimed", "id": "recommender.billingAccounts.locations.recommenders.recommendations.markClaimed", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "parameterOrder": [ "name" ] }, "list": { "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations", "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "parameters": { "pageSize": { "type": "integer", "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "format": "int32", "location": "query" }, "filter": { "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string", "location": "query" }, "parent": { "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+$", "required": true, "type": "string", "location": "path", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders." }, "pageToken": { "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "location": "query", "type": "string" } }, "path": "v1beta1/{+parent}/recommendations", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.billingAccounts.locations.recommenders.recommendations.list", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListRecommendationsResponse" }, "parameterOrder": [ "parent" ], "httpMethod": "GET" } } } } }, "insightTypes": { "methods": { "getConfig": { "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "GET", "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "path": "v1beta1/{+name}", "parameters": { "name": { "location": "path", "required": true, "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`", "type": "string" } }, "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "id": "recommender.billingAccounts.locations.insightTypes.getConfig" }, "updateConfig": { "path": "v1beta1/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "updateMask": { "description": "The list of fields to be updated.", "type": "string", "location": "query", "format": "google-fieldmask" }, "validateOnly": { "type": "boolean", "location": "query", "description": "If true, validate the request and preview the change, but do not actually update it." }, "name": { "required": true, "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "type": "string", "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$" } }, "request": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "id": "recommender.billingAccounts.locations.insightTypes.updateConfig", "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "parameterOrder": [ "name" ], "httpMethod": "PATCH", "description": "Updates an InsightTypeConfig change. This will create a new revision of the config." } }, "resources": { "insights": { "methods": { "markAccepted": { "id": "recommender.billingAccounts.locations.insightTypes.insights.markAccepted", "path": "v1beta1/{+name}:markAccepted", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest" }, "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "parameters": { "name": { "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true, "location": "path", "description": "Required. Name of the insight.", "type": "string" } }, "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "httpMethod": "POST", "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ] }, "get": { "parameters": { "name": { "type": "string", "required": true, "description": "Required. Name of the insight.", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "location": "path" } }, "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", "path": "v1beta1/{+name}", "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.billingAccounts.locations.insightTypes.insights.get", "httpMethod": "GET", "parameterOrder": [ "name" ] }, "list": { "path": "v1beta1/{+parent}/insights", "parameters": { "pageSize": { "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "type": "integer", "format": "int32", "location": "query" }, "pageToken": { "location": "query", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "type": "string" }, "filter": { "location": "query", "type": "string", "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)" }, "parent": { "required": true, "type": "string", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "location": "path" } }, "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListInsightsResponse" }, "parameterOrder": [ "parent" ], "id": "recommender.billingAccounts.locations.insightTypes.insights.list", "httpMethod": "GET" } } } } } }, "methods": { "list": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.billingAccounts.locations.list", "parameters": { "pageToken": { "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", "location": "query", "type": "string" }, "filter": { "type": "string", "location": "query", "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160)." }, "name": { "pattern": "^billingAccounts/[^/]+$", "type": "string", "description": "The resource that owns the locations collection, if applicable.", "location": "path", "required": true }, "pageSize": { "type": "integer", "description": "The maximum number of results to return. If not set, the service selects a default.", "location": "query", "format": "int32" } }, "httpMethod": "GET", "response": { "$ref": "GoogleCloudLocationListLocationsResponse" }, "path": "v1beta1/{+name}/locations", "description": "Lists locations with recommendations or insights.", "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations", "parameterOrder": [ "name" ] } } } } }, "projects": { "resources": { "locations": { "resources": { "recommenders": { "resources": { "recommendations": { "methods": { "markClaimed": { "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest" }, "id": "recommender.projects.locations.recommenders.recommendations.markClaimed", "parameters": { "name": { "description": "Required. Name of the recommendation.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "required": true, "type": "string" } }, "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "description": "Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "parameterOrder": [ "name" ], "path": "v1beta1/{+name}:markClaimed", "httpMethod": "POST" }, "markSucceeded": { "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "parameterOrder": [ "name" ], "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "POST", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "path": "v1beta1/{+name}:markSucceeded", "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "description": "Required. Name of the recommendation.", "location": "path", "required": true, "type": "string" } }, "id": "recommender.projects.locations.recommenders.recommendations.markSucceeded", "description": "Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender." }, "markFailed": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "POST", "parameterOrder": [ "name" ], "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "description": "Required. Name of the recommendation.", "type": "string", "location": "path", "required": true } }, "id": "recommender.projects.locations.recommenders.recommendations.markFailed", "path": "v1beta1/{+name}:markFailed", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest" }, "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed", "description": "Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender." }, "list": { "path": "v1beta1/{+parent}/recommendations", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListRecommendationsResponse" }, "httpMethod": "GET", "parameterOrder": [ "parent" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.projects.locations.recommenders.recommendations.list", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations", "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "parameters": { "pageSize": { "location": "query", "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "type": "integer", "format": "int32" }, "filter": { "location": "query", "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string" }, "parent": { "required": true, "type": "string", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+$", "location": "path" }, "pageToken": { "location": "query", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "type": "string" } } }, "get": { "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "parameterOrder": [ "name" ], "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "description": "Required. Name of the recommendation.", "required": true, "type": "string" } }, "path": "v1beta1/{+name}", "httpMethod": "GET", "id": "recommender.projects.locations.recommenders.recommendations.get" }, "markDismissed": { "id": "recommender.projects.locations.recommenders.recommendations.markDismissed", "path": "v1beta1/{+name}:markDismissed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "parameters": { "name": { "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "description": "Required. Name of the recommendation." } }, "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "httpMethod": "POST", "description": "Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", "response": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest" } } } } }, "methods": { "getConfig": { "parameterOrder": [ "name" ], "id": "recommender.projects.locations.recommenders.getConfig", "httpMethod": "GET", "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", "location": "path", "type": "string", "required": true } }, "path": "v1beta1/{+name}" }, "updateConfig": { "path": "v1beta1/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, "parameters": { "name": { "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, "location": "path", "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config" }, "validateOnly": { "type": "boolean", "location": "query", "description": "If true, validate the request and preview the change, but do not actually update it." }, "updateMask": { "type": "string", "location": "query", "description": "The list of fields to be updated.", "format": "google-fieldmask" } }, "request": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "parameterOrder": [ "name" ], "httpMethod": "PATCH", "description": "Updates a Recommender Config. This will create a new revision of the config.", "id": "recommender.projects.locations.recommenders.updateConfig" } } }, "insightTypes": { "resources": { "insights": { "methods": { "list": { "id": "recommender.projects.locations.insightTypes.insights.list", "parameterOrder": [ "parent" ], "parameters": { "pageSize": { "type": "integer", "location": "query", "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.", "format": "int32" }, "pageToken": { "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "type": "string", "location": "query" }, "parent": { "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "location": "path", "type": "string" }, "filter": { "location": "query", "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string" } }, "path": "v1beta1/{+parent}/insights", "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "GET", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights", "response": { "$ref": "GoogleCloudRecommenderV1beta1ListInsightsResponse" } }, "markAccepted": { "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "httpMethod": "POST", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "path": "v1beta1/{+name}:markAccepted", "request": { "$ref": "GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest" }, "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "id": "recommender.projects.locations.insightTypes.insights.markAccepted", "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "type": "string", "location": "path", "description": "Required. Name of the insight.", "required": true } } }, "get": { "response": { "$ref": "GoogleCloudRecommenderV1beta1Insight" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "description": "Required. Name of the insight.", "location": "path", "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true } }, "path": "v1beta1/{+name}", "parameterOrder": [ "name" ], "id": "recommender.projects.locations.insightTypes.insights.get", "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", "httpMethod": "GET", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}" } } } }, "methods": { "getConfig": { "parameterOrder": [ "name" ], "id": "recommender.projects.locations.insightTypes.getConfig", "path": "v1beta1/{+name}", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameters": { "name": { "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`", "type": "string", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true } }, "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "httpMethod": "GET", "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "updateConfig": { "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "parameterOrder": [ "name" ], "request": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, "path": "v1beta1/{+name}", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameters": { "updateMask": { "location": "query", "type": "string", "format": "google-fieldmask", "description": "The list of fields to be updated." }, "name": { "required": true, "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$" }, "validateOnly": { "type": "boolean", "description": "If true, validate the request and preview the change, but do not actually update it.", "location": "query" } }, "httpMethod": "PATCH", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.projects.locations.insightTypes.updateConfig", "description": "Updates an InsightTypeConfig change. This will create a new revision of the config." } } } }, "methods": { "list": { "parameterOrder": [ "name" ], "flatPath": "v1beta1/projects/{projectsId}/locations", "id": "recommender.projects.locations.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "pageSize": { "format": "int32", "type": "integer", "location": "query", "description": "The maximum number of results to return. If not set, the service selects a default." }, "name": { "required": true, "description": "The resource that owns the locations collection, if applicable.", "location": "path", "type": "string", "pattern": "^projects/[^/]+$" }, "pageToken": { "location": "query", "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", "type": "string" }, "filter": { "type": "string", "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query" } }, "httpMethod": "GET", "path": "v1beta1/{+name}/locations", "description": "Lists locations with recommendations or insights.", "response": { "$ref": "GoogleCloudLocationListLocationsResponse" } } } } } } }, "version": "v1beta1", "mtlsRootUrl": "https://recommender.mtls.googleapis.com/", "kind": "discovery#restDescription", "title": "Recommender API", "servicePath": "", "protocol": "rest", "version_module": true, "name": "recommender", "rootUrl": "https://recommender.googleapis.com/", "revision": "20240428", "baseUrl": "https://recommender.googleapis.com/", "parameters": { "fields": { "location": "query", "description": "Selector specifying which fields to include in a partial response.", "type": "string" }, "access_token": { "type": "string", "location": "query", "description": "OAuth access token." }, "upload_protocol": { "type": "string", "location": "query", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, "key": { "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", "type": "string", "location": "query" }, "prettyPrint": { "type": "boolean", "description": "Returns response with indentations and line breaks.", "location": "query", "default": "true" }, "callback": { "description": "JSONP", "type": "string", "location": "query" }, "quotaUser": { "location": "query", "type": "string", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." }, "$.xgafv": { "enumDescriptions": [ "v1 error format", "v2 error format" ], "description": "V1 error format.", "enum": [ "1", "2" ], "location": "query", "type": "string" }, "uploadType": { "location": "query", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "type": "string" }, "alt": { "enumDescriptions": [ "Responses with Content-Type of application/json", "Media download with context-dependent Content-Type", "Responses with Content-Type of application/x-protobuf" ], "location": "query", "description": "Data format for response.", "type": "string", "default": "json", "enum": [ "json", "media", "proto" ] }, "oauth_token": { "location": "query", "description": "OAuth 2.0 token for the current user.", "type": "string" } }, "id": "recommender:v1beta1", "schemas": { "GoogleCloudRecommenderV1beta1ValueMatcher": { "description": "Contains various matching options for values for a GCP resource field.", "type": "object", "id": "GoogleCloudRecommenderV1beta1ValueMatcher", "properties": { "matchesPattern": { "description": "To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch", "type": "string" } } }, "GoogleCloudLocationLocation": { "id": "GoogleCloudLocationLocation", "properties": { "locationId": { "description": "The canonical id for this location. For example: `\"us-east1\"`.", "type": "string" }, "name": { "type": "string", "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`" }, "metadata": { "description": "Service-specific metadata. For example the available capacity at the given location.", "type": "object", "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", "type": "any" } }, "labels": { "type": "object", "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", "additionalProperties": { "type": "string" } }, "displayName": { "type": "string", "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\"." } }, "type": "object", "description": "A resource that represents a Google Cloud location." }, "GoogleCloudRecommenderV1beta1SustainabilityProjection": { "type": "object", "id": "GoogleCloudRecommenderV1beta1SustainabilityProjection", "properties": { "kgCO2e": { "format": "double", "description": "Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).", "type": "number" }, "duration": { "type": "string", "description": "Duration for which this sustanability applies.", "format": "google-duration" } }, "description": "Contains metadata about how much sustainability a recommendation can save or incur." }, "GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest": { "id": "GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest", "description": "Request for the `MarkRecommendationDismissed` Method.", "type": "object", "properties": { "etag": { "type": "string", "description": "Fingerprint of the Recommendation. Provides optimistic locking." } } }, "GoogleCloudRecommenderV1beta1OperationGroup": { "properties": { "operations": { "type": "array", "items": { "$ref": "GoogleCloudRecommenderV1beta1Operation" }, "description": "List of operations across one or more resources that belong to this group. Loosely based on RFC6902 and should be performed in the order they appear." } }, "description": "Group of operations that need to be performed atomically.", "type": "object", "id": "GoogleCloudRecommenderV1beta1OperationGroup" }, "GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest": { "id": "GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest", "properties": { "stateMetadata": { "description": "Optional. State properties user wish to include with this state. Full replace of the current state_metadata.", "type": "object", "additionalProperties": { "type": "string" } }, "etag": { "description": "Required. Fingerprint of the Insight. Provides optimistic locking.", "type": "string" } }, "description": "Request for the `MarkInsightAccepted` method.", "type": "object" }, "GoogleCloudLocationListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "properties": { "nextPageToken": { "description": "The standard List next-page token.", "type": "string" }, "locations": { "type": "array", "items": { "$ref": "GoogleCloudLocationLocation" }, "description": "A list of locations that matches the specified filter in the request." } }, "id": "GoogleCloudLocationListLocationsResponse", "type": "object" }, "GoogleCloudRecommenderV1beta1ReliabilityProjection": { "properties": { "risks": { "type": "array", "items": { "type": "string", "enum": [ "RISK_TYPE_UNSPECIFIED", "SERVICE_DISRUPTION", "DATA_LOSS", "ACCESS_DENY" ], "enumDescriptions": [ "Default unspecified risk. Don't use directly.", "Potential service downtime.", "Potential data loss.", "Potential access denial. The service is still up but some or all clients can't access it." ] }, "description": "Reliability risks mitigated by this recommendation." }, "details": { "additionalProperties": { "description": "Properties of the object.", "type": "any" }, "description": "Per-recommender projection.", "type": "object" } }, "description": "Contains information on the impact of a reliability recommendation.", "id": "GoogleCloudRecommenderV1beta1ReliabilityProjection", "type": "object" }, "GoogleCloudRecommenderV1beta1RecommendationContent": { "type": "object", "id": "GoogleCloudRecommenderV1beta1RecommendationContent", "properties": { "overview": { "description": "Condensed overview information about the recommendation.", "additionalProperties": { "type": "any", "description": "Properties of the object." }, "type": "object" }, "operationGroups": { "type": "array", "items": { "$ref": "GoogleCloudRecommenderV1beta1OperationGroup" }, "description": "Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order." } }, "description": "Contains what resources are changing and how they are changing." }, "GoogleCloudRecommenderV1beta1InsightTypeConfig": { "properties": { "displayName": { "description": "A user-settable field to provide a human-readable name to be used in user interfaces.", "type": "string" }, "etag": { "description": "Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating.", "type": "string" }, "updateTime": { "type": "string", "format": "google-datetime", "description": "Last time when the config was updated." }, "revisionId": { "type": "string", "readOnly": true, "description": "Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string." }, "name": { "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "type": "string" }, "insightTypeGenerationConfig": { "description": "InsightTypeGenerationConfig which configures the generation of insights for this insight type.", "$ref": "GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig" }, "annotations": { "description": "Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.", "additionalProperties": { "type": "string" }, "type": "object" } }, "id": "GoogleCloudRecommenderV1beta1InsightTypeConfig", "description": "Configuration for an InsightType.", "type": "object" }, "GoogleCloudRecommenderV1beta1RecommenderGenerationConfig": { "description": "A Configuration to customize the generation of recommendations. Eg, customizing the lookback period considered when generating a recommendation.", "properties": { "params": { "additionalProperties": { "type": "any", "description": "Properties of the object." }, "description": "Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.", "type": "object" } }, "type": "object", "id": "GoogleCloudRecommenderV1beta1RecommenderGenerationConfig" }, "GoogleCloudRecommenderV1beta1RecommendationStateInfo": { "description": "Information for state. Contains state and metadata.", "id": "GoogleCloudRecommenderV1beta1RecommendationStateInfo", "properties": { "state": { "enumDescriptions": [ "Default state. Don't use directly.", "Recommendation is active and can be applied. Recommendations content can be updated by Google. ACTIVE recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.", "Recommendation is in claimed state. Recommendations content is immutable and cannot be updated by Google. CLAIMED recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.", "Recommendation is in succeeded state. Recommendations content is immutable and cannot be updated by Google. SUCCEEDED recommendations can be marked as SUCCEEDED, or FAILED.", "Recommendation is in failed state. Recommendations content is immutable and cannot be updated by Google. FAILED recommendations can be marked as SUCCEEDED, or FAILED.", "Recommendation is in dismissed state. Recommendation content can be updated by Google. DISMISSED recommendations can be marked as ACTIVE." ], "description": "The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.", "enum": [ "STATE_UNSPECIFIED", "ACTIVE", "CLAIMED", "SUCCEEDED", "FAILED", "DISMISSED" ], "type": "string" }, "stateMetadata": { "description": "A map of metadata for the state, provided by user or automations systems.", "additionalProperties": { "type": "string" }, "type": "object" } }, "type": "object" }, "GoogleCloudRecommenderV1beta1SecurityProjection": { "properties": { "details": { "description": "This field can be used by the recommender to define details specific to security impact.", "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object." } } }, "description": "Contains various ways of describing the impact on Security.", "id": "GoogleCloudRecommenderV1beta1SecurityProjection", "type": "object" }, "GoogleCloudRecommenderV1beta1ListRecommendersResponse": { "id": "GoogleCloudRecommenderV1beta1ListRecommendersResponse", "description": "Response for the `ListRecommender` method. Next ID: 3", "properties": { "nextPageToken": { "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" }, "recommenders": { "items": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderType" }, "type": "array", "description": "The set of recommenders available" } }, "type": "object" }, "GoogleCloudRecommenderV1beta1ListInsightsResponse": { "type": "object", "id": "GoogleCloudRecommenderV1beta1ListInsightsResponse", "properties": { "nextPageToken": { "type": "string", "description": "A token that can be used to request the next page of results. This field is empty if there are no additional results." }, "insights": { "type": "array", "description": "The set of insights for the `parent` resource.", "items": { "$ref": "GoogleCloudRecommenderV1beta1Insight" } } }, "description": "Response to the `ListInsights` method." }, "GoogleCloudRecommenderV1beta1RecommendationInsightReference": { "properties": { "insight": { "type": "string", "description": "Insight resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]" } }, "id": "GoogleCloudRecommenderV1beta1RecommendationInsightReference", "description": "Reference to an associated insight.", "type": "object" }, "GoogleCloudRecommenderV1beta1InsightType": { "properties": { "name": { "type": "string", "description": "The insight_type's name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight" } }, "id": "GoogleCloudRecommenderV1beta1InsightType", "type": "object", "description": "The type of insight." }, "GoogleCloudRecommenderV1beta1RecommenderType": { "id": "GoogleCloudRecommenderV1beta1RecommenderType", "type": "object", "properties": { "name": { "description": "The recommender's name in format RecommenderTypes/{recommender_type} eg: recommenderTypes/google.iam.policy.Recommender", "type": "string" } }, "description": "The type of a recommender." }, "GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig": { "properties": { "params": { "description": "Parameters for this InsightTypeGenerationConfig. These configs can be used by or are applied to all subtypes.", "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object." } } }, "type": "object", "id": "GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig", "description": "A configuration to customize the generation of insights. Eg, customizing the lookback period considered when generating a insight." }, "GoogleCloudRecommenderV1beta1InsightStateInfo": { "type": "object", "properties": { "state": { "enumDescriptions": [ "Unspecified state.", "Insight is active. Content for ACTIVE insights can be updated by Google. ACTIVE insights can be marked DISMISSED OR ACCEPTED.", "Some action has been taken based on this insight. Insights become accepted when a recommendation derived from the insight has been marked CLAIMED, SUCCEEDED, or FAILED. ACTIVE insights can also be marked ACCEPTED explicitly. Content for ACCEPTED insights is immutable. ACCEPTED insights can only be marked ACCEPTED (which may update state metadata).", "Insight is dismissed. Content for DISMISSED insights can be updated by Google. DISMISSED insights can be marked as ACTIVE." ], "type": "string", "description": "Insight state.", "enum": [ "STATE_UNSPECIFIED", "ACTIVE", "ACCEPTED", "DISMISSED" ] }, "stateMetadata": { "type": "object", "description": "A map of metadata for the state, provided by user or automations systems.", "additionalProperties": { "type": "string" } } }, "description": "Information related to insight state.", "id": "GoogleCloudRecommenderV1beta1InsightStateInfo" }, "GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest": { "id": "GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest", "properties": { "stateMetadata": { "type": "object", "additionalProperties": { "type": "string" }, "description": "State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`." }, "etag": { "type": "string", "description": "Required. Fingerprint of the Recommendation. Provides optimistic locking." } }, "description": "Request for the `MarkRecommendationFailed` Method.", "type": "object" }, "GoogleCloudRecommenderV1beta1Operation": { "type": "object", "description": "Contains an operation for a resource loosely based on the JSON-PATCH format with support for: * Custom filters for describing partial array patch. * Extended path values for describing nested arrays. * Custom fields for describing the resource for which the operation is being described. * Allows extension to custom operations not natively supported by RFC6902. See https://tools.ietf.org/html/rfc6902 for details on the original RFC.", "properties": { "resourceType": { "type": "string", "description": "Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance" }, "path": { "type": "string", "description": "Path to the target field being operated on. If the operation is at the resource level, then path should be \"/\". This field is always populated." }, "pathFilters": { "additionalProperties": { "type": "any" }, "type": "object", "description": "Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { \"/versions/*/name\" : \"it-123\" \"/versions/*/targetSize/percent\": 20 } ``` * Example: ``` { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/condition\" : null } ``` * Example: ``` { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/members/*\" : [\"x@example.com\", \"y@example.com\"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed." }, "sourcePath": { "description": "Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.", "type": "string" }, "sourceResource": { "description": "Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = \"/\", from = \"/\", source_resource = and resource_name = . This field is empty for all other values of `action`.", "type": "string" }, "valueMatcher": { "description": "Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.", "$ref": "GoogleCloudRecommenderV1beta1ValueMatcher" }, "action": { "type": "string", "description": "Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated." }, "resource": { "description": "Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.", "type": "string" }, "pathValueMatchers": { "additionalProperties": { "$ref": "GoogleCloudRecommenderV1beta1ValueMatcher" }, "type": "object", "description": "Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed." }, "value": { "type": "any", "description": "Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed." } }, "id": "GoogleCloudRecommenderV1beta1Operation" }, "GoogleCloudRecommenderV1beta1ListInsightTypesResponse": { "id": "GoogleCloudRecommenderV1beta1ListInsightTypesResponse", "description": "Response for the `ListInsightTypes` method. Next ID: 3", "type": "object", "properties": { "nextPageToken": { "type": "string", "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." }, "insightTypes": { "type": "array", "items": { "$ref": "GoogleCloudRecommenderV1beta1InsightType" }, "description": "The set of recommenders available" } } }, "GoogleCloudRecommenderV1beta1Recommendation": { "type": "object", "description": "A recommendation along with a suggested action. E.g., a rightsizing recommendation for an underutilized VM, IAM role recommendations, etc", "id": "GoogleCloudRecommenderV1beta1Recommendation", "properties": { "description": { "description": "Free-form human readable summary in English. The maximum length is 500 characters.", "type": "string" }, "priority": { "enumDescriptions": [ "Recommendation has unspecified priority.", "Recommendation has P4 priority (lowest priority).", "Recommendation has P3 priority (second lowest priority).", "Recommendation has P2 priority (second highest priority).", "Recommendation has P1 priority (highest priority)." ], "enum": [ "PRIORITY_UNSPECIFIED", "P4", "P3", "P2", "P1" ], "description": "Recommendation's priority.", "type": "string" }, "primaryImpact": { "description": "The primary impact that this recommendation can have while trying to optimize for one category.", "$ref": "GoogleCloudRecommenderV1beta1Impact" }, "recommenderSubtype": { "description": "Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to `content` or `primary_impact.category` are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For recommender = \"google.iam.policy.Recommender\", recommender_subtype can be one of \"REMOVE_ROLE\"/\"REPLACE_ROLE\"", "type": "string" }, "additionalImpact": { "type": "array", "description": "Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.", "items": { "$ref": "GoogleCloudRecommenderV1beta1Impact" } }, "etag": { "description": "Fingerprint of the Recommendation. Provides optimistic locking when updating states.", "type": "string" }, "content": { "$ref": "GoogleCloudRecommenderV1beta1RecommendationContent", "description": "Content of the recommendation describing recommended changes to resources." }, "targetResources": { "description": "Fully qualified resource names that this recommendation is targeting.", "type": "array", "items": { "type": "string" } }, "xorGroupId": { "description": "Corresponds to a mutually exclusive group ID within a recommender. A non-empty ID indicates that the recommendation belongs to a mutually exclusive group. This means that only one recommendation within the group is suggested to be applied.", "type": "string" }, "stateInfo": { "$ref": "GoogleCloudRecommenderV1beta1RecommendationStateInfo", "description": "Information for state. Contains state and metadata." }, "associatedInsights": { "type": "array", "description": "Insights that led to this recommendation.", "items": { "$ref": "GoogleCloudRecommenderV1beta1RecommendationInsightReference" } }, "lastRefreshTime": { "format": "google-datetime", "type": "string", "description": "Last time this recommendation was refreshed by the system that created it in the first place." }, "name": { "description": "Identifier. Name of recommendation.", "type": "string" } } }, "GoogleTypeMoney": { "properties": { "units": { "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", "type": "string", "format": "int64" }, "nanos": { "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", "type": "integer", "format": "int32" }, "currencyCode": { "type": "string", "description": "The three-letter currency code defined in ISO 4217." } }, "description": "Represents an amount of money with its currency type.", "id": "GoogleTypeMoney", "type": "object" }, "GoogleCloudRecommenderV1beta1Impact": { "description": "Contains the impact a recommendation can have for a given category.", "type": "object", "properties": { "costProjection": { "description": "Use with CategoryType.COST", "$ref": "GoogleCloudRecommenderV1beta1CostProjection" }, "reliabilityProjection": { "description": "Use with CategoryType.RELIABILITY", "$ref": "GoogleCloudRecommenderV1beta1ReliabilityProjection" }, "sustainabilityProjection": { "$ref": "GoogleCloudRecommenderV1beta1SustainabilityProjection", "description": "Use with CategoryType.SUSTAINABILITY" }, "category": { "enum": [ "CATEGORY_UNSPECIFIED", "COST", "SECURITY", "PERFORMANCE", "MANAGEABILITY", "SUSTAINABILITY", "RELIABILITY" ], "enumDescriptions": [ "Default unspecified category. Don't use directly.", "Indicates a potential increase or decrease in cost.", "Indicates a potential increase or decrease in security.", "Indicates a potential increase or decrease in performance.", "Indicates a potential increase or decrease in manageability.", "Indicates a potential increase or decrease in sustainability.", "Indicates a potential increase or decrease in reliability." ], "type": "string", "description": "Category that is being targeted." }, "securityProjection": { "description": "Use with CategoryType.SECURITY", "$ref": "GoogleCloudRecommenderV1beta1SecurityProjection" } }, "id": "GoogleCloudRecommenderV1beta1Impact" }, "GoogleCloudRecommenderV1beta1RecommenderConfig": { "type": "object", "description": "Configuration for a Recommender.", "id": "GoogleCloudRecommenderV1beta1RecommenderConfig", "properties": { "updateTime": { "description": "Last time when the config was updated.", "type": "string", "format": "google-datetime" }, "annotations": { "description": "Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.", "type": "object", "additionalProperties": { "type": "string" } }, "name": { "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "type": "string" }, "etag": { "type": "string", "description": "Fingerprint of the RecommenderConfig. Provides optimistic locking when updating." }, "revisionId": { "readOnly": true, "type": "string", "description": "Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string." }, "recommenderGenerationConfig": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderGenerationConfig", "description": "RecommenderGenerationConfig which configures the Generation of recommendations for this recommender." }, "displayName": { "description": "A user-settable field to provide a human-readable name to be used in user interfaces.", "type": "string" } } }, "GoogleCloudRecommenderV1beta1CostProjection": { "id": "GoogleCloudRecommenderV1beta1CostProjection", "properties": { "cost": { "$ref": "GoogleTypeMoney", "description": "An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money documentation for positive/negative units. A user's permissions may affect whether the cost is computed using list prices or custom contract prices." }, "duration": { "type": "string", "format": "google-duration", "description": "Duration for which this cost applies." }, "costInLocalCurrency": { "description": "The approximate cost savings in the billing account's local currency.", "$ref": "GoogleTypeMoney" }, "pricingType": { "description": "How the cost is calculated.", "enum": [ "PRICING_TYPE_UNSPECIFIED", "LIST_PRICE", "CUSTOM_PRICE" ], "enumDescriptions": [ "Default pricing type.", "The price listed by GCP for all customers.", "A price derived from past usage and billing." ], "type": "string" } }, "description": "Contains metadata about how much money a recommendation can save or incur.", "type": "object" }, "GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest": { "description": "Request for the `MarkRecommendationClaimed` Method.", "id": "GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest", "type": "object", "properties": { "stateMetadata": { "type": "object", "additionalProperties": { "type": "string" }, "description": "State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`." }, "etag": { "description": "Required. Fingerprint of the Recommendation. Provides optimistic locking.", "type": "string" } } }, "GoogleCloudRecommenderV1beta1Insight": { "id": "GoogleCloudRecommenderV1beta1Insight", "description": "An insight along with the information used to derive the insight. The insight may have associated recommendations as well.", "type": "object", "properties": { "content": { "additionalProperties": { "description": "Properties of the object.", "type": "any" }, "type": "object", "description": "A struct of custom fields to explain the insight. Example: \"grantedPermissionsCount\": \"1000\"" }, "etag": { "description": "Fingerprint of the Insight. Provides optimistic locking when updating states.", "type": "string" }, "description": { "type": "string", "description": "Free-form human readable summary in English. The maximum length is 500 characters." }, "lastRefreshTime": { "description": "Timestamp of the latest data used to generate the insight.", "format": "google-datetime", "type": "string" }, "severity": { "description": "Insight's severity.", "enum": [ "SEVERITY_UNSPECIFIED", "LOW", "MEDIUM", "HIGH", "CRITICAL" ], "type": "string", "enumDescriptions": [ "Insight has unspecified severity.", "Insight has low severity.", "Insight has medium severity.", "Insight has high severity.", "Insight has critical severity." ] }, "category": { "type": "string", "enumDescriptions": [ "Unspecified category.", "The insight is related to cost.", "The insight is related to security.", "The insight is related to performance.", "This insight is related to manageability.", "The insight is related to sustainability.", "The insight is related to reliability." ], "enum": [ "CATEGORY_UNSPECIFIED", "COST", "SECURITY", "PERFORMANCE", "MANAGEABILITY", "SUSTAINABILITY", "RELIABILITY" ], "description": "Category being targeted by the insight." }, "targetResources": { "type": "array", "items": { "type": "string" }, "description": "Fully qualified resource names that this insight is targeting." }, "name": { "type": "string", "description": "Identifier. Name of the insight." }, "stateInfo": { "$ref": "GoogleCloudRecommenderV1beta1InsightStateInfo", "description": "Information state and metadata." }, "associatedRecommendations": { "type": "array", "description": "Recommendations derived from this insight.", "items": { "$ref": "GoogleCloudRecommenderV1beta1InsightRecommendationReference" } }, "insightSubtype": { "type": "string", "description": "Insight subtype. Insight content schema will be stable for a given subtype." }, "observationPeriod": { "type": "string", "format": "google-duration", "description": "Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period)." } } }, "GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest": { "type": "object", "properties": { "stateMetadata": { "type": "object", "additionalProperties": { "type": "string" }, "description": "State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`." }, "etag": { "description": "Required. Fingerprint of the Recommendation. Provides optimistic locking.", "type": "string" } }, "id": "GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest", "description": "Request for the `MarkRecommendationSucceeded` Method." }, "GoogleCloudRecommenderV1beta1InsightRecommendationReference": { "id": "GoogleCloudRecommenderV1beta1InsightRecommendationReference", "properties": { "recommendation": { "description": "Recommendation resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]", "type": "string" } }, "type": "object", "description": "Reference to an associated recommendation." }, "GoogleCloudRecommenderV1beta1ListRecommendationsResponse": { "id": "GoogleCloudRecommenderV1beta1ListRecommendationsResponse", "type": "object", "properties": { "nextPageToken": { "description": "A token that can be used to request the next page of results. This field is empty if there are no additional results.", "type": "string" }, "recommendations": { "description": "The set of recommendations for the `parent` resource.", "items": { "$ref": "GoogleCloudRecommenderV1beta1Recommendation" }, "type": "array" } }, "description": "Response to the `ListRecommendations` method." } }, "basePath": "" }