# Binary Authorization V1 API - Class Google::Cloud::BinaryAuthorization::V1::ValidateAttestationOccurrenceRequest (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.0 0.3.0 0.2.1 0.1.2 Reference documentation and code samples for the Binary Authorization V1 API class Google::Cloud::BinaryAuthorization::V1::ValidateAttestationOccurrenceRequest.

Request message for
[ValidationHelperV1.ValidateAttestationOccurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-ValidationHelper-Client#Google__Cloud__BinaryAuthorization__V1__ValidationHelper__Client_validate_attestation_occurrence_instance_ "Google::Cloud::BinaryAuthorization::V1::ValidationHelper::Client#validate_attestation_occurrence (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attestation

    def attestation() -> ::Grafeas::V1::AttestationOccurrence

**Returns**

- ([::Grafeas::V1::AttestationOccurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Grafeas-V1-AttestationOccurrence)) --- Required. An [AttestationOccurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Grafeas-V1-AttestationOccurrence "Grafeas::V1::AttestationOccurrence (class)") to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

### #attestation=

    def attestation=(value) -> ::Grafeas::V1::AttestationOccurrence

**Parameter**

- **value** ([::Grafeas::V1::AttestationOccurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Grafeas-V1-AttestationOccurrence)) --- Required. An [AttestationOccurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Grafeas-V1-AttestationOccurrence "Grafeas::V1::AttestationOccurrence (class)") to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.
**Returns**

- ([::Grafeas::V1::AttestationOccurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Grafeas-V1-AttestationOccurrence)) --- Required. An [AttestationOccurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Grafeas-V1-AttestationOccurrence "Grafeas::V1::AttestationOccurrence (class)") to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

### #attestor

    def attestor() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [Attestor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-Attestor "Google::Cloud::BinaryAuthorization::V1::Attestor (class)") of the \[occurrence\]\[grafeas.v1.Occurrence\], in the format `projects/*/attestors/*`.

### #attestor=

    def attestor=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [Attestor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-Attestor "Google::Cloud::BinaryAuthorization::V1::Attestor (class)") of the \[occurrence\]\[grafeas.v1.Occurrence\], in the format `projects/*/attestors/*`.
**Returns**

- (::String) --- Required. The resource name of the [Attestor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-Attestor "Google::Cloud::BinaryAuthorization::V1::Attestor (class)") of the \[occurrence\]\[grafeas.v1.Occurrence\], in the format `projects/*/attestors/*`.

### #occurrence_note

    def occurrence_note() -> ::String

**Returns**

- (::String) --- Required. The resource name of the \[Note\]\[grafeas.v1.Note\] to which the containing \[Occurrence\]\[grafeas.v1.Occurrence\] is associated.

### #occurrence_note=

    def occurrence_note=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the \[Note\]\[grafeas.v1.Note\] to which the containing \[Occurrence\]\[grafeas.v1.Occurrence\] is associated.
**Returns**

- (::String) --- Required. The resource name of the \[Note\]\[grafeas.v1.Note\] to which the containing \[Occurrence\]\[grafeas.v1.Occurrence\] is associated.

### #occurrence_resource_uri

    def occurrence_resource_uri() -> ::String

**Returns**

- (::String) --- Required. The URI of the artifact (e.g. container image) that is the subject of the containing \[Occurrence\]\[grafeas.v1.Occurrence\].

### #occurrence_resource_uri=

    def occurrence_resource_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The URI of the artifact (e.g. container image) that is the subject of the containing \[Occurrence\]\[grafeas.v1.Occurrence\].
**Returns**

- (::String) --- Required. The URI of the artifact (e.g. container image) that is the subject of the containing \[Occurrence\]\[grafeas.v1.Occurrence\].