mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
877 lines
23 KiB
Go
877 lines
23 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 GitActivityOrg type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GitActivityOrg{}
|
|
|
|
// GitActivityOrg struct for GitActivityOrg
|
|
type GitActivityOrg 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"`
|
|
// Forge is the org's page on the forge.
|
|
Forge *string `json:"forge,omitempty"`
|
|
// GitHub is the org's page on GitHub; empty for a namespace only the forge has.
|
|
Github *string `json:"github,omitempty"`
|
|
// Group is the group that owns it.
|
|
Group *string `json:"group,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"`
|
|
// Name is the org, as GitHub and the forge both spell it.
|
|
Name *string `json:"name,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"`
|
|
// 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 _GitActivityOrg GitActivityOrg
|
|
|
|
// NewGitActivityOrg instantiates a new GitActivityOrg 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 NewGitActivityOrg() *GitActivityOrg {
|
|
this := GitActivityOrg{}
|
|
return &this
|
|
}
|
|
|
|
// NewGitActivityOrgWithDefaults instantiates a new GitActivityOrg 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 NewGitActivityOrgWithDefaults() *GitActivityOrg {
|
|
this := GitActivityOrg{}
|
|
return &this
|
|
}
|
|
|
|
// GetActive returns the Active field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetActive(v int64) {
|
|
o.Active = &v
|
|
}
|
|
|
|
// GetActive30 returns the Active30 field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetActive30(v int64) {
|
|
o.Active30 = &v
|
|
}
|
|
|
|
// GetCommits returns the Commits field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetCommits(v int64) {
|
|
o.Commits = &v
|
|
}
|
|
|
|
// GetContributors returns the Contributors field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetContributors(v int64) {
|
|
o.Contributors = &v
|
|
}
|
|
|
|
// GetEmpty returns the Empty field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetEmpty(v int64) {
|
|
o.Empty = &v
|
|
}
|
|
|
|
// GetForge returns the Forge field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) GetForge() string {
|
|
if o == nil || IsNil(o.Forge) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Forge
|
|
}
|
|
|
|
// GetForgeOk returns a tuple with the Forge field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityOrg) GetForgeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Forge) {
|
|
return nil, false
|
|
}
|
|
return o.Forge, true
|
|
}
|
|
|
|
// HasForge returns a boolean if a field has been set.
|
|
func (o *GitActivityOrg) HasForge() bool {
|
|
if o != nil && !IsNil(o.Forge) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetForge gets a reference to the given string and assigns it to the Forge field.
|
|
func (o *GitActivityOrg) SetForge(v string) {
|
|
o.Forge = &v
|
|
}
|
|
|
|
// GetGithub returns the Github field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) GetGithub() string {
|
|
if o == nil || IsNil(o.Github) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Github
|
|
}
|
|
|
|
// GetGithubOk returns a tuple with the Github field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityOrg) GetGithubOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Github) {
|
|
return nil, false
|
|
}
|
|
return o.Github, true
|
|
}
|
|
|
|
// HasGithub returns a boolean if a field has been set.
|
|
func (o *GitActivityOrg) HasGithub() bool {
|
|
if o != nil && !IsNil(o.Github) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGithub gets a reference to the given string and assigns it to the Github field.
|
|
func (o *GitActivityOrg) SetGithub(v string) {
|
|
o.Github = &v
|
|
}
|
|
|
|
// GetGroup returns the Group field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) GetGroup() string {
|
|
if o == nil || IsNil(o.Group) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Group
|
|
}
|
|
|
|
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GitActivityOrg) GetGroupOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Group) {
|
|
return nil, false
|
|
}
|
|
return o.Group, true
|
|
}
|
|
|
|
// HasGroup returns a boolean if a field has been set.
|
|
func (o *GitActivityOrg) HasGroup() bool {
|
|
if o != nil && !IsNil(o.Group) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroup gets a reference to the given string and assigns it to the Group field.
|
|
func (o *GitActivityOrg) SetGroup(v string) {
|
|
o.Group = &v
|
|
}
|
|
|
|
// GetLast returns the Last field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetLast(v string) {
|
|
o.Last = &v
|
|
}
|
|
|
|
// GetMergeMonths returns the MergeMonths field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetMergeMonths(v []int64) {
|
|
o.MergeMonths = v
|
|
}
|
|
|
|
// GetMerges returns the Merges field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetMerges(v int64) {
|
|
o.Merges = &v
|
|
}
|
|
|
|
// GetMirrors returns the Mirrors field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetMirrors(v int64) {
|
|
o.Mirrors = &v
|
|
}
|
|
|
|
// GetMonths returns the Months field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetMonths(v []int64) {
|
|
o.Months = v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOurs returns the Ours field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetOurs(v int64) {
|
|
o.Ours = &v
|
|
}
|
|
|
|
// GetOursMonths returns the OursMonths field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetOursMonths(v []int64) {
|
|
o.OursMonths = v
|
|
}
|
|
|
|
// GetPeople returns the People field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetPeople(v int64) {
|
|
o.People = &v
|
|
}
|
|
|
|
// GetPrivate returns the Private field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetPrivate(v int64) {
|
|
o.Private = &v
|
|
}
|
|
|
|
// GetPublic returns the Public field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetPublic(v int64) {
|
|
o.Public = &v
|
|
}
|
|
|
|
// GetRepos returns the Repos field value if set, zero value otherwise.
|
|
func (o *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) 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 *GitActivityOrg) SetRepos(v int64) {
|
|
o.Repos = &v
|
|
}
|
|
|
|
func (o GitActivityOrg) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o GitActivityOrg) 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.Forge) {
|
|
toSerialize["forge"] = o.Forge
|
|
}
|
|
if !IsNil(o.Github) {
|
|
toSerialize["github"] = o.Github
|
|
}
|
|
if !IsNil(o.Group) {
|
|
toSerialize["group"] = o.Group
|
|
}
|
|
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.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Ours) {
|
|
toSerialize["ours"] = o.Ours
|
|
}
|
|
if !IsNil(o.OursMonths) {
|
|
toSerialize["oursMonths"] = o.OursMonths
|
|
}
|
|
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 *GitActivityOrg) UnmarshalJSON(data []byte) (err error) {
|
|
varGitActivityOrg := _GitActivityOrg{}
|
|
|
|
err = json.Unmarshal(data, &varGitActivityOrg)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = GitActivityOrg(varGitActivityOrg)
|
|
|
|
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, "forge")
|
|
delete(additionalProperties, "github")
|
|
delete(additionalProperties, "group")
|
|
delete(additionalProperties, "last")
|
|
delete(additionalProperties, "mergeMonths")
|
|
delete(additionalProperties, "merges")
|
|
delete(additionalProperties, "mirrors")
|
|
delete(additionalProperties, "months")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "ours")
|
|
delete(additionalProperties, "oursMonths")
|
|
delete(additionalProperties, "people")
|
|
delete(additionalProperties, "private")
|
|
delete(additionalProperties, "public")
|
|
delete(additionalProperties, "repos")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableGitActivityOrg struct {
|
|
value *GitActivityOrg
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGitActivityOrg) Get() *GitActivityOrg {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGitActivityOrg) Set(val *GitActivityOrg) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGitActivityOrg) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGitActivityOrg) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGitActivityOrg(val *GitActivityOrg) *NullableGitActivityOrg {
|
|
return &NullableGitActivityOrg{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGitActivityOrg) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGitActivityOrg) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|