peridot/vendor/openapi.peridot.resf.org/peridotopenapi/model_build_service_submit_...

368 lines
10 KiB
Go

/*
* peridot/proto/v1/batch.proto
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: version not set
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package peridotopenapi
import (
"encoding/json"
)
// BuildServiceSubmitBuildBody struct for BuildServiceSubmitBuildBody
type BuildServiceSubmitBuildBody struct {
PackageName *string `json:"packageName,omitempty"`
PackageId *string `json:"packageId,omitempty"`
ScmHash *string `json:"scmHash,omitempty"`
DisableChecks *bool `json:"disableChecks,omitempty"`
Branches *[]string `json:"branches,omitempty"`
ModuleVariant *bool `json:"moduleVariant,omitempty"`
SideNvrs *[]string `json:"sideNvrs,omitempty"`
SetInactive *bool `json:"setInactive,omitempty"`
}
// NewBuildServiceSubmitBuildBody instantiates a new BuildServiceSubmitBuildBody 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 NewBuildServiceSubmitBuildBody() *BuildServiceSubmitBuildBody {
this := BuildServiceSubmitBuildBody{}
return &this
}
// NewBuildServiceSubmitBuildBodyWithDefaults instantiates a new BuildServiceSubmitBuildBody 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 NewBuildServiceSubmitBuildBodyWithDefaults() *BuildServiceSubmitBuildBody {
this := BuildServiceSubmitBuildBody{}
return &this
}
// GetPackageName returns the PackageName field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetPackageName() string {
if o == nil || o.PackageName == nil {
var ret string
return ret
}
return *o.PackageName
}
// GetPackageNameOk returns a tuple with the PackageName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceSubmitBuildBody) GetPackageNameOk() (*string, bool) {
if o == nil || o.PackageName == nil {
return nil, false
}
return o.PackageName, true
}
// HasPackageName returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasPackageName() bool {
if o != nil && o.PackageName != nil {
return true
}
return false
}
// SetPackageName gets a reference to the given string and assigns it to the PackageName field.
func (o *BuildServiceSubmitBuildBody) SetPackageName(v string) {
o.PackageName = &v
}
// GetPackageId returns the PackageId field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetPackageId() string {
if o == nil || o.PackageId == nil {
var ret string
return ret
}
return *o.PackageId
}
// GetPackageIdOk returns a tuple with the PackageId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceSubmitBuildBody) GetPackageIdOk() (*string, bool) {
if o == nil || o.PackageId == nil {
return nil, false
}
return o.PackageId, true
}
// HasPackageId returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasPackageId() bool {
if o != nil && o.PackageId != nil {
return true
}
return false
}
// SetPackageId gets a reference to the given string and assigns it to the PackageId field.
func (o *BuildServiceSubmitBuildBody) SetPackageId(v string) {
o.PackageId = &v
}
// GetScmHash returns the ScmHash field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetScmHash() string {
if o == nil || o.ScmHash == nil {
var ret string
return ret
}
return *o.ScmHash
}
// GetScmHashOk returns a tuple with the ScmHash field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceSubmitBuildBody) GetScmHashOk() (*string, bool) {
if o == nil || o.ScmHash == nil {
return nil, false
}
return o.ScmHash, true
}
// HasScmHash returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasScmHash() bool {
if o != nil && o.ScmHash != nil {
return true
}
return false
}
// SetScmHash gets a reference to the given string and assigns it to the ScmHash field.
func (o *BuildServiceSubmitBuildBody) SetScmHash(v string) {
o.ScmHash = &v
}
// GetDisableChecks returns the DisableChecks field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetDisableChecks() bool {
if o == nil || o.DisableChecks == nil {
var ret bool
return ret
}
return *o.DisableChecks
}
// GetDisableChecksOk returns a tuple with the DisableChecks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceSubmitBuildBody) GetDisableChecksOk() (*bool, bool) {
if o == nil || o.DisableChecks == nil {
return nil, false
}
return o.DisableChecks, true
}
// HasDisableChecks returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasDisableChecks() bool {
if o != nil && o.DisableChecks != nil {
return true
}
return false
}
// SetDisableChecks gets a reference to the given bool and assigns it to the DisableChecks field.
func (o *BuildServiceSubmitBuildBody) SetDisableChecks(v bool) {
o.DisableChecks = &v
}
// GetBranches returns the Branches field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetBranches() []string {
if o == nil || o.Branches == nil {
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 *BuildServiceSubmitBuildBody) GetBranchesOk() (*[]string, bool) {
if o == nil || o.Branches == nil {
return nil, false
}
return o.Branches, true
}
// HasBranches returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasBranches() bool {
if o != nil && o.Branches != nil {
return true
}
return false
}
// SetBranches gets a reference to the given []string and assigns it to the Branches field.
func (o *BuildServiceSubmitBuildBody) SetBranches(v []string) {
o.Branches = &v
}
// GetModuleVariant returns the ModuleVariant field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetModuleVariant() bool {
if o == nil || o.ModuleVariant == nil {
var ret bool
return ret
}
return *o.ModuleVariant
}
// GetModuleVariantOk returns a tuple with the ModuleVariant field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceSubmitBuildBody) GetModuleVariantOk() (*bool, bool) {
if o == nil || o.ModuleVariant == nil {
return nil, false
}
return o.ModuleVariant, true
}
// HasModuleVariant returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasModuleVariant() bool {
if o != nil && o.ModuleVariant != nil {
return true
}
return false
}
// SetModuleVariant gets a reference to the given bool and assigns it to the ModuleVariant field.
func (o *BuildServiceSubmitBuildBody) SetModuleVariant(v bool) {
o.ModuleVariant = &v
}
// GetSideNvrs returns the SideNvrs field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetSideNvrs() []string {
if o == nil || o.SideNvrs == nil {
var ret []string
return ret
}
return *o.SideNvrs
}
// GetSideNvrsOk returns a tuple with the SideNvrs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceSubmitBuildBody) GetSideNvrsOk() (*[]string, bool) {
if o == nil || o.SideNvrs == nil {
return nil, false
}
return o.SideNvrs, true
}
// HasSideNvrs returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasSideNvrs() bool {
if o != nil && o.SideNvrs != nil {
return true
}
return false
}
// SetSideNvrs gets a reference to the given []string and assigns it to the SideNvrs field.
func (o *BuildServiceSubmitBuildBody) SetSideNvrs(v []string) {
o.SideNvrs = &v
}
// GetSetInactive returns the SetInactive field value if set, zero value otherwise.
func (o *BuildServiceSubmitBuildBody) GetSetInactive() bool {
if o == nil || o.SetInactive == nil {
var ret bool
return ret
}
return *o.SetInactive
}
// GetSetInactiveOk returns a tuple with the SetInactive field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceSubmitBuildBody) GetSetInactiveOk() (*bool, bool) {
if o == nil || o.SetInactive == nil {
return nil, false
}
return o.SetInactive, true
}
// HasSetInactive returns a boolean if a field has been set.
func (o *BuildServiceSubmitBuildBody) HasSetInactive() bool {
if o != nil && o.SetInactive != nil {
return true
}
return false
}
// SetSetInactive gets a reference to the given bool and assigns it to the SetInactive field.
func (o *BuildServiceSubmitBuildBody) SetSetInactive(v bool) {
o.SetInactive = &v
}
func (o BuildServiceSubmitBuildBody) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.PackageName != nil {
toSerialize["packageName"] = o.PackageName
}
if o.PackageId != nil {
toSerialize["packageId"] = o.PackageId
}
if o.ScmHash != nil {
toSerialize["scmHash"] = o.ScmHash
}
if o.DisableChecks != nil {
toSerialize["disableChecks"] = o.DisableChecks
}
if o.Branches != nil {
toSerialize["branches"] = o.Branches
}
if o.ModuleVariant != nil {
toSerialize["moduleVariant"] = o.ModuleVariant
}
if o.SideNvrs != nil {
toSerialize["sideNvrs"] = o.SideNvrs
}
if o.SetInactive != nil {
toSerialize["setInactive"] = o.SetInactive
}
return json.Marshal(toSerialize)
}
type NullableBuildServiceSubmitBuildBody struct {
value *BuildServiceSubmitBuildBody
isSet bool
}
func (v NullableBuildServiceSubmitBuildBody) Get() *BuildServiceSubmitBuildBody {
return v.value
}
func (v *NullableBuildServiceSubmitBuildBody) Set(val *BuildServiceSubmitBuildBody) {
v.value = val
v.isSet = true
}
func (v NullableBuildServiceSubmitBuildBody) IsSet() bool {
return v.isSet
}
func (v *NullableBuildServiceSubmitBuildBody) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBuildServiceSubmitBuildBody(val *BuildServiceSubmitBuildBody) *NullableBuildServiceSubmitBuildBody {
return &NullableBuildServiceSubmitBuildBody{value: val, isSet: true}
}
func (v NullableBuildServiceSubmitBuildBody) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBuildServiceSubmitBuildBody) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}