Skip to content

Commit

Permalink
fix(recommender): update the API
Browse files Browse the repository at this point in the history
#### recommender:v1beta1
The following keys were changed:
- schemas.GoogleCloudRecommenderV1beta1Operation.properties.pathFilters.description

#### recommender:v1
The following keys were changed:
- schemas.GoogleCloudRecommenderV1Operation.properties.pathFilters.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 30, 2020
1 parent 47959ea commit 6330721
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 273 deletions.
4 changes: 2 additions & 2 deletions discovery/recommender-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
}
}
},
"revision": "20201016",
"revision": "20201113",
"rootUrl": "https://recommender.googleapis.com/",
"schemas": {
"GoogleCloudRecommenderV1CostProjection": {
Expand Down Expand Up @@ -664,7 +664,7 @@
"additionalProperties": {
"type": "any"
},
"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/admin\" \"/bindings/*/condition\" : null } * Example: { \"/bindings/*/role\": \"roles/admin\" \"/bindings/*/members/*\" : [\"x@google.com\", \"y@google.com\"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed.",
"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.",
"type": "object"
},
"pathValueMatchers": {
Expand Down
4 changes: 2 additions & 2 deletions discovery/recommender-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
}
}
},
"revision": "20201016",
"revision": "20201113",
"rootUrl": "https://recommender.googleapis.com/",
"schemas": {
"GoogleCloudRecommenderV1beta1CostProjection": {
Expand Down Expand Up @@ -664,7 +664,7 @@
"additionalProperties": {
"type": "any"
},
"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/admin\" \"/bindings/*/condition\" : null } * Example: { \"/bindings/*/role\": \"roles/admin\" \"/bindings/*/members/*\" : [\"x@google.com\", \"y@google.com\"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed.",
"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.",
"type": "object"
},
"pathValueMatchers": {
Expand Down
133 changes: 39 additions & 94 deletions src/apis/recommender/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export namespace recommender_v1 {
*/
path?: string | null;
/**
* 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/x/name" : "it-123" "/versions/x/targetSize/percent": 20 \} * Example: { "/bindings/x/role": "roles/admin" "/bindings/x/condition" : null \} * Example: { "/bindings/x/role": "roles/admin" "/bindings/x/members/x" : ["x@google.com", "y@google.com"] \} When both path_filters and path_value_matchers are set, an implicit AND must be performed.
* 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/x/name" : "it-123" "/versions/x/targetSize/percent": 20 \} * Example: { "/bindings/x/role": "roles/owner" "/bindings/x/condition" : null \} * Example: { "/bindings/x/role": "roles/owner" "/bindings/x/members/x" : ["x@example.com", "y@example.com"] \} When both path_filters and path_value_matchers are set, an implicit AND must be performed.
*/
pathFilters?: {[key: string]: any} | null;
/**
Expand Down Expand Up @@ -719,42 +719,28 @@ export namespace recommender_v1 {
params: Params$Resource$Projects$Locations$Insighttypes$Insights$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListInsightsResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListInsightsResponse>
): void;
list(
params: Params$Resource$Projects$Locations$Insighttypes$Insights$List,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListInsightsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListInsightsResponse>
): void;
list(
paramsOrCallback?:
| Params$Resource$Projects$Locations$Insighttypes$Insights$List
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListInsightsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListInsightsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListInsightsResponse>
| BodyResponseCallback<Readable>
):
| void
Expand Down Expand Up @@ -798,9 +784,9 @@ export namespace recommender_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudRecommenderV1ListInsightsResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudRecommenderV1ListInsightsResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -1101,20 +1087,14 @@ export namespace recommender_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
get(
params: Params$Resource$Projects$Locations$Recommenders$Recommendations$Get,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
get(
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
get(
paramsOrCallback?:
Expand Down Expand Up @@ -1241,9 +1221,7 @@ export namespace recommender_v1 {
list(
params?: Params$Resource$Projects$Locations$Recommenders$Recommendations$List,
options?: MethodOptions
): GaxiosPromise<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>;
): GaxiosPromise<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>;
list(
params: Params$Resource$Projects$Locations$Recommenders$Recommendations$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
Expand All @@ -1253,48 +1231,32 @@ export namespace recommender_v1 {
params: Params$Resource$Projects$Locations$Recommenders$Recommendations$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>
): void;
list(
params: Params$Resource$Projects$Locations$Recommenders$Recommendations$List,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>
): void;
list(
paramsOrCallback?:
| Params$Resource$Projects$Locations$Recommenders$Recommendations$List
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>
| GaxiosPromise<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Projects$Locations$Recommenders$Recommendations$List;
Expand Down Expand Up @@ -1329,13 +1291,14 @@ export namespace recommender_v1 {
context: this.context,
};
if (callback) {
createAPIRequest<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>(parameters, callback as BodyResponseCallback<unknown>);
createAPIRequest<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudRecommenderV1ListRecommendationsResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudRecommenderV1ListRecommendationsResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -1428,20 +1391,14 @@ export namespace recommender_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markClaimed(
params: Params$Resource$Projects$Locations$Recommenders$Recommendations$Markclaimed,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markClaimed(
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markClaimed(
paramsOrCallback?:
Expand Down Expand Up @@ -1593,20 +1550,14 @@ export namespace recommender_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markFailed(
params: Params$Resource$Projects$Locations$Recommenders$Recommendations$Markfailed,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markFailed(
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markFailed(
paramsOrCallback?:
Expand Down Expand Up @@ -1758,20 +1709,14 @@ export namespace recommender_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markSucceeded(
params: Params$Resource$Projects$Locations$Recommenders$Recommendations$Marksucceeded,
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markSucceeded(
callback: BodyResponseCallback<
Schema$GoogleCloudRecommenderV1Recommendation
>
callback: BodyResponseCallback<Schema$GoogleCloudRecommenderV1Recommendation>
): void;
markSucceeded(
paramsOrCallback?:
Expand Down

0 comments on commit 6330721

Please sign in to comment.