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

154 lines
5.0 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"
)
// BuildServiceRpmLookasideBatchImportBody struct for BuildServiceRpmLookasideBatchImportBody
type BuildServiceRpmLookasideBatchImportBody struct {
// Previously uploaded RPM tarball
LookasideBlobs *[]string `json:"lookasideBlobs,omitempty"`
// Overwrite existing RPMs even if NVRA is locked Useful for secure boot scenarios for example
ForceOverride *bool `json:"forceOverride,omitempty"`
}
// NewBuildServiceRpmLookasideBatchImportBody instantiates a new BuildServiceRpmLookasideBatchImportBody 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 NewBuildServiceRpmLookasideBatchImportBody() *BuildServiceRpmLookasideBatchImportBody {
this := BuildServiceRpmLookasideBatchImportBody{}
return &this
}
// NewBuildServiceRpmLookasideBatchImportBodyWithDefaults instantiates a new BuildServiceRpmLookasideBatchImportBody 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 NewBuildServiceRpmLookasideBatchImportBodyWithDefaults() *BuildServiceRpmLookasideBatchImportBody {
this := BuildServiceRpmLookasideBatchImportBody{}
return &this
}
// GetLookasideBlobs returns the LookasideBlobs field value if set, zero value otherwise.
func (o *BuildServiceRpmLookasideBatchImportBody) GetLookasideBlobs() []string {
if o == nil || o.LookasideBlobs == nil {
var ret []string
return ret
}
return *o.LookasideBlobs
}
// GetLookasideBlobsOk returns a tuple with the LookasideBlobs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceRpmLookasideBatchImportBody) GetLookasideBlobsOk() (*[]string, bool) {
if o == nil || o.LookasideBlobs == nil {
return nil, false
}
return o.LookasideBlobs, true
}
// HasLookasideBlobs returns a boolean if a field has been set.
func (o *BuildServiceRpmLookasideBatchImportBody) HasLookasideBlobs() bool {
if o != nil && o.LookasideBlobs != nil {
return true
}
return false
}
// SetLookasideBlobs gets a reference to the given []string and assigns it to the LookasideBlobs field.
func (o *BuildServiceRpmLookasideBatchImportBody) SetLookasideBlobs(v []string) {
o.LookasideBlobs = &v
}
// GetForceOverride returns the ForceOverride field value if set, zero value otherwise.
func (o *BuildServiceRpmLookasideBatchImportBody) GetForceOverride() bool {
if o == nil || o.ForceOverride == nil {
var ret bool
return ret
}
return *o.ForceOverride
}
// GetForceOverrideOk returns a tuple with the ForceOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BuildServiceRpmLookasideBatchImportBody) GetForceOverrideOk() (*bool, bool) {
if o == nil || o.ForceOverride == nil {
return nil, false
}
return o.ForceOverride, true
}
// HasForceOverride returns a boolean if a field has been set.
func (o *BuildServiceRpmLookasideBatchImportBody) HasForceOverride() bool {
if o != nil && o.ForceOverride != nil {
return true
}
return false
}
// SetForceOverride gets a reference to the given bool and assigns it to the ForceOverride field.
func (o *BuildServiceRpmLookasideBatchImportBody) SetForceOverride(v bool) {
o.ForceOverride = &v
}
func (o BuildServiceRpmLookasideBatchImportBody) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.LookasideBlobs != nil {
toSerialize["lookasideBlobs"] = o.LookasideBlobs
}
if o.ForceOverride != nil {
toSerialize["forceOverride"] = o.ForceOverride
}
return json.Marshal(toSerialize)
}
type NullableBuildServiceRpmLookasideBatchImportBody struct {
value *BuildServiceRpmLookasideBatchImportBody
isSet bool
}
func (v NullableBuildServiceRpmLookasideBatchImportBody) Get() *BuildServiceRpmLookasideBatchImportBody {
return v.value
}
func (v *NullableBuildServiceRpmLookasideBatchImportBody) Set(val *BuildServiceRpmLookasideBatchImportBody) {
v.value = val
v.isSet = true
}
func (v NullableBuildServiceRpmLookasideBatchImportBody) IsSet() bool {
return v.isSet
}
func (v *NullableBuildServiceRpmLookasideBatchImportBody) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBuildServiceRpmLookasideBatchImportBody(val *BuildServiceRpmLookasideBatchImportBody) *NullableBuildServiceRpmLookasideBatchImportBody {
return &NullableBuildServiceRpmLookasideBatchImportBody{value: val, isSet: true}
}
func (v NullableBuildServiceRpmLookasideBatchImportBody) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBuildServiceRpmLookasideBatchImportBody) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}