Google Cloud Artifact Registry V1 Client - Class ExportedFile (1.5.0)

Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class ExportedFile.

The exported artifact file.

Generated from protobuf message google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile

Namespace

Google \ Cloud \ ArtifactRegistry \ V1 \ ExportArtifactMetadata

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ gcs_object_path string

Cloud Storage Object path of the exported file. Examples: dst_bucket/file1, dst_bucket/sub_dir/file1

↳ name string

Name of the exported artifact file. Format: projects/p1/locations/us/repositories/repo1/files/file1

↳ hashes array<Google\Cloud\ArtifactRegistry\V1\Hash>

The hashes of the file content.

getGcsObjectPath

Cloud Storage Object path of the exported file. Examples: dst_bucket/file1, dst_bucket/sub_dir/file1

Returns
Type Description
string

hasGcsObjectPath

setGcsObjectPath

Cloud Storage Object path of the exported file. Examples: dst_bucket/file1, dst_bucket/sub_dir/file1

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Name of the exported artifact file.

Format: projects/p1/locations/us/repositories/repo1/files/file1

Returns
Type Description
string

setName

Name of the exported artifact file.

Format: projects/p1/locations/us/repositories/repo1/files/file1

Parameter
Name Description
var string
Returns
Type Description
$this

getHashes

The hashes of the file content.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setHashes

The hashes of the file content.

Parameter
Name Description
var array<Google\Cloud\ArtifactRegistry\V1\Hash>
Returns
Type Description
$this

getDestination

Returns
Type Description
string