Reference documentation and code samples for the Secure Source Manager V1 API class Google::Cloud::SecureSourceManager::V1::Ref.
Ref represents a git reference within a repository.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#name
def name() -> ::String
Returns
- (::String) — Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').
Returns
- (::String) — Identifier. Name of the git reference (e.g., 'refs/heads/foo' or 'refs/tags/v1.0').
#target
def target() -> ::String
Returns
- (::String) — Output only. The target of the reference, which is a commit SHA.
#type
def type() -> ::Google::Cloud::SecureSourceManager::V1::Ref::RefType
Returns
- (::Google::Cloud::SecureSourceManager::V1::Ref::RefType) — Output only. The type of the reference.