public sealed class CopyModelRequest : IMessage<CopyModelRequest>, IEquatable<CopyModelRequest>, IDeepCloneable<CopyModelRequest>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1 API class CopyModelRequest.
Request message for [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel].
Implements
IMessageCopyModelRequest, IEquatableCopyModelRequest, IDeepCloneableCopyModelRequest, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Constructors
CopyModelRequest()
public CopyModelRequest()CopyModelRequest(CopyModelRequest)
public CopyModelRequest(CopyModelRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CopyModelRequest |
Properties
CustomServiceAccount
public string CustomServiceAccount { get; set; }Optional. The user-provided custom service account to use to do the copy
model. If empty, Vertex AI Service
Agent
will be used to access resources needed to upload the model. This account
must belong to the destination project where the model is copied to,
i.e., the project specified in the parent field of this request and
have the Vertex AI Service Agent role in the source project.
Requires the user copying the Model to have the
iam.serviceAccounts.actAs permission on this service account.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DestinationModelCase
public CopyModelRequest.DestinationModelOneofCase DestinationModelCase { get; }| Property Value | |
|---|---|
| Type | Description |
CopyModelRequestDestinationModelOneofCase |
|
EncryptionSpec
public EncryptionSpec EncryptionSpec { get; set; }Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.
| Property Value | |
|---|---|
| Type | Description |
EncryptionSpec |
|
HasModelId
public bool HasModelId { get; }Gets whether the "model_id" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasParentModel
public bool HasParentModel { get; }Gets whether the "parent_model" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
ModelId
public string ModelId { get; set; }Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.
This value may be up to 63 characters, and valid characters are
[a-z0-9_-]. The first character cannot be a number or hyphen.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Parent
public string Parent { get; set; }Required. The resource name of the Location into which to copy the Model.
Format: projects/{project}/locations/{location}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ParentAsLocationName
public LocationName ParentAsLocationName { get; set; }LocationName-typed view over the Parent resource name property.
| Property Value | |
|---|---|
| Type | Description |
LocationName |
|
ParentModel
public string ParentModel { get; set; }Optional. Specify this field to copy source_model into this existing
Model as a new version. Format:
projects/{project}/locations/{location}/models/{model}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ParentModelAsModelName
public ModelName ParentModelAsModelName { get; set; }ModelName-typed view over the ParentModel resource name property.
| Property Value | |
|---|---|
| Type | Description |
ModelName |
|
SourceModel
public string SourceModel { get; set; }Required. The resource name of the Model to copy. That Model must be in the
same Project. Format:
projects/{project}/locations/{location}/models/{model}
| Property Value | |
|---|---|
| Type | Description |
string |
|
SourceModelAsModelName
public ModelName SourceModelAsModelName { get; set; }ModelName-typed view over the SourceModel resource name property.
| Property Value | |
|---|---|
| Type | Description |
ModelName |
|