mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-30 05:50:56 +00:00
496b60ba44
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
115 lines
2.9 KiB
Go
115 lines
2.9 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"
|
|
)
|
|
|
|
// InlineObject1 struct for InlineObject1
|
|
type InlineObject1 struct {
|
|
Builds *[]V1SubmitBuildRequest `json:"builds,omitempty"`
|
|
}
|
|
|
|
// NewInlineObject1 instantiates a new InlineObject1 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 NewInlineObject1() *InlineObject1 {
|
|
this := InlineObject1{}
|
|
return &this
|
|
}
|
|
|
|
// NewInlineObject1WithDefaults instantiates a new InlineObject1 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 NewInlineObject1WithDefaults() *InlineObject1 {
|
|
this := InlineObject1{}
|
|
return &this
|
|
}
|
|
|
|
// GetBuilds returns the Builds field value if set, zero value otherwise.
|
|
func (o *InlineObject1) GetBuilds() []V1SubmitBuildRequest {
|
|
if o == nil || o.Builds == nil {
|
|
var ret []V1SubmitBuildRequest
|
|
return ret
|
|
}
|
|
return *o.Builds
|
|
}
|
|
|
|
// GetBuildsOk returns a tuple with the Builds field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *InlineObject1) GetBuildsOk() (*[]V1SubmitBuildRequest, bool) {
|
|
if o == nil || o.Builds == nil {
|
|
return nil, false
|
|
}
|
|
return o.Builds, true
|
|
}
|
|
|
|
// HasBuilds returns a boolean if a field has been set.
|
|
func (o *InlineObject1) HasBuilds() bool {
|
|
if o != nil && o.Builds != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBuilds gets a reference to the given []V1SubmitBuildRequest and assigns it to the Builds field.
|
|
func (o *InlineObject1) SetBuilds(v []V1SubmitBuildRequest) {
|
|
o.Builds = &v
|
|
}
|
|
|
|
func (o InlineObject1) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Builds != nil {
|
|
toSerialize["builds"] = o.Builds
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableInlineObject1 struct {
|
|
value *InlineObject1
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableInlineObject1) Get() *InlineObject1 {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableInlineObject1) Set(val *InlineObject1) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableInlineObject1) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableInlineObject1) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableInlineObject1(val *InlineObject1) *NullableInlineObject1 {
|
|
return &NullableInlineObject1{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableInlineObject1) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableInlineObject1) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|