1.8.4 (latest) 1.7.2 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class ExportArtifactRequest.

The request for exporting an artifact to a destination.

Generated from protobuf message `google.devtools.artifactregistry.v1.ExportArtifactRequest`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_version` | `string` The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version} |
| `↳ source_tag` | `string` The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag} |
| `↳ gcs_path` | `string` The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing objects with the same path will be overwritten. |
| `↳ repository` | `string` Required. The repository of the artifact to export. Format: projects/{project}/locations/{location}/repositories/{repository} |

### getSourceVersion

The artifact version to export.

Format:
projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSourceVersion

### setSourceVersion

The artifact version to export.

Format:
projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourceTag

The artifact tag to export.

Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSourceTag

### setSourceTag

The artifact tag to export.

Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGcsPath

The Cloud Storage path to export the artifact to. Should start with the
bucket name, and optionally have a directory path. Examples:
`dst_bucket`, `dst_bucket/sub_dir`.

Existing objects with the same path will be overwritten.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasGcsPath

### setGcsPath

The Cloud Storage path to export the artifact to. Should start with the
bucket name, and optionally have a directory path. Examples:
`dst_bucket`, `dst_bucket/sub_dir`.

Existing objects with the same path will be overwritten.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRepository

Required. The repository of the artifact to export.

Format: projects/{project}/locations/{location}/repositories/{repository}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRepository

Required. The repository of the artifact to export.

Format: projects/{project}/locations/{location}/repositories/{repository}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourceArtifact

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getDestination

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |