From 827d7fcf0b01ee4bb097d0e9b258dacfd903d4de Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 2 May 2024 01:32:42 +0000 Subject: [PATCH] fix(recommender): update the API #### recommender:v1beta1 The following keys were changed: - schemas.GoogleCloudRecommenderV1beta1Insight.properties.name.description - schemas.GoogleCloudRecommenderV1beta1Recommendation.properties.name.description #### recommender:v1 The following keys were changed: - schemas.GoogleCloudRecommenderV1Insight.properties.name.description - schemas.GoogleCloudRecommenderV1Recommendation.properties.name.description --- discovery/recommender-v1.json | 6 ++-- discovery/recommender-v1beta1.json | 6 ++-- src/apis/recommender/v1.ts | 52 +++++++++++++++++++++++++-- src/apis/recommender/v1beta1.ts | 58 ++++++++++++++++++++++++++++-- 4 files changed, 112 insertions(+), 10 deletions(-) diff --git a/discovery/recommender-v1.json b/discovery/recommender-v1.json index e13013e8a8..3286d25e5b 100644 --- a/discovery/recommender-v1.json +++ b/discovery/recommender-v1.json @@ -1686,7 +1686,7 @@ } } }, - "revision": "20240128", + "revision": "20240421", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudRecommenderV1CostProjection": { @@ -1813,7 +1813,7 @@ "type": "string" }, "name": { - "description": "Name of the insight.", + "description": "Identifier. Name of the insight.", "type": "string" }, "observationPeriod": { @@ -2171,7 +2171,7 @@ "type": "string" }, "name": { - "description": "Name of recommendation.", + "description": "Identifier. Name of recommendation.", "type": "string" }, "primaryImpact": { diff --git a/discovery/recommender-v1beta1.json b/discovery/recommender-v1beta1.json index 2ddaef748c..0bda6fee6e 100644 --- a/discovery/recommender-v1beta1.json +++ b/discovery/recommender-v1beta1.json @@ -1920,7 +1920,7 @@ } } }, - "revision": "20240128", + "revision": "20240421", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudLocationListLocationsResponse": { @@ -2113,7 +2113,7 @@ "type": "string" }, "name": { - "description": "Name of the insight.", + "description": "Identifier. Name of the insight.", "type": "string" }, "observationPeriod": { @@ -2518,7 +2518,7 @@ "type": "string" }, "name": { - "description": "Name of recommendation.", + "description": "Identifier. Name of recommendation.", "type": "string" }, "primaryImpact": { diff --git a/src/apis/recommender/v1.ts b/src/apis/recommender/v1.ts index 88502b28cc..abb55e685a 100644 --- a/src/apis/recommender/v1.ts +++ b/src/apis/recommender/v1.ts @@ -205,7 +205,7 @@ export namespace recommender_v1 { */ lastRefreshTime?: string | null; /** - * Name of the insight. + * Identifier. Name of the insight. */ name?: string | null; /** @@ -461,7 +461,7 @@ export namespace recommender_v1 { */ lastRefreshTime?: string | null; /** - * Name of recommendation. + * Identifier. Name of recommendation. */ name?: string | null; /** @@ -737,6 +737,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -831,6 +832,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -960,6 +962,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -1057,6 +1060,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -1154,6 +1158,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -1299,6 +1304,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -1393,6 +1399,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -1522,6 +1529,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -1619,6 +1627,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -1716,6 +1725,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -1813,6 +1823,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -1910,6 +1921,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2007,6 +2019,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2218,6 +2231,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -2315,6 +2329,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -2412,6 +2427,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2564,6 +2580,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -2661,6 +2678,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -2758,6 +2776,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2855,6 +2874,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2952,6 +2972,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -3049,6 +3070,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -3254,6 +3276,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -3348,6 +3371,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -3477,6 +3501,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -3574,6 +3599,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -3671,6 +3697,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -3816,6 +3843,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -3910,6 +3938,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -4039,6 +4068,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -4136,6 +4166,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -4233,6 +4264,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -4330,6 +4362,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -4427,6 +4460,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -4524,6 +4558,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -4728,6 +4763,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -4822,6 +4858,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -4951,6 +4988,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -5048,6 +5086,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -5145,6 +5184,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -5290,6 +5330,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -5384,6 +5425,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -5513,6 +5555,7 @@ export namespace recommender_v1 { { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -5610,6 +5653,7 @@ export namespace recommender_v1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -5707,6 +5751,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -5804,6 +5849,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -5901,6 +5947,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -5998,6 +6045,7 @@ export namespace recommender_v1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), diff --git a/src/apis/recommender/v1beta1.ts b/src/apis/recommender/v1beta1.ts index 6f4c2d5adc..c6b93ed587 100644 --- a/src/apis/recommender/v1beta1.ts +++ b/src/apis/recommender/v1beta1.ts @@ -251,7 +251,7 @@ export namespace recommender_v1beta1 { */ lastRefreshTime?: string | null; /** - * Name of the insight. + * Identifier. Name of the insight. */ name?: string | null; /** @@ -542,7 +542,7 @@ export namespace recommender_v1beta1 { */ lastRefreshTime?: string | null; /** - * Name of recommendation. + * Identifier. Name of recommendation. */ name?: string | null; /** @@ -817,6 +817,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -943,6 +944,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -1037,6 +1039,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -1166,6 +1169,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -1263,6 +1267,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -1360,6 +1365,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -1505,6 +1511,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -1599,6 +1606,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -1728,6 +1736,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -1825,6 +1834,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -1922,6 +1932,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2019,6 +2030,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2116,6 +2128,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2213,6 +2226,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2408,6 +2422,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -2540,6 +2555,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -2637,6 +2653,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -2734,6 +2751,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -2886,6 +2904,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -2983,6 +3002,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -3080,6 +3100,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -3177,6 +3198,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -3274,6 +3296,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -3371,6 +3394,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -3549,6 +3573,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -3681,6 +3706,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -3807,6 +3833,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -3901,6 +3928,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -4030,6 +4058,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -4127,6 +4156,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -4224,6 +4254,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -4369,6 +4400,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -4463,6 +4495,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -4592,6 +4625,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -4689,6 +4723,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -4786,6 +4821,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -4883,6 +4919,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -4980,6 +5017,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -5077,6 +5115,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -5272,6 +5311,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -5397,6 +5437,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -5491,6 +5532,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -5620,6 +5662,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -5717,6 +5760,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -5814,6 +5858,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -5959,6 +6004,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -6053,6 +6099,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', + apiVersion: '', }, options ), @@ -6182,6 +6229,7 @@ export namespace recommender_v1beta1 { { url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', + apiVersion: '', }, options ), @@ -6279,6 +6327,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ), @@ -6376,6 +6425,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -6473,6 +6523,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -6570,6 +6621,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -6667,6 +6719,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'POST', + apiVersion: '', }, options ), @@ -6845,6 +6898,7 @@ export namespace recommender_v1beta1 { '$1' ), method: 'GET', + apiVersion: '', }, options ),