mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-24 03:28:28 +00:00
496b60ba44
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
154 lines
4.1 KiB
Go
154 lines
4.1 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"
|
|
)
|
|
|
|
// InlineObject4 struct for InlineObject4
|
|
type InlineObject4 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"`
|
|
}
|
|
|
|
// NewInlineObject4 instantiates a new InlineObject4 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 NewInlineObject4() *InlineObject4 {
|
|
this := InlineObject4{}
|
|
return &this
|
|
}
|
|
|
|
// NewInlineObject4WithDefaults instantiates a new InlineObject4 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 NewInlineObject4WithDefaults() *InlineObject4 {
|
|
this := InlineObject4{}
|
|
return &this
|
|
}
|
|
|
|
// GetLookasideBlobs returns the LookasideBlobs field value if set, zero value otherwise.
|
|
func (o *InlineObject4) 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 *InlineObject4) 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 *InlineObject4) 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 *InlineObject4) SetLookasideBlobs(v []string) {
|
|
o.LookasideBlobs = &v
|
|
}
|
|
|
|
// GetForceOverride returns the ForceOverride field value if set, zero value otherwise.
|
|
func (o *InlineObject4) 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 *InlineObject4) 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 *InlineObject4) 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 *InlineObject4) SetForceOverride(v bool) {
|
|
o.ForceOverride = &v
|
|
}
|
|
|
|
func (o InlineObject4) 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 NullableInlineObject4 struct {
|
|
value *InlineObject4
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableInlineObject4) Get() *InlineObject4 {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableInlineObject4) Set(val *InlineObject4) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableInlineObject4) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableInlineObject4) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableInlineObject4(val *InlineObject4) *NullableInlineObject4 {
|
|
return &NullableInlineObject4{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableInlineObject4) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableInlineObject4) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|