# Grafeas V1 API - Class Grafeas::V1::SecretOccurrence (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.1 1.0.0 0.16.1 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::SecretOccurrence.

The occurrence provides details of a secret.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data

    def data() -> ::Google::Protobuf::Any

**Returns**

- ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Any)) --- Scan result of the secret.

### #data=

    def data=(value) -> ::Google::Protobuf::Any

**Parameter**

- **value** ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Any)) --- Scan result of the secret.
**Returns**

- ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Any)) --- Scan result of the secret.

### #digest

    def digest() -> ::Grafeas::V1::Digest

**Returns**

- ([::Grafeas::V1::Digest](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Digest)) --- Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

### #digest=

    def digest=(value) -> ::Grafeas::V1::Digest

**Parameter**

- **value** ([::Grafeas::V1::Digest](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Digest)) --- Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.
**Returns**

- ([::Grafeas::V1::Digest](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Digest)) --- Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

### #kind

    def kind() -> ::Grafeas::V1::SecretKind

**Returns**

- ([::Grafeas::V1::SecretKind](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretKind)) --- Type of secret.

### #kind=

    def kind=(value) -> ::Grafeas::V1::SecretKind

**Parameter**

- **value** ([::Grafeas::V1::SecretKind](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretKind)) --- Type of secret.
**Returns**

- ([::Grafeas::V1::SecretKind](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretKind)) --- Type of secret.

### #locations

    def locations() -> ::Array<::Grafeas::V1::SecretLocation>

**Returns**

- (::Array\<[::Grafeas::V1::SecretLocation](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretLocation)\>) --- Locations where the secret is detected.

### #locations=

    def locations=(value) -> ::Array<::Grafeas::V1::SecretLocation>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::SecretLocation](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretLocation)\>) --- Locations where the secret is detected.
**Returns**

- (::Array\<[::Grafeas::V1::SecretLocation](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretLocation)\>) --- Locations where the secret is detected.

### #statuses

    def statuses() -> ::Array<::Grafeas::V1::SecretStatus>

**Returns**

- (::Array\<[::Grafeas::V1::SecretStatus](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretStatus)\>) --- Status of the secret.

### #statuses=

    def statuses=(value) -> ::Array<::Grafeas::V1::SecretStatus>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::SecretStatus](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretStatus)\>) --- Status of the secret.
**Returns**

- (::Array\<[::Grafeas::V1::SecretStatus](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SecretStatus)\>) --- Status of the secret.