Skip to content

Commit

Permalink
feat(recommender): update the API
Browse files Browse the repository at this point in the history
#### recommender:v1beta1

The following keys were added:
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- schemas.GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest.description
- schemas.GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest.id
- schemas.GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest.properties.etag.description
- schemas.GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest.properties.etag.type
- schemas.GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest.type

#### recommender:v1

The following keys were added:
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.billingAccounts.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.folders.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.organizations.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.description
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.flatPath
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.httpMethod
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.id
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameterOrder
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.description
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.location
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.pattern
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.required
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.parameters.name.type
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.path
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.request.$ref
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.response.$ref
- resources.projects.resources.locations.resources.recommenders.resources.recommendations.methods.markDismissed.scopes
- schemas.GoogleCloudRecommenderV1MarkRecommendationDismissedRequest.description
- schemas.GoogleCloudRecommenderV1MarkRecommendationDismissedRequest.id
- schemas.GoogleCloudRecommenderV1MarkRecommendationDismissedRequest.properties.etag.description
- schemas.GoogleCloudRecommenderV1MarkRecommendationDismissedRequest.properties.etag.type
- schemas.GoogleCloudRecommenderV1MarkRecommendationDismissedRequest.type
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent a42a0c8 commit 88f10a5
Show file tree
Hide file tree
Showing 4 changed files with 1,920 additions and 272 deletions.
125 changes: 124 additions & 1 deletion discovery/recommender-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed",
"httpMethod": "POST",
"id": "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Name of the recommendation.",
"location": "path",
"pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:markDismissed",
"request": {
"$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest"
},
"response": {
"$ref": "GoogleCloudRecommenderV1Recommendation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed",
Expand Down Expand Up @@ -709,6 +737,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed",
"httpMethod": "POST",
"id": "recommender.folders.locations.recommenders.recommendations.markDismissed",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Name of the recommendation.",
"location": "path",
"pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:markDismissed",
"request": {
"$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest"
},
"response": {
"$ref": "GoogleCloudRecommenderV1Recommendation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed",
Expand Down Expand Up @@ -1109,6 +1165,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed",
"httpMethod": "POST",
"id": "recommender.organizations.locations.recommenders.recommendations.markDismissed",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Name of the recommendation.",
"location": "path",
"pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:markDismissed",
"request": {
"$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest"
},
"response": {
"$ref": "GoogleCloudRecommenderV1Recommendation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed",
Expand Down Expand Up @@ -1509,6 +1593,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed",
"httpMethod": "POST",
"id": "recommender.projects.locations.recommenders.recommendations.markDismissed",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Name of the recommendation.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:markDismissed",
"request": {
"$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest"
},
"response": {
"$ref": "GoogleCloudRecommenderV1Recommendation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"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.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed",
Expand Down Expand Up @@ -1574,7 +1686,7 @@
}
}
},
"revision": "20221023",
"revision": "20230122",
"rootUrl": "https://recommender.googleapis.com/",
"schemas": {
"GoogleCloudRecommenderV1CostProjection": {
Expand Down Expand Up @@ -1905,6 +2017,17 @@
},
"type": "object"
},
"GoogleCloudRecommenderV1MarkRecommendationDismissedRequest": {
"description": "Request for the `MarkRecommendationDismissed` Method.",
"id": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest",
"properties": {
"etag": {
"description": "Fingerprint of the Recommendation. Provides optimistic locking.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudRecommenderV1MarkRecommendationFailedRequest": {
"description": "Request for the `MarkRecommendationFailed` Method.",
"id": "GoogleCloudRecommenderV1MarkRecommendationFailedRequest",
Expand Down

0 comments on commit 88f10a5

Please sign in to comment.