mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-20 17:58:29 +00:00
116 lines
2.9 KiB
Go
116 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"
|
|
)
|
|
|
|
// InlineObject9 struct for InlineObject9
|
|
type InlineObject9 struct {
|
|
SrcProjectId *string `json:"srcProjectId,omitempty"`
|
|
}
|
|
|
|
// NewInlineObject9 instantiates a new InlineObject9 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 NewInlineObject9() *InlineObject9 {
|
|
this := InlineObject9{}
|
|
return &this
|
|
}
|
|
|
|
// NewInlineObject9WithDefaults instantiates a new InlineObject9 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 NewInlineObject9WithDefaults() *InlineObject9 {
|
|
this := InlineObject9{}
|
|
return &this
|
|
}
|
|
|
|
// GetSrcProjectId returns the SrcProjectId field value if set, zero value otherwise.
|
|
func (o *InlineObject9) GetSrcProjectId() string {
|
|
if o == nil || o.SrcProjectId == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SrcProjectId
|
|
}
|
|
|
|
// GetSrcProjectIdOk returns a tuple with the SrcProjectId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *InlineObject9) GetSrcProjectIdOk() (*string, bool) {
|
|
if o == nil || o.SrcProjectId == nil {
|
|
return nil, false
|
|
}
|
|
return o.SrcProjectId, true
|
|
}
|
|
|
|
// HasSrcProjectId returns a boolean if a field has been set.
|
|
func (o *InlineObject9) HasSrcProjectId() bool {
|
|
if o != nil && o.SrcProjectId != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSrcProjectId gets a reference to the given string and assigns it to the SrcProjectId field.
|
|
func (o *InlineObject9) SetSrcProjectId(v string) {
|
|
o.SrcProjectId = &v
|
|
}
|
|
|
|
func (o InlineObject9) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.SrcProjectId != nil {
|
|
toSerialize["srcProjectId"] = o.SrcProjectId
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableInlineObject9 struct {
|
|
value *InlineObject9
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableInlineObject9) Get() *InlineObject9 {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableInlineObject9) Set(val *InlineObject9) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableInlineObject9) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableInlineObject9) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableInlineObject9(val *InlineObject9) *NullableInlineObject9 {
|
|
return &NullableInlineObject9{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableInlineObject9) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableInlineObject9) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|