class ProjectsLocationsApisDeploymentsArtifacts extends Resource (View source)

The "artifacts" collection of methods.

Typical usage is:

 $apigeeregistryService = new Google\Service\ApigeeRegistry(...);
 $artifacts = $apigeeregistryService->projects_locations_apis_deployments_artifacts;

Methods

create(string $parent, Artifact $postBody, array $optParams = [])

Creates a specified artifact. (artifacts.create)

delete(string $name, array $optParams = [])

Removes a specified artifact. (artifacts.delete)

get(string $name, array $optParams = [])

Returns a specified artifact. (artifacts.get)

getContents(string $name, array $optParams = [])

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

listProjectsLocationsApisDeploymentsArtifacts(string $parent, array $optParams = [])

Returns matching artifacts.

replaceArtifact(string $name, Artifact $postBody, array $optParams = [])

Used to replace a specified artifact. (artifacts.replaceArtifact)

Details

Artifact create(string $parent, Artifact $postBody, array $optParams = [])

Creates a specified artifact. (artifacts.create)

Parameters

string $parent

Required. The parent, which owns this collection of artifacts. Format: {parent}

Artifact $postBody
array $optParams

Optional parameters.

Return Value

Artifact

Exceptions

Exception

ApigeeregistryEmpty delete(string $name, array $optParams = [])

Removes a specified artifact. (artifacts.delete)

Parameters

string $name

Required. The name of the artifact to delete. Format: {parent}/artifacts

array $optParams

Optional parameters.

Return Value

ApigeeregistryEmpty

Exceptions

Exception

Artifact get(string $name, array $optParams = [])

Returns a specified artifact. (artifacts.get)

Parameters

string $name

Required. The name of the artifact to retrieve. Format: {parent}/artifacts

array $optParams

Optional parameters.

Return Value

Artifact

Exceptions

Exception

HttpBody getContents(string $name, array $optParams = [])

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

(artifacts.getContents)

Parameters

string $name

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts

array $optParams

Optional parameters.

Return Value

HttpBody

Exceptions

Exception

ListArtifactsResponse listProjectsLocationsApisDeploymentsArtifacts(string $parent, array $optParams = [])

Returns matching artifacts.

(artifacts.listProjectsLocationsApisDeploymentsArtifacts)

Parameters

string $parent

Required. The parent, which owns this collection of artifacts. Format: {parent}

array $optParams

Optional parameters.

Return Value

ListArtifactsResponse

Exceptions

Exception

Artifact replaceArtifact(string $name, Artifact $postBody, array $optParams = [])

Used to replace a specified artifact. (artifacts.replaceArtifact)

Parameters

string $name

Resource name.

Artifact $postBody
array $optParams

Optional parameters.

Return Value

Artifact

Exceptions

Exception