# Secret Manager V1beta1 API - Class Google::Cloud::SecretManager::V1beta1::SecretPayload (v0.22.0)

0.22.0 (latest) 0.21.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.1 0.14.2 0.13.0 0.12.2 0.11.0 0.10.0 0.9.0 0.8.5 Reference documentation and code samples for the Secret Manager V1beta1 API class Google::Cloud::SecretManager::V1beta1::SecretPayload.

A secret payload resource in the Secret Manager API. This contains the
sensitive secret data that is associated with a
[SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion "Google::Cloud::SecretManager::V1beta1::SecretVersion (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data

    def data() -> ::String

**Returns**

- (::String) --- The secret data. Must be no larger than 64KiB.

### #data=

    def data=(value) -> ::String

**Parameter**

- **value** (::String) --- The secret data. Must be no larger than 64KiB.
**Returns**

- (::String) --- The secret data. Must be no larger than 64KiB.