mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
839 lines
22 KiB
Go
839 lines
22 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 GitActivityTotals type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GitActivityTotals{}
|
|
|
|
// GitActivityTotals struct for GitActivityTotals
|
|
type GitActivityTotals struct {
|
|
// Active is how many have a commit in the window.
|
|
Active *int64 `json:"active,omitempty"`
|
|
// Active30 is how many have a commit in the last 30 days.
|
|
Active30 *int64 `json:"active30,omitempty"`
|
|
// Commits is distinct commits in the window, each counted once in this scope: every commit the scope's repositories hold, the upstream projects carried and kept current included.
|
|
Commits *int64 `json:"commits,omitempty"`
|
|
// Contributors is distinct author addresses in the window, counted and never named.
|
|
Contributors *int64 `json:"contributors,omitempty"`
|
|
// Empty is how many hold no commit.
|
|
Empty *int64 `json:"empty,omitempty"`
|
|
// Forks is commits found only in forks, upstream history included.
|
|
Forks *int64 `json:"forks,omitempty"`
|
|
// Last is the newest commit time in the scope, RFC 3339 UTC; empty when none.
|
|
Last *string `json:"last,omitempty"`
|
|
// MergeMonths is Merges per calendar month, as Months.
|
|
MergeMonths []int64 `json:"mergeMonths,omitempty"`
|
|
// Merges is how many of those have more than one parent.
|
|
Merges *int64 `json:"merges,omitempty"`
|
|
// Mirrors is how many are pull mirrors of github.com.
|
|
Mirrors *int64 `json:"mirrors,omitempty"`
|
|
// Months is Commits per calendar month, oldest first, one per entry of the document's Months.
|
|
Months []int64 `json:"months,omitempty"`
|
|
// Orgs is how many orgs the estate holds on the forge.
|
|
Orgs *int64 `json:"orgs,omitempty"`
|
|
// Ours is how many of those the estate's people authored: an address a member of an estate org commits with, or one at an estate domain.
|
|
Ours *int64 `json:"ours,omitempty"`
|
|
// OursMonths is Ours per calendar month, as Months.
|
|
OursMonths []int64 `json:"oursMonths,omitempty"`
|
|
// Own is commits found in at least one repository GitHub does not call a fork.
|
|
Own *int64 `json:"own,omitempty"`
|
|
// People is how many of those are the estate's own.
|
|
People *int64 `json:"people,omitempty"`
|
|
// Private is how many only their members can read. They are counted, never named.
|
|
Private *int64 `json:"private,omitempty"`
|
|
// Public is how many of them anyone can read.
|
|
Public *int64 `json:"public,omitempty"`
|
|
// Repos is how many repositories the scope holds on the forge.
|
|
Repos *int64 `json:"repos,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _GitActivityTotals GitActivityTotals
|
|
|
|
// NewGitActivityTotals instantiates a new GitActivityTotals 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 NewGitActivityTotals() *GitActivityTotals {
|
|
this := GitActivityTotals{}
|
|
return &this
|
|
}
|
|
|
|
// NewGitActivityTotalsWithDefaults instantiates a new GitActivityTotals 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 NewGitActivityTotalsWithDefaults() *GitActivityTotals {
|
|
this := GitActivityTotals{}
|
|
return &this
|
|
}
|
|
|
|
// GetActive returns the Active field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetActive() int64 {
|
|
if o == nil || IsNil(o.Active) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Active
|
|
}
|
|
|
|
// GetActiveOk returns a tuple with the Active field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetActiveOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Active) {
|
|
return nil, false
|
|
}
|
|
return o.Active, true
|
|
}
|
|
|
|
// HasActive returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasActive() bool {
|
|
if o != nil && !IsNil(o.Active) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetActive gets a reference to the given int64 and assigns it to the Active field.
|
|
func (o *GitActivityTotals) SetActive(v int64) {
|
|
o.Active = &v
|
|
}
|
|
|
|
// GetActive30 returns the Active30 field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetActive30() int64 {
|
|
if o == nil || IsNil(o.Active30) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Active30
|
|
}
|
|
|
|
// GetActive30Ok returns a tuple with the Active30 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetActive30Ok() (*int64, bool) {
|
|
if o == nil || IsNil(o.Active30) {
|
|
return nil, false
|
|
}
|
|
return o.Active30, true
|
|
}
|
|
|
|
// HasActive30 returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasActive30() bool {
|
|
if o != nil && !IsNil(o.Active30) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetActive30 gets a reference to the given int64 and assigns it to the Active30 field.
|
|
func (o *GitActivityTotals) SetActive30(v int64) {
|
|
o.Active30 = &v
|
|
}
|
|
|
|
// GetCommits returns the Commits field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetCommits() int64 {
|
|
if o == nil || IsNil(o.Commits) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Commits
|
|
}
|
|
|
|
// GetCommitsOk returns a tuple with the Commits field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetCommitsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Commits) {
|
|
return nil, false
|
|
}
|
|
return o.Commits, true
|
|
}
|
|
|
|
// HasCommits returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasCommits() bool {
|
|
if o != nil && !IsNil(o.Commits) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCommits gets a reference to the given int64 and assigns it to the Commits field.
|
|
func (o *GitActivityTotals) SetCommits(v int64) {
|
|
o.Commits = &v
|
|
}
|
|
|
|
// GetContributors returns the Contributors field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetContributors() int64 {
|
|
if o == nil || IsNil(o.Contributors) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Contributors
|
|
}
|
|
|
|
// GetContributorsOk returns a tuple with the Contributors field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetContributorsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Contributors) {
|
|
return nil, false
|
|
}
|
|
return o.Contributors, true
|
|
}
|
|
|
|
// HasContributors returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasContributors() bool {
|
|
if o != nil && !IsNil(o.Contributors) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContributors gets a reference to the given int64 and assigns it to the Contributors field.
|
|
func (o *GitActivityTotals) SetContributors(v int64) {
|
|
o.Contributors = &v
|
|
}
|
|
|
|
// GetEmpty returns the Empty field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetEmpty() int64 {
|
|
if o == nil || IsNil(o.Empty) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Empty
|
|
}
|
|
|
|
// GetEmptyOk returns a tuple with the Empty field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetEmptyOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Empty) {
|
|
return nil, false
|
|
}
|
|
return o.Empty, true
|
|
}
|
|
|
|
// HasEmpty returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasEmpty() bool {
|
|
if o != nil && !IsNil(o.Empty) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEmpty gets a reference to the given int64 and assigns it to the Empty field.
|
|
func (o *GitActivityTotals) SetEmpty(v int64) {
|
|
o.Empty = &v
|
|
}
|
|
|
|
// GetForks returns the Forks field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetForks() int64 {
|
|
if o == nil || IsNil(o.Forks) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Forks
|
|
}
|
|
|
|
// GetForksOk returns a tuple with the Forks field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetForksOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Forks) {
|
|
return nil, false
|
|
}
|
|
return o.Forks, true
|
|
}
|
|
|
|
// HasForks returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasForks() bool {
|
|
if o != nil && !IsNil(o.Forks) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetForks gets a reference to the given int64 and assigns it to the Forks field.
|
|
func (o *GitActivityTotals) SetForks(v int64) {
|
|
o.Forks = &v
|
|
}
|
|
|
|
// GetLast returns the Last field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetLast() string {
|
|
if o == nil || IsNil(o.Last) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Last
|
|
}
|
|
|
|
// GetLastOk returns a tuple with the Last field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetLastOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Last) {
|
|
return nil, false
|
|
}
|
|
return o.Last, true
|
|
}
|
|
|
|
// HasLast returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasLast() bool {
|
|
if o != nil && !IsNil(o.Last) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLast gets a reference to the given string and assigns it to the Last field.
|
|
func (o *GitActivityTotals) SetLast(v string) {
|
|
o.Last = &v
|
|
}
|
|
|
|
// GetMergeMonths returns the MergeMonths field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetMergeMonths() []int64 {
|
|
if o == nil || IsNil(o.MergeMonths) {
|
|
var ret []int64
|
|
return ret
|
|
}
|
|
return o.MergeMonths
|
|
}
|
|
|
|
// GetMergeMonthsOk returns a tuple with the MergeMonths field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetMergeMonthsOk() ([]int64, bool) {
|
|
if o == nil || IsNil(o.MergeMonths) {
|
|
return nil, false
|
|
}
|
|
return o.MergeMonths, true
|
|
}
|
|
|
|
// HasMergeMonths returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasMergeMonths() bool {
|
|
if o != nil && !IsNil(o.MergeMonths) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMergeMonths gets a reference to the given []int64 and assigns it to the MergeMonths field.
|
|
func (o *GitActivityTotals) SetMergeMonths(v []int64) {
|
|
o.MergeMonths = v
|
|
}
|
|
|
|
// GetMerges returns the Merges field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetMerges() int64 {
|
|
if o == nil || IsNil(o.Merges) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Merges
|
|
}
|
|
|
|
// GetMergesOk returns a tuple with the Merges field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetMergesOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Merges) {
|
|
return nil, false
|
|
}
|
|
return o.Merges, true
|
|
}
|
|
|
|
// HasMerges returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasMerges() bool {
|
|
if o != nil && !IsNil(o.Merges) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMerges gets a reference to the given int64 and assigns it to the Merges field.
|
|
func (o *GitActivityTotals) SetMerges(v int64) {
|
|
o.Merges = &v
|
|
}
|
|
|
|
// GetMirrors returns the Mirrors field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetMirrors() int64 {
|
|
if o == nil || IsNil(o.Mirrors) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Mirrors
|
|
}
|
|
|
|
// GetMirrorsOk returns a tuple with the Mirrors field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetMirrorsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Mirrors) {
|
|
return nil, false
|
|
}
|
|
return o.Mirrors, true
|
|
}
|
|
|
|
// HasMirrors returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasMirrors() bool {
|
|
if o != nil && !IsNil(o.Mirrors) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMirrors gets a reference to the given int64 and assigns it to the Mirrors field.
|
|
func (o *GitActivityTotals) SetMirrors(v int64) {
|
|
o.Mirrors = &v
|
|
}
|
|
|
|
// GetMonths returns the Months field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetMonths() []int64 {
|
|
if o == nil || IsNil(o.Months) {
|
|
var ret []int64
|
|
return ret
|
|
}
|
|
return o.Months
|
|
}
|
|
|
|
// GetMonthsOk returns a tuple with the Months field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetMonthsOk() ([]int64, bool) {
|
|
if o == nil || IsNil(o.Months) {
|
|
return nil, false
|
|
}
|
|
return o.Months, true
|
|
}
|
|
|
|
// HasMonths returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasMonths() bool {
|
|
if o != nil && !IsNil(o.Months) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMonths gets a reference to the given []int64 and assigns it to the Months field.
|
|
func (o *GitActivityTotals) SetMonths(v []int64) {
|
|
o.Months = v
|
|
}
|
|
|
|
// GetOrgs returns the Orgs field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetOrgs() int64 {
|
|
if o == nil || IsNil(o.Orgs) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Orgs
|
|
}
|
|
|
|
// GetOrgsOk returns a tuple with the Orgs field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetOrgsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Orgs) {
|
|
return nil, false
|
|
}
|
|
return o.Orgs, true
|
|
}
|
|
|
|
// HasOrgs returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasOrgs() bool {
|
|
if o != nil && !IsNil(o.Orgs) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrgs gets a reference to the given int64 and assigns it to the Orgs field.
|
|
func (o *GitActivityTotals) SetOrgs(v int64) {
|
|
o.Orgs = &v
|
|
}
|
|
|
|
// GetOurs returns the Ours field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetOurs() int64 {
|
|
if o == nil || IsNil(o.Ours) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Ours
|
|
}
|
|
|
|
// GetOursOk returns a tuple with the Ours field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetOursOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Ours) {
|
|
return nil, false
|
|
}
|
|
return o.Ours, true
|
|
}
|
|
|
|
// HasOurs returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasOurs() bool {
|
|
if o != nil && !IsNil(o.Ours) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOurs gets a reference to the given int64 and assigns it to the Ours field.
|
|
func (o *GitActivityTotals) SetOurs(v int64) {
|
|
o.Ours = &v
|
|
}
|
|
|
|
// GetOursMonths returns the OursMonths field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetOursMonths() []int64 {
|
|
if o == nil || IsNil(o.OursMonths) {
|
|
var ret []int64
|
|
return ret
|
|
}
|
|
return o.OursMonths
|
|
}
|
|
|
|
// GetOursMonthsOk returns a tuple with the OursMonths field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetOursMonthsOk() ([]int64, bool) {
|
|
if o == nil || IsNil(o.OursMonths) {
|
|
return nil, false
|
|
}
|
|
return o.OursMonths, true
|
|
}
|
|
|
|
// HasOursMonths returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasOursMonths() bool {
|
|
if o != nil && !IsNil(o.OursMonths) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOursMonths gets a reference to the given []int64 and assigns it to the OursMonths field.
|
|
func (o *GitActivityTotals) SetOursMonths(v []int64) {
|
|
o.OursMonths = v
|
|
}
|
|
|
|
// GetOwn returns the Own field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetOwn() int64 {
|
|
if o == nil || IsNil(o.Own) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Own
|
|
}
|
|
|
|
// GetOwnOk returns a tuple with the Own field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetOwnOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Own) {
|
|
return nil, false
|
|
}
|
|
return o.Own, true
|
|
}
|
|
|
|
// HasOwn returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasOwn() bool {
|
|
if o != nil && !IsNil(o.Own) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwn gets a reference to the given int64 and assigns it to the Own field.
|
|
func (o *GitActivityTotals) SetOwn(v int64) {
|
|
o.Own = &v
|
|
}
|
|
|
|
// GetPeople returns the People field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetPeople() int64 {
|
|
if o == nil || IsNil(o.People) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.People
|
|
}
|
|
|
|
// GetPeopleOk returns a tuple with the People field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetPeopleOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.People) {
|
|
return nil, false
|
|
}
|
|
return o.People, true
|
|
}
|
|
|
|
// HasPeople returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasPeople() bool {
|
|
if o != nil && !IsNil(o.People) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPeople gets a reference to the given int64 and assigns it to the People field.
|
|
func (o *GitActivityTotals) SetPeople(v int64) {
|
|
o.People = &v
|
|
}
|
|
|
|
// GetPrivate returns the Private field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetPrivate() int64 {
|
|
if o == nil || IsNil(o.Private) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Private
|
|
}
|
|
|
|
// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetPrivateOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Private) {
|
|
return nil, false
|
|
}
|
|
return o.Private, true
|
|
}
|
|
|
|
// HasPrivate returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasPrivate() bool {
|
|
if o != nil && !IsNil(o.Private) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPrivate gets a reference to the given int64 and assigns it to the Private field.
|
|
func (o *GitActivityTotals) SetPrivate(v int64) {
|
|
o.Private = &v
|
|
}
|
|
|
|
// GetPublic returns the Public field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetPublic() int64 {
|
|
if o == nil || IsNil(o.Public) {
|
|
var ret int64
|
|
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 *GitActivityTotals) GetPublicOk() (*int64, 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 *GitActivityTotals) HasPublic() bool {
|
|
if o != nil && !IsNil(o.Public) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPublic gets a reference to the given int64 and assigns it to the Public field.
|
|
func (o *GitActivityTotals) SetPublic(v int64) {
|
|
o.Public = &v
|
|
}
|
|
|
|
// GetRepos returns the Repos field value if set, zero value otherwise.
|
|
func (o *GitActivityTotals) GetRepos() int64 {
|
|
if o == nil || IsNil(o.Repos) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Repos
|
|
}
|
|
|
|
// GetReposOk returns a tuple with the Repos field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityTotals) GetReposOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Repos) {
|
|
return nil, false
|
|
}
|
|
return o.Repos, true
|
|
}
|
|
|
|
// HasRepos returns a boolean if a field has been set.
|
|
func (o *GitActivityTotals) HasRepos() bool {
|
|
if o != nil && !IsNil(o.Repos) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRepos gets a reference to the given int64 and assigns it to the Repos field.
|
|
func (o *GitActivityTotals) SetRepos(v int64) {
|
|
o.Repos = &v
|
|
}
|
|
|
|
func (o GitActivityTotals) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o GitActivityTotals) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Active) {
|
|
toSerialize["active"] = o.Active
|
|
}
|
|
if !IsNil(o.Active30) {
|
|
toSerialize["active30"] = o.Active30
|
|
}
|
|
if !IsNil(o.Commits) {
|
|
toSerialize["commits"] = o.Commits
|
|
}
|
|
if !IsNil(o.Contributors) {
|
|
toSerialize["contributors"] = o.Contributors
|
|
}
|
|
if !IsNil(o.Empty) {
|
|
toSerialize["empty"] = o.Empty
|
|
}
|
|
if !IsNil(o.Forks) {
|
|
toSerialize["forks"] = o.Forks
|
|
}
|
|
if !IsNil(o.Last) {
|
|
toSerialize["last"] = o.Last
|
|
}
|
|
if !IsNil(o.MergeMonths) {
|
|
toSerialize["mergeMonths"] = o.MergeMonths
|
|
}
|
|
if !IsNil(o.Merges) {
|
|
toSerialize["merges"] = o.Merges
|
|
}
|
|
if !IsNil(o.Mirrors) {
|
|
toSerialize["mirrors"] = o.Mirrors
|
|
}
|
|
if !IsNil(o.Months) {
|
|
toSerialize["months"] = o.Months
|
|
}
|
|
if !IsNil(o.Orgs) {
|
|
toSerialize["orgs"] = o.Orgs
|
|
}
|
|
if !IsNil(o.Ours) {
|
|
toSerialize["ours"] = o.Ours
|
|
}
|
|
if !IsNil(o.OursMonths) {
|
|
toSerialize["oursMonths"] = o.OursMonths
|
|
}
|
|
if !IsNil(o.Own) {
|
|
toSerialize["own"] = o.Own
|
|
}
|
|
if !IsNil(o.People) {
|
|
toSerialize["people"] = o.People
|
|
}
|
|
if !IsNil(o.Private) {
|
|
toSerialize["private"] = o.Private
|
|
}
|
|
if !IsNil(o.Public) {
|
|
toSerialize["public"] = o.Public
|
|
}
|
|
if !IsNil(o.Repos) {
|
|
toSerialize["repos"] = o.Repos
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *GitActivityTotals) UnmarshalJSON(data []byte) (err error) {
|
|
varGitActivityTotals := _GitActivityTotals{}
|
|
|
|
err = json.Unmarshal(data, &varGitActivityTotals)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = GitActivityTotals(varGitActivityTotals)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "active")
|
|
delete(additionalProperties, "active30")
|
|
delete(additionalProperties, "commits")
|
|
delete(additionalProperties, "contributors")
|
|
delete(additionalProperties, "empty")
|
|
delete(additionalProperties, "forks")
|
|
delete(additionalProperties, "last")
|
|
delete(additionalProperties, "mergeMonths")
|
|
delete(additionalProperties, "merges")
|
|
delete(additionalProperties, "mirrors")
|
|
delete(additionalProperties, "months")
|
|
delete(additionalProperties, "orgs")
|
|
delete(additionalProperties, "ours")
|
|
delete(additionalProperties, "oursMonths")
|
|
delete(additionalProperties, "own")
|
|
delete(additionalProperties, "people")
|
|
delete(additionalProperties, "private")
|
|
delete(additionalProperties, "public")
|
|
delete(additionalProperties, "repos")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableGitActivityTotals struct {
|
|
value *GitActivityTotals
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGitActivityTotals) Get() *GitActivityTotals {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGitActivityTotals) Set(val *GitActivityTotals) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGitActivityTotals) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGitActivityTotals) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGitActivityTotals(val *GitActivityTotals) *NullableGitActivityTotals {
|
|
return &NullableGitActivityTotals{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGitActivityTotals) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGitActivityTotals) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|