3.5 KiB
GitLink
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| CloneUrl | Pointer to string | CloneURL is the address its history is fetched from and pushed to. | [optional] |
| Name | Pointer to string | Name is the repository's name on its provider. | [optional] |
| Owner | Pointer to string | Owner is the account the repository belongs to on its provider. | [optional] |
| Provider | Pointer to string | Provider is "github", "forge" (git.hanzo.ai, Hanzo's own), or "git" for any other host. | [optional] |
Methods
NewGitLink
func NewGitLink() *GitLink
NewGitLink instantiates a new GitLink object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewGitLinkWithDefaults
func NewGitLinkWithDefaults() *GitLink
NewGitLinkWithDefaults instantiates a new GitLink object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetCloneUrl
func (o *GitLink) GetCloneUrl() string
GetCloneUrl returns the CloneUrl field if non-nil, zero value otherwise.
GetCloneUrlOk
func (o *GitLink) GetCloneUrlOk() (*string, bool)
GetCloneUrlOk returns a tuple with the CloneUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCloneUrl
func (o *GitLink) SetCloneUrl(v string)
SetCloneUrl sets CloneUrl field to given value.
HasCloneUrl
func (o *GitLink) HasCloneUrl() bool
HasCloneUrl returns a boolean if a field has been set.
GetName
func (o *GitLink) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *GitLink) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetName
func (o *GitLink) SetName(v string)
SetName sets Name field to given value.
HasName
func (o *GitLink) HasName() bool
HasName returns a boolean if a field has been set.
GetOwner
func (o *GitLink) GetOwner() string
GetOwner returns the Owner field if non-nil, zero value otherwise.
GetOwnerOk
func (o *GitLink) GetOwnerOk() (*string, bool)
GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetOwner
func (o *GitLink) SetOwner(v string)
SetOwner sets Owner field to given value.
HasOwner
func (o *GitLink) HasOwner() bool
HasOwner returns a boolean if a field has been set.
GetProvider
func (o *GitLink) GetProvider() string
GetProvider returns the Provider field if non-nil, zero value otherwise.
GetProviderOk
func (o *GitLink) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetProvider
func (o *GitLink) SetProvider(v string)
SetProvider sets Provider field to given value.
HasProvider
func (o *GitLink) HasProvider() bool
HasProvider returns a boolean if a field has been set.