Copies a model from one instance to another. See the model copy documentation for more information.
HTTP request
POST https://financialservices.googleapis.com/v1/{parent=projects/*/locations/*/instances/*}/models:copy
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent of the Model is the Instance. Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "modelId": string, "sourceModel": string } |
| Fields | |
|---|---|
modelId |
Required. The resource id of the Model that the copy operation is creating. |
sourceModel |
Required. The resource name of the Model to copy. Authorization requires the following IAM permission on the specified resource
|
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
financialservices.v1models.copyTo
Requires the following IAM permission on the sourceModel resource:
financialservices.v1models.copyFrom
For more information, see the IAM documentation.