Design Center V1 API - Class Google::Cloud::DesignCenter::V1::GitReference (v0.1.0)

Reference documentation and code samples for the Design Center V1 API class Google::Cloud::DesignCenter::V1::GitReference.

The Git reference. Can be a commit SHA, branch name, or tag name.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#branch

def branch() -> ::String
Returns
  • (::String) — Optional. The name of the branch from which content should be read. For example: "main"

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

#branch=

def branch=(value) -> ::String
Parameter
  • value (::String) — Optional. The name of the branch from which content should be read. For example: "main"

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

Returns
  • (::String) — Optional. The name of the branch from which content should be read. For example: "main"

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

#commit_sha

def commit_sha() -> ::String
Returns
  • (::String) — Optional. The full SHA hash of a specific commit from which content should be read.

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

#commit_sha=

def commit_sha=(value) -> ::String
Parameter
  • value (::String) — Optional. The full SHA hash of a specific commit from which content should be read.

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

Returns
  • (::String) — Optional. The full SHA hash of a specific commit from which content should be read.

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

#ref_tag

def ref_tag() -> ::String
Returns
  • (::String) — Optional. The reference tag from which content should be read. For example: "v1.2.3"

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

#ref_tag=

def ref_tag=(value) -> ::String
Parameter
  • value (::String) — Optional. The reference tag from which content should be read. For example: "v1.2.3"

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

Returns
  • (::String) — Optional. The reference tag from which content should be read. For example: "v1.2.3"

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