Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class UserOwnedGrafeasNote.
An user owned Grafeas note references a Grafeas
Attestation.Authority Note created by the user.
Generated from protobuf message google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote
Namespace
Google \ Cloud \ BinaryAuthorization \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ note_reference
string
Required. The Grafeas resource name of a Attestation.Authority Note, created by the user, in the format: projects/*/notes/*. This field may not be updated. An attestation by this attestor is stored as a Grafeas Attestation.Authority Occurrence that names a container image and that links to this Note. Grafeas is an external dependency.
Optional. Public keys that verify attestations signed by this attestor. This field may be updated. If this field is non-empty, one of the specified public keys must verify that an attestation was signed by this attestor for the image specified in the admission request. If this field is empty, this attestor always returns that no valid attestations exist.
↳ delegation_service_account_email
string
Output only. This field will contain the service account email address that this Attestor will use as the principal when querying Container Analysis. Attestor administrators must grant this service account the IAM role needed to read attestations from the note_reference in Container Analysis (containeranalysis.notes.occurrences.viewer). This email address is fixed for the lifetime of the Attestor, but callers should not make any other assumptions about the service account email; future versions may use an email based on a different naming pattern.
getNoteReference
Required. The Grafeas resource name of a Attestation.Authority Note,
created by the user, in the format: projects/*/notes/*. This field may
not be updated.
An attestation by this attestor is stored as a Grafeas
Attestation.Authority Occurrence that names a container image and that
links to this Note. Grafeas is an external dependency.
Returns
Type
Description
string
setNoteReference
Required. The Grafeas resource name of a Attestation.Authority Note,
created by the user, in the format: projects/*/notes/*. This field may
not be updated.
An attestation by this attestor is stored as a Grafeas
Attestation.Authority Occurrence that names a container image and that
links to this Note. Grafeas is an external dependency.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPublicKeys
Optional. Public keys that verify attestations signed by this
attestor. This field may be updated.
If this field is non-empty, one of the specified public keys must
verify that an attestation was signed by this attestor for the
image specified in the admission request.
If this field is empty, this attestor always returns that no
valid attestations exist.
Optional. Public keys that verify attestations signed by this
attestor. This field may be updated.
If this field is non-empty, one of the specified public keys must
verify that an attestation was signed by this attestor for the
image specified in the admission request.
If this field is empty, this attestor always returns that no
valid attestations exist.
Output only. This field will contain the service account email address
that this Attestor will use as the principal when querying Container
Analysis. Attestor administrators must grant this service account the
IAM role needed to read attestations from the note_reference in
Container Analysis (containeranalysis.notes.occurrences.viewer).
This email address is fixed for the lifetime of the Attestor, but callers
should not make any other assumptions about the service account email;
future versions may use an email based on a different naming pattern.
Returns
Type
Description
string
setDelegationServiceAccountEmail
Output only. This field will contain the service account email address
that this Attestor will use as the principal when querying Container
Analysis. Attestor administrators must grant this service account the
IAM role needed to read attestations from the note_reference in
Container Analysis (containeranalysis.notes.occurrences.viewer).
This email address is fixed for the lifetime of the Attestor, but callers
should not make any other assumptions about the service account email;
future versions may use an email based on a different naming pattern.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Binary Authorization V1 Client - Class UserOwnedGrafeasNote (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-binary-authorization/latest/V1.UserOwnedGrafeasNote)\n- [1.0.4](/php/docs/reference/cloud-binary-authorization/1.0.4/V1.UserOwnedGrafeasNote)\n- [0.8.7](/php/docs/reference/cloud-binary-authorization/0.8.7/V1.UserOwnedGrafeasNote)\n- [0.7.0](/php/docs/reference/cloud-binary-authorization/0.7.0/V1.UserOwnedGrafeasNote)\n- [0.6.1](/php/docs/reference/cloud-binary-authorization/0.6.1/V1.UserOwnedGrafeasNote)\n- [0.5.13](/php/docs/reference/cloud-binary-authorization/0.5.13/V1.UserOwnedGrafeasNote) \nReference documentation and code samples for the Google Cloud Binary Authorization V1 Client class UserOwnedGrafeasNote.\n\nAn [user owned Grafeas note](/php/docs/reference/cloud-binary-authorization/latest/V1.UserOwnedGrafeasNote) references a Grafeas\nAttestation.Authority Note created by the user.\n\nGenerated from protobuf message `google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BinaryAuthorization \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNoteReference\n\nRequired. The Grafeas resource name of a Attestation.Authority Note,\ncreated by the user, in the format: `projects/*/notes/*`. This field may\nnot be updated.\n\nAn attestation by this attestor is stored as a Grafeas\nAttestation.Authority Occurrence that names a container image and that\nlinks to this Note. Grafeas is an external dependency.\n\n### setNoteReference\n\nRequired. The Grafeas resource name of a Attestation.Authority Note,\ncreated by the user, in the format: `projects/*/notes/*`. This field may\nnot be updated.\n\nAn attestation by this attestor is stored as a Grafeas\nAttestation.Authority Occurrence that names a container image and that\nlinks to this Note. Grafeas is an external dependency.\n\n### getPublicKeys\n\nOptional. Public keys that verify attestations signed by this\nattestor. This field may be updated.\n\nIf this field is non-empty, one of the specified public keys must\nverify that an attestation was signed by this attestor for the\nimage specified in the admission request.\nIf this field is empty, this attestor always returns that no\nvalid attestations exist.\n\n### setPublicKeys\n\nOptional. Public keys that verify attestations signed by this\nattestor. This field may be updated.\n\nIf this field is non-empty, one of the specified public keys must\nverify that an attestation was signed by this attestor for the\nimage specified in the admission request.\nIf this field is empty, this attestor always returns that no\nvalid attestations exist.\n\n### getDelegationServiceAccountEmail\n\nOutput only. This field will contain the service account email address\nthat this Attestor will use as the principal when querying Container\nAnalysis. Attestor administrators must grant this service account the\nIAM role needed to read attestations from the note_reference in\nContainer Analysis (`containeranalysis.notes.occurrences.viewer`).\n\nThis email address is fixed for the lifetime of the Attestor, but callers\nshould not make any other assumptions about the service account email;\nfuture versions may use an email based on a different naming pattern.\n\n### setDelegationServiceAccountEmail\n\nOutput only. This field will contain the service account email address\nthat this Attestor will use as the principal when querying Container\nAnalysis. Attestor administrators must grant this service account the\nIAM role needed to read attestations from the note_reference in\nContainer Analysis (`containeranalysis.notes.occurrences.viewer`).\n\nThis email address is fixed for the lifetime of the Attestor, but callers\nshould not make any other assumptions about the service account email;\nfuture versions may use an email based on a different naming pattern."]]