Datastream V1 API - Class Google::Cloud::Datastream::V1::Secret (v1.8.0)

Reference documentation and code samples for the Datastream V1 API class Google::Cloud::Datastream::V1::Secret.

A confidential piece of information where the actual value is either directly specified in the message as a raw string or stored in GCP secret manager.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#raw_value

def raw_value() -> ::String
Returns
  • (::String) — Optional. Input only. The actual raw value of the secret as plain text.

    Note: The following fields are mutually exclusive: raw_value, secret_version. If a field in that set is populated, all other fields in the set will automatically be cleared.

#raw_value=

def raw_value=(value) -> ::String
Parameter
  • value (::String) — Optional. Input only. The actual raw value of the secret as plain text.

    Note: The following fields are mutually exclusive: raw_value, secret_version. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. Input only. The actual raw value of the secret as plain text.

    Note: The following fields are mutually exclusive: raw_value, secret_version. If a field in that set is populated, all other fields in the set will automatically be cleared.

#secret_version

def secret_version() -> ::String
Returns
  • (::String) — Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:

    • projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    • projects/{project}/secrets/{secret}/versions/{version}

    Note: The following fields are mutually exclusive: secret_version, raw_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

#secret_version=

def secret_version=(value) -> ::String
Parameter
  • value (::String) — Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:

    • projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    • projects/{project}/secrets/{secret}/versions/{version}

    Note: The following fields are mutually exclusive: secret_version, raw_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:

    • projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
    • projects/{project}/secrets/{secret}/versions/{version}

    Note: The following fields are mutually exclusive: secret_version, raw_value. If a field in that set is populated, all other fields in the set will automatically be cleared.