Files
sdk/docs/PlatformGitSource.md

3.4 KiB

PlatformGitSource

Properties

Name Type Description Notes
Branch Pointer to string Branch is the branch a push-to-deploy build tracks, `main` when the create named none — a push to any other branch, and every tag push, builds nothing here. A deploy may name a commit instead, for that deploy alone. [optional]
Provider Pointer to string Provider is derived from the URL — github, gitlab, bitbucket, or `git` for anything else. It is a label for display; no behaviour keys on it. [optional]
Url Pointer to string URL is the clone URL a git app builds from, stored as sent once the build path's allowlist accepted it (validateRepoURL). It is also what a landed push is MATCHED against, so a push to any other repo never builds this app. [optional]

Methods

NewPlatformGitSource

func NewPlatformGitSource() *PlatformGitSource

NewPlatformGitSource instantiates a new PlatformGitSource 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

NewPlatformGitSourceWithDefaults

func NewPlatformGitSourceWithDefaults() *PlatformGitSource

NewPlatformGitSourceWithDefaults instantiates a new PlatformGitSource 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

GetBranch

func (o *PlatformGitSource) GetBranch() string

GetBranch returns the Branch field if non-nil, zero value otherwise.

GetBranchOk

func (o *PlatformGitSource) GetBranchOk() (*string, bool)

GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBranch

func (o *PlatformGitSource) SetBranch(v string)

SetBranch sets Branch field to given value.

HasBranch

func (o *PlatformGitSource) HasBranch() bool

HasBranch returns a boolean if a field has been set.

GetProvider

func (o *PlatformGitSource) GetProvider() string

GetProvider returns the Provider field if non-nil, zero value otherwise.

GetProviderOk

func (o *PlatformGitSource) 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 *PlatformGitSource) SetProvider(v string)

SetProvider sets Provider field to given value.

HasProvider

func (o *PlatformGitSource) HasProvider() bool

HasProvider returns a boolean if a field has been set.

GetUrl

func (o *PlatformGitSource) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

GetUrlOk

func (o *PlatformGitSource) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUrl

func (o *PlatformGitSource) SetUrl(v string)

SetUrl sets Url field to given value.

HasUrl

func (o *PlatformGitSource) HasUrl() bool

HasUrl returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]