Name | Type | Description | Notes |
---|---|---|---|
Name | string | The repository name | |
SourceLink | Pointer to string | A URL to access the repository | [optional] |
CommitUrlTemplate | Pointer to string | A template for constructing a valid URL to view the commit | [optional] |
HunkUrlTemplate | Pointer to string | A template for constructing a valid URL to view the hunk | [optional] |
Type | string | The type of repository | |
DefaultBranch | string | The repository's default branch | |
Enabled | bool | Whether or not a repository is enabled for code reference scanning | |
Version | int32 | The version of the repository's saved information | |
Branches | Pointer to []BranchRep | An array of the repository's branches that have been scanned for code references | [optional] |
Links | map[string]interface{} | ||
Access | Pointer to Access | [optional] |
func NewRepositoryRep(name string, type_ string, defaultBranch string, enabled bool, version int32, links map[string]interface{}, ) *RepositoryRep
NewRepositoryRep instantiates a new RepositoryRep 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
func NewRepositoryRepWithDefaults() *RepositoryRep
NewRepositoryRepWithDefaults instantiates a new RepositoryRep 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
func (o *RepositoryRep) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *RepositoryRep) 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.
func (o *RepositoryRep) SetName(v string)
SetName sets Name field to given value.
func (o *RepositoryRep) GetSourceLink() string
GetSourceLink returns the SourceLink field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetSourceLinkOk() (*string, bool)
GetSourceLinkOk returns a tuple with the SourceLink field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetSourceLink(v string)
SetSourceLink sets SourceLink field to given value.
func (o *RepositoryRep) HasSourceLink() bool
HasSourceLink returns a boolean if a field has been set.
func (o *RepositoryRep) GetCommitUrlTemplate() string
GetCommitUrlTemplate returns the CommitUrlTemplate field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetCommitUrlTemplateOk() (*string, bool)
GetCommitUrlTemplateOk returns a tuple with the CommitUrlTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetCommitUrlTemplate(v string)
SetCommitUrlTemplate sets CommitUrlTemplate field to given value.
func (o *RepositoryRep) HasCommitUrlTemplate() bool
HasCommitUrlTemplate returns a boolean if a field has been set.
func (o *RepositoryRep) GetHunkUrlTemplate() string
GetHunkUrlTemplate returns the HunkUrlTemplate field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetHunkUrlTemplateOk() (*string, bool)
GetHunkUrlTemplateOk returns a tuple with the HunkUrlTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetHunkUrlTemplate(v string)
SetHunkUrlTemplate sets HunkUrlTemplate field to given value.
func (o *RepositoryRep) HasHunkUrlTemplate() bool
HasHunkUrlTemplate returns a boolean if a field has been set.
func (o *RepositoryRep) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetType(v string)
SetType sets Type field to given value.
func (o *RepositoryRep) GetDefaultBranch() string
GetDefaultBranch returns the DefaultBranch field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetDefaultBranchOk() (*string, bool)
GetDefaultBranchOk returns a tuple with the DefaultBranch field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetDefaultBranch(v string)
SetDefaultBranch sets DefaultBranch field to given value.
func (o *RepositoryRep) GetEnabled() bool
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetEnabled(v bool)
SetEnabled sets Enabled field to given value.
func (o *RepositoryRep) GetVersion() int32
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetVersion(v int32)
SetVersion sets Version field to given value.
func (o *RepositoryRep) GetBranches() []BranchRep
GetBranches returns the Branches field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetBranchesOk() (*[]BranchRep, bool)
GetBranchesOk returns a tuple with the Branches field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetBranches(v []BranchRep)
SetBranches sets Branches field to given value.
func (o *RepositoryRep) HasBranches() bool
HasBranches returns a boolean if a field has been set.
func (o *RepositoryRep) GetLinks() map[string]interface{}
GetLinks returns the Links field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetLinksOk() (*map[string]interface{}, bool)
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetLinks(v map[string]interface{})
SetLinks sets Links field to given value.
func (o *RepositoryRep) GetAccess() Access
GetAccess returns the Access field if non-nil, zero value otherwise.
func (o *RepositoryRep) GetAccessOk() (*Access, bool)
GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRep) SetAccess(v Access)
SetAccess sets Access field to given value.
func (o *RepositoryRep) HasAccess() bool
HasAccess returns a boolean if a field has been set.