1.0.0-beta87 (latest) 1.0.0-beta86

    public sealed class CopyModelRequest : IMessage<CopyModelRequest>, IEquatable<CopyModelRequest>, IDeepCloneable<CopyModelRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class CopyModelRequest.

Request message for
\[ModelService.CopyModel\]\[google.cloud.aiplatform.v1beta1.ModelService.CopyModel\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CopyModelRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CopyModelRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CopyModelRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CopyModelRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### CopyModelRequest()

    public CopyModelRequest()

### CopyModelRequest(CopyModelRequest)

    public CopyModelRequest(CopyModelRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.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](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
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** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DestinationModelCase

    public CopyModelRequest.DestinationModelOneofCase DestinationModelCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequest.DestinationModelOneofCase` |   |

### 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** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.EncryptionSpec` |   |

### HasModelId

    public bool HasModelId { get; }

Gets whether the "model_id" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasParentModel

    public bool HasParentModel { get; }

Gets whether the "parent_model" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### 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** |
| `https://learn.microsoft.com/dotnet/api/system.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** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequest#Google_Cloud_AIPlatform_V1Beta1_CopyModelRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### 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** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentModelAsModelName

    public ModelName ParentModelAsModelName { get; set; }

[ModelName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelName)-typed view over the [ParentModel](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequest#Google_Cloud_AIPlatform_V1Beta1_CopyModelRequest_ParentModel) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.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** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SourceModelAsModelName

    public ModelName SourceModelAsModelName { get; set; }

[ModelName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelName)-typed view over the [SourceModel](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CopyModelRequest#Google_Cloud_AIPlatform_V1Beta1_CopyModelRequest_SourceModel) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelName` |   |