Skip to content

Commit

Permalink
feat(ml)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### ml:v1
The following keys were deleted:
- schemas.GoogleIamV1__Binding.properties.bindingId.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 30, 2020
1 parent 94d1c14 commit 49df4fe
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 89 deletions.
5 changes: 1 addition & 4 deletions discovery/ml-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@
}
}
},
"revision": "20201029",
"revision": "20201112",
"rootUrl": "https://ml.googleapis.com/",
"schemas": {
"GoogleApi__HttpBody": {
Expand Down Expand Up @@ -3631,9 +3631,6 @@
"description": "Associates `members` with a `role`.",
"id": "GoogleIamV1__Binding",
"properties": {
"bindingId": {
"type": "string"
},
"condition": {
"$ref": "GoogleType__Expr",
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
Expand Down
117 changes: 32 additions & 85 deletions src/apis/ml/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,6 @@ export namespace ml_v1 {
* Associates `members` with a `role`.
*/
export interface Schema$GoogleIamV1__Binding {
bindingId?: string | null;
/**
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
Expand Down Expand Up @@ -3242,20 +3241,14 @@ export namespace ml_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>,
callback: BodyResponseCallback<
Schema$GoogleIamV1__TestIamPermissionsResponse
>
callback: BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>
): void;
testIamPermissions(
params: Params$Resource$Projects$Jobs$Testiampermissions,
callback: BodyResponseCallback<
Schema$GoogleIamV1__TestIamPermissionsResponse
>
callback: BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>
): void;
testIamPermissions(
callback: BodyResponseCallback<
Schema$GoogleIamV1__TestIamPermissionsResponse
>
callback: BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>
): void;
testIamPermissions(
paramsOrCallback?:
Expand Down Expand Up @@ -3644,20 +3637,14 @@ export namespace ml_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudMlV1__ListLocationsResponse>,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListLocationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListLocationsResponse>
): void;
list(
params: Params$Resource$Projects$Locations$List,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListLocationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListLocationsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListLocationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListLocationsResponse>
): void;
list(
paramsOrCallback?:
Expand Down Expand Up @@ -4528,20 +4515,14 @@ export namespace ml_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudMlV1__ListStudiesResponse>,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListStudiesResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListStudiesResponse>
): void;
list(
params: Params$Resource$Projects$Locations$Studies$List,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListStudiesResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListStudiesResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListStudiesResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListStudiesResponse>
): void;
list(
paramsOrCallback?:
Expand Down Expand Up @@ -5752,42 +5733,28 @@ export namespace ml_v1 {
params: Params$Resource$Projects$Locations$Studies$Trials$Listoptimaltrials,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>
| BodyResponseCallback<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>
): void;
listOptimalTrials(
params: Params$Resource$Projects$Locations$Studies$Trials$Listoptimaltrials,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>
): void;
listOptimalTrials(
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>
): void;
listOptimalTrials(
paramsOrCallback?:
| Params$Resource$Projects$Locations$Studies$Trials$Listoptimaltrials
| BodyResponseCallback<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>
| BodyResponseCallback<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>
| BodyResponseCallback<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>
| BodyResponseCallback<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>
| BodyResponseCallback<Readable>
):
| void
Expand Down Expand Up @@ -5831,9 +5798,9 @@ export namespace ml_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudMlV1__ListOptimalTrialsResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudMlV1__ListOptimalTrialsResponse>(
parameters
);
}
}

Expand Down Expand Up @@ -7351,20 +7318,14 @@ export namespace ml_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>,
callback: BodyResponseCallback<
Schema$GoogleIamV1__TestIamPermissionsResponse
>
callback: BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>
): void;
testIamPermissions(
params: Params$Resource$Projects$Models$Testiampermissions,
callback: BodyResponseCallback<
Schema$GoogleIamV1__TestIamPermissionsResponse
>
callback: BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>
): void;
testIamPermissions(
callback: BodyResponseCallback<
Schema$GoogleIamV1__TestIamPermissionsResponse
>
callback: BodyResponseCallback<Schema$GoogleIamV1__TestIamPermissionsResponse>
): void;
testIamPermissions(
paramsOrCallback?:
Expand Down Expand Up @@ -8075,20 +8036,14 @@ export namespace ml_v1 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudMlV1__ListVersionsResponse>,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListVersionsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListVersionsResponse>
): void;
list(
params: Params$Resource$Projects$Models$Versions$List,
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListVersionsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListVersionsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudMlV1__ListVersionsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudMlV1__ListVersionsResponse>
): void;
list(
paramsOrCallback?:
Expand Down Expand Up @@ -8911,23 +8866,15 @@ export namespace ml_v1 {
params: Params$Resource$Projects$Operations$List,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleLongrunning__ListOperationsResponse
>,
callback: BodyResponseCallback<
Schema$GoogleLongrunning__ListOperationsResponse
>
| BodyResponseCallback<Schema$GoogleLongrunning__ListOperationsResponse>,
callback: BodyResponseCallback<Schema$GoogleLongrunning__ListOperationsResponse>
): void;
list(
params: Params$Resource$Projects$Operations$List,
callback: BodyResponseCallback<
Schema$GoogleLongrunning__ListOperationsResponse
>
callback: BodyResponseCallback<Schema$GoogleLongrunning__ListOperationsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleLongrunning__ListOperationsResponse
>
callback: BodyResponseCallback<Schema$GoogleLongrunning__ListOperationsResponse>
): void;
list(
paramsOrCallback?:
Expand Down Expand Up @@ -8984,9 +8931,9 @@ export namespace ml_v1 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleLongrunning__ListOperationsResponse
>(parameters);
return createAPIRequest<Schema$GoogleLongrunning__ListOperationsResponse>(
parameters
);
}
}
}
Expand Down

0 comments on commit 49df4fe

Please sign in to comment.