mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
193 lines
5.5 KiB
Go
193 lines
5.5 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 ProviderGithubPagesUpdatedOut type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ProviderGithubPagesUpdatedOut{}
|
|
|
|
// ProviderGithubPagesUpdatedOut struct for ProviderGithubPagesUpdatedOut
|
|
type ProviderGithubPagesUpdatedOut struct {
|
|
// Repo is the repository that was updated.
|
|
Repo *string `json:"repo,omitempty"`
|
|
// Updated is always true — a failure is an HTTP error, never this shape.
|
|
Updated *bool `json:"updated,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _ProviderGithubPagesUpdatedOut ProviderGithubPagesUpdatedOut
|
|
|
|
// NewProviderGithubPagesUpdatedOut instantiates a new ProviderGithubPagesUpdatedOut 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 NewProviderGithubPagesUpdatedOut() *ProviderGithubPagesUpdatedOut {
|
|
this := ProviderGithubPagesUpdatedOut{}
|
|
return &this
|
|
}
|
|
|
|
// NewProviderGithubPagesUpdatedOutWithDefaults instantiates a new ProviderGithubPagesUpdatedOut 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 NewProviderGithubPagesUpdatedOutWithDefaults() *ProviderGithubPagesUpdatedOut {
|
|
this := ProviderGithubPagesUpdatedOut{}
|
|
return &this
|
|
}
|
|
|
|
// GetRepo returns the Repo field value if set, zero value otherwise.
|
|
func (o *ProviderGithubPagesUpdatedOut) GetRepo() string {
|
|
if o == nil || IsNil(o.Repo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Repo
|
|
}
|
|
|
|
// GetRepoOk returns a tuple with the Repo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProviderGithubPagesUpdatedOut) GetRepoOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Repo) {
|
|
return nil, false
|
|
}
|
|
return o.Repo, true
|
|
}
|
|
|
|
// HasRepo returns a boolean if a field has been set.
|
|
func (o *ProviderGithubPagesUpdatedOut) HasRepo() bool {
|
|
if o != nil && !IsNil(o.Repo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRepo gets a reference to the given string and assigns it to the Repo field.
|
|
func (o *ProviderGithubPagesUpdatedOut) SetRepo(v string) {
|
|
o.Repo = &v
|
|
}
|
|
|
|
// GetUpdated returns the Updated field value if set, zero value otherwise.
|
|
func (o *ProviderGithubPagesUpdatedOut) GetUpdated() bool {
|
|
if o == nil || IsNil(o.Updated) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Updated
|
|
}
|
|
|
|
// GetUpdatedOk returns a tuple with the Updated field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProviderGithubPagesUpdatedOut) GetUpdatedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Updated) {
|
|
return nil, false
|
|
}
|
|
return o.Updated, true
|
|
}
|
|
|
|
// HasUpdated returns a boolean if a field has been set.
|
|
func (o *ProviderGithubPagesUpdatedOut) HasUpdated() bool {
|
|
if o != nil && !IsNil(o.Updated) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdated gets a reference to the given bool and assigns it to the Updated field.
|
|
func (o *ProviderGithubPagesUpdatedOut) SetUpdated(v bool) {
|
|
o.Updated = &v
|
|
}
|
|
|
|
func (o ProviderGithubPagesUpdatedOut) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o ProviderGithubPagesUpdatedOut) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Repo) {
|
|
toSerialize["repo"] = o.Repo
|
|
}
|
|
if !IsNil(o.Updated) {
|
|
toSerialize["updated"] = o.Updated
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *ProviderGithubPagesUpdatedOut) UnmarshalJSON(data []byte) (err error) {
|
|
varProviderGithubPagesUpdatedOut := _ProviderGithubPagesUpdatedOut{}
|
|
|
|
err = json.Unmarshal(data, &varProviderGithubPagesUpdatedOut)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = ProviderGithubPagesUpdatedOut(varProviderGithubPagesUpdatedOut)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "repo")
|
|
delete(additionalProperties, "updated")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableProviderGithubPagesUpdatedOut struct {
|
|
value *ProviderGithubPagesUpdatedOut
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableProviderGithubPagesUpdatedOut) Get() *ProviderGithubPagesUpdatedOut {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableProviderGithubPagesUpdatedOut) Set(val *ProviderGithubPagesUpdatedOut) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableProviderGithubPagesUpdatedOut) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableProviderGithubPagesUpdatedOut) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableProviderGithubPagesUpdatedOut(val *ProviderGithubPagesUpdatedOut) *NullableProviderGithubPagesUpdatedOut {
|
|
return &NullableProviderGithubPagesUpdatedOut{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableProviderGithubPagesUpdatedOut) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableProviderGithubPagesUpdatedOut) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|