ProjectsLocationsArtifacts
class ProjectsLocationsArtifacts extends Resource (View source)
The "artifacts" collection of methods.
Typical usage is:
$apigeeregistryService = new Google\Service\ApigeeRegistry(...);
$artifacts = $apigeeregistryService->projects_locations_artifacts;
Methods
Removes a specified artifact. (artifacts.delete)
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).
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (artifacts.getIamPolicy)
Returns matching artifacts. (artifacts.listProjectsLocationsArtifacts)
Used to replace a specified artifact. (artifacts.replaceArtifact)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (artifacts.setIamPolicy)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Details
Artifact
create(string $parent, Artifact $postBody, array $optParams = [])
Creates a specified artifact. (artifacts.create)
ApigeeregistryEmpty
delete(string $name, array $optParams = [])
Removes a specified artifact. (artifacts.delete)
Artifact
get(string $name, array $optParams = [])
Returns a specified artifact. (artifacts.get)
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)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (artifacts.getIamPolicy)
ListArtifactsResponse
listProjectsLocationsArtifacts(string $parent, array $optParams = [])
Returns matching artifacts. (artifacts.listProjectsLocationsArtifacts)
Artifact
replaceArtifact(string $name, Artifact $postBody, array $optParams = [])
Used to replace a specified artifact. (artifacts.replaceArtifact)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (artifacts.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (artifacts.testIamPermissions)