mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
687 lines
18 KiB
Go
687 lines
18 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the GitRepoView type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GitRepoView{}
|
|
|
|
// GitRepoView struct for GitRepoView
|
|
type GitRepoView struct {
|
|
// Branches are the repo's branch names. Read live, so the detail view carries them and a list row does not.
|
|
Branches []string `json:"branches,omitempty"`
|
|
// CloneURL is the HTTPS smart-HTTP remote `git clone` takes.
|
|
CloneUrl *string `json:"cloneUrl,omitempty"`
|
|
// CreatedAt is RFC 3339 UTC.
|
|
CreatedAt *string `json:"createdAt,omitempty"`
|
|
// DefaultBranch is where HEAD points on a fresh repo (\"main\").
|
|
DefaultBranch *string `json:"defaultBranch,omitempty"`
|
|
// Description is the caller-supplied blurb (max 4KiB).
|
|
Description *string `json:"description,omitempty"`
|
|
// Head is the resolved HEAD commit, empty on an empty repo.
|
|
Head *string `json:"head,omitempty"`
|
|
// ID is the repo's stable, prefixed identifier (\"repo_\" + 128 random bits).
|
|
Id *string `json:"id,omitempty"`
|
|
// Link is where the repo's history lives when it is on another host: reads are served from a cache filled from there and pushes go there. Absent for a repo whose history is here.
|
|
Link *GitLink `json:"link,omitempty"`
|
|
// Name is the org-unique handle, and the last path segment of both URLs below.
|
|
Name *string `json:"name,omitempty"`
|
|
// Org owns the repo — the gateway-minted X-Org-Id, and the isolation key.
|
|
Org *string `json:"org,omitempty"`
|
|
// Project is the optional sub-scope the repo lives in; absent for the org's default scope.
|
|
Project *string `json:"project,omitempty"`
|
|
// Public grants ANONYMOUS read (fetch) only; push and the whole control plane stay org-authed.
|
|
Public *bool `json:"public,omitempty"`
|
|
// SizeBytes is the repo's measured on-disk size, re-measured on create, after each push, and after a gc. This is the number billing meters.
|
|
SizeBytes *int64 `json:"sizeBytes,omitempty"`
|
|
// SSHURL is the scp-style SSH remote (git@host:org/repo.git).
|
|
SshUrl *string `json:"sshUrl,omitempty"`
|
|
// UpdatedAt is RFC 3339 UTC, empty until the first write.
|
|
UpdatedAt *string `json:"updatedAt,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _GitRepoView GitRepoView
|
|
|
|
// NewGitRepoView instantiates a new GitRepoView 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 NewGitRepoView() *GitRepoView {
|
|
this := GitRepoView{}
|
|
return &this
|
|
}
|
|
|
|
// NewGitRepoViewWithDefaults instantiates a new GitRepoView 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 NewGitRepoViewWithDefaults() *GitRepoView {
|
|
this := GitRepoView{}
|
|
return &this
|
|
}
|
|
|
|
// GetBranches returns the Branches field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetBranches() []string {
|
|
if o == nil || IsNil(o.Branches) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Branches
|
|
}
|
|
|
|
// GetBranchesOk returns a tuple with the Branches field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetBranchesOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Branches) {
|
|
return nil, false
|
|
}
|
|
return o.Branches, true
|
|
}
|
|
|
|
// HasBranches returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasBranches() bool {
|
|
if o != nil && !IsNil(o.Branches) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBranches gets a reference to the given []string and assigns it to the Branches field.
|
|
func (o *GitRepoView) SetBranches(v []string) {
|
|
o.Branches = v
|
|
}
|
|
|
|
// GetCloneUrl returns the CloneUrl field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetCloneUrl() string {
|
|
if o == nil || IsNil(o.CloneUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CloneUrl
|
|
}
|
|
|
|
// GetCloneUrlOk returns a tuple with the CloneUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetCloneUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CloneUrl) {
|
|
return nil, false
|
|
}
|
|
return o.CloneUrl, true
|
|
}
|
|
|
|
// HasCloneUrl returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasCloneUrl() bool {
|
|
if o != nil && !IsNil(o.CloneUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCloneUrl gets a reference to the given string and assigns it to the CloneUrl field.
|
|
func (o *GitRepoView) SetCloneUrl(v string) {
|
|
o.CloneUrl = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetCreatedAt() string {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetCreatedAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
|
|
func (o *GitRepoView) SetCreatedAt(v string) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetDefaultBranch returns the DefaultBranch field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetDefaultBranch() string {
|
|
if o == nil || IsNil(o.DefaultBranch) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DefaultBranch
|
|
}
|
|
|
|
// GetDefaultBranchOk returns a tuple with the DefaultBranch field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetDefaultBranchOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DefaultBranch) {
|
|
return nil, false
|
|
}
|
|
return o.DefaultBranch, true
|
|
}
|
|
|
|
// HasDefaultBranch returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasDefaultBranch() bool {
|
|
if o != nil && !IsNil(o.DefaultBranch) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDefaultBranch gets a reference to the given string and assigns it to the DefaultBranch field.
|
|
func (o *GitRepoView) SetDefaultBranch(v string) {
|
|
o.DefaultBranch = &v
|
|
}
|
|
|
|
// GetDescription returns the Description field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetDescription() string {
|
|
if o == nil || IsNil(o.Description) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Description
|
|
}
|
|
|
|
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetDescriptionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Description) {
|
|
return nil, false
|
|
}
|
|
return o.Description, true
|
|
}
|
|
|
|
// HasDescription returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasDescription() bool {
|
|
if o != nil && !IsNil(o.Description) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
|
func (o *GitRepoView) SetDescription(v string) {
|
|
o.Description = &v
|
|
}
|
|
|
|
// GetHead returns the Head field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetHead() string {
|
|
if o == nil || IsNil(o.Head) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Head
|
|
}
|
|
|
|
// GetHeadOk returns a tuple with the Head field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetHeadOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Head) {
|
|
return nil, false
|
|
}
|
|
return o.Head, true
|
|
}
|
|
|
|
// HasHead returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasHead() bool {
|
|
if o != nil && !IsNil(o.Head) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHead gets a reference to the given string and assigns it to the Head field.
|
|
func (o *GitRepoView) SetHead(v string) {
|
|
o.Head = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *GitRepoView) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetLink returns the Link field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetLink() GitLink {
|
|
if o == nil || IsNil(o.Link) {
|
|
var ret GitLink
|
|
return ret
|
|
}
|
|
return *o.Link
|
|
}
|
|
|
|
// GetLinkOk returns a tuple with the Link field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetLinkOk() (*GitLink, bool) {
|
|
if o == nil || IsNil(o.Link) {
|
|
return nil, false
|
|
}
|
|
return o.Link, true
|
|
}
|
|
|
|
// HasLink returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasLink() bool {
|
|
if o != nil && !IsNil(o.Link) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLink gets a reference to the given GitLink and assigns it to the Link field.
|
|
func (o *GitRepoView) SetLink(v GitLink) {
|
|
o.Link = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *GitRepoView) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOrg returns the Org field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetOrg() string {
|
|
if o == nil || IsNil(o.Org) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Org
|
|
}
|
|
|
|
// GetOrgOk returns a tuple with the Org field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetOrgOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Org) {
|
|
return nil, false
|
|
}
|
|
return o.Org, true
|
|
}
|
|
|
|
// HasOrg returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasOrg() bool {
|
|
if o != nil && !IsNil(o.Org) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrg gets a reference to the given string and assigns it to the Org field.
|
|
func (o *GitRepoView) SetOrg(v string) {
|
|
o.Org = &v
|
|
}
|
|
|
|
// GetProject returns the Project field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetProject() string {
|
|
if o == nil || IsNil(o.Project) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Project
|
|
}
|
|
|
|
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetProjectOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Project) {
|
|
return nil, false
|
|
}
|
|
return o.Project, true
|
|
}
|
|
|
|
// HasProject returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasProject() bool {
|
|
if o != nil && !IsNil(o.Project) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProject gets a reference to the given string and assigns it to the Project field.
|
|
func (o *GitRepoView) SetProject(v string) {
|
|
o.Project = &v
|
|
}
|
|
|
|
// GetPublic returns the Public field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetPublic() bool {
|
|
if o == nil || IsNil(o.Public) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Public
|
|
}
|
|
|
|
// GetPublicOk returns a tuple with the Public field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetPublicOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Public) {
|
|
return nil, false
|
|
}
|
|
return o.Public, true
|
|
}
|
|
|
|
// HasPublic returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasPublic() bool {
|
|
if o != nil && !IsNil(o.Public) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPublic gets a reference to the given bool and assigns it to the Public field.
|
|
func (o *GitRepoView) SetPublic(v bool) {
|
|
o.Public = &v
|
|
}
|
|
|
|
// GetSizeBytes returns the SizeBytes field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetSizeBytes() int64 {
|
|
if o == nil || IsNil(o.SizeBytes) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.SizeBytes
|
|
}
|
|
|
|
// GetSizeBytesOk returns a tuple with the SizeBytes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetSizeBytesOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.SizeBytes) {
|
|
return nil, false
|
|
}
|
|
return o.SizeBytes, true
|
|
}
|
|
|
|
// HasSizeBytes returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasSizeBytes() bool {
|
|
if o != nil && !IsNil(o.SizeBytes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSizeBytes gets a reference to the given int64 and assigns it to the SizeBytes field.
|
|
func (o *GitRepoView) SetSizeBytes(v int64) {
|
|
o.SizeBytes = &v
|
|
}
|
|
|
|
// GetSshUrl returns the SshUrl field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetSshUrl() string {
|
|
if o == nil || IsNil(o.SshUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SshUrl
|
|
}
|
|
|
|
// GetSshUrlOk returns a tuple with the SshUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetSshUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SshUrl) {
|
|
return nil, false
|
|
}
|
|
return o.SshUrl, true
|
|
}
|
|
|
|
// HasSshUrl returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasSshUrl() bool {
|
|
if o != nil && !IsNil(o.SshUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSshUrl gets a reference to the given string and assigns it to the SshUrl field.
|
|
func (o *GitRepoView) SetSshUrl(v string) {
|
|
o.SshUrl = &v
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *GitRepoView) GetUpdatedAt() string {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UpdatedAt
|
|
}
|
|
|
|
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitRepoView) GetUpdatedAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedAt, true
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *GitRepoView) HasUpdatedAt() bool {
|
|
if o != nil && !IsNil(o.UpdatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field.
|
|
func (o *GitRepoView) SetUpdatedAt(v string) {
|
|
o.UpdatedAt = &v
|
|
}
|
|
|
|
func (o GitRepoView) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o GitRepoView) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Branches) {
|
|
toSerialize["branches"] = o.Branches
|
|
}
|
|
if !IsNil(o.CloneUrl) {
|
|
toSerialize["cloneUrl"] = o.CloneUrl
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.DefaultBranch) {
|
|
toSerialize["defaultBranch"] = o.DefaultBranch
|
|
}
|
|
if !IsNil(o.Description) {
|
|
toSerialize["description"] = o.Description
|
|
}
|
|
if !IsNil(o.Head) {
|
|
toSerialize["head"] = o.Head
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Link) {
|
|
toSerialize["link"] = o.Link
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Org) {
|
|
toSerialize["org"] = o.Org
|
|
}
|
|
if !IsNil(o.Project) {
|
|
toSerialize["project"] = o.Project
|
|
}
|
|
if !IsNil(o.Public) {
|
|
toSerialize["public"] = o.Public
|
|
}
|
|
if !IsNil(o.SizeBytes) {
|
|
toSerialize["sizeBytes"] = o.SizeBytes
|
|
}
|
|
if !IsNil(o.SshUrl) {
|
|
toSerialize["sshUrl"] = o.SshUrl
|
|
}
|
|
if !IsNil(o.UpdatedAt) {
|
|
toSerialize["updatedAt"] = o.UpdatedAt
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *GitRepoView) UnmarshalJSON(data []byte) (err error) {
|
|
varGitRepoView := _GitRepoView{}
|
|
|
|
err = json.Unmarshal(data, &varGitRepoView)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = GitRepoView(varGitRepoView)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "branches")
|
|
delete(additionalProperties, "cloneUrl")
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "defaultBranch")
|
|
delete(additionalProperties, "description")
|
|
delete(additionalProperties, "head")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "link")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "org")
|
|
delete(additionalProperties, "project")
|
|
delete(additionalProperties, "public")
|
|
delete(additionalProperties, "sizeBytes")
|
|
delete(additionalProperties, "sshUrl")
|
|
delete(additionalProperties, "updatedAt")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableGitRepoView struct {
|
|
value *GitRepoView
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGitRepoView) Get() *GitRepoView {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGitRepoView) Set(val *GitRepoView) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGitRepoView) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGitRepoView) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGitRepoView(val *GitRepoView) *NullableGitRepoView {
|
|
return &NullableGitRepoView{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGitRepoView) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGitRepoView) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|