mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-14 09:51:22 +00:00
496b60ba44
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
152 lines
3.7 KiB
Go
152 lines
3.7 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"
|
|
)
|
|
|
|
// InlineObject5 struct for InlineObject5
|
|
type InlineObject5 struct {
|
|
ScmUrl *string `json:"scmUrl,omitempty"`
|
|
Branch *string `json:"branch,omitempty"`
|
|
}
|
|
|
|
// NewInlineObject5 instantiates a new InlineObject5 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 NewInlineObject5() *InlineObject5 {
|
|
this := InlineObject5{}
|
|
return &this
|
|
}
|
|
|
|
// NewInlineObject5WithDefaults instantiates a new InlineObject5 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 NewInlineObject5WithDefaults() *InlineObject5 {
|
|
this := InlineObject5{}
|
|
return &this
|
|
}
|
|
|
|
// GetScmUrl returns the ScmUrl field value if set, zero value otherwise.
|
|
func (o *InlineObject5) GetScmUrl() string {
|
|
if o == nil || o.ScmUrl == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ScmUrl
|
|
}
|
|
|
|
// GetScmUrlOk returns a tuple with the ScmUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *InlineObject5) GetScmUrlOk() (*string, bool) {
|
|
if o == nil || o.ScmUrl == nil {
|
|
return nil, false
|
|
}
|
|
return o.ScmUrl, true
|
|
}
|
|
|
|
// HasScmUrl returns a boolean if a field has been set.
|
|
func (o *InlineObject5) HasScmUrl() bool {
|
|
if o != nil && o.ScmUrl != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetScmUrl gets a reference to the given string and assigns it to the ScmUrl field.
|
|
func (o *InlineObject5) SetScmUrl(v string) {
|
|
o.ScmUrl = &v
|
|
}
|
|
|
|
// GetBranch returns the Branch field value if set, zero value otherwise.
|
|
func (o *InlineObject5) GetBranch() string {
|
|
if o == nil || o.Branch == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Branch
|
|
}
|
|
|
|
// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *InlineObject5) GetBranchOk() (*string, bool) {
|
|
if o == nil || o.Branch == nil {
|
|
return nil, false
|
|
}
|
|
return o.Branch, true
|
|
}
|
|
|
|
// HasBranch returns a boolean if a field has been set.
|
|
func (o *InlineObject5) HasBranch() bool {
|
|
if o != nil && o.Branch != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBranch gets a reference to the given string and assigns it to the Branch field.
|
|
func (o *InlineObject5) SetBranch(v string) {
|
|
o.Branch = &v
|
|
}
|
|
|
|
func (o InlineObject5) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.ScmUrl != nil {
|
|
toSerialize["scmUrl"] = o.ScmUrl
|
|
}
|
|
if o.Branch != nil {
|
|
toSerialize["branch"] = o.Branch
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableInlineObject5 struct {
|
|
value *InlineObject5
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableInlineObject5) Get() *InlineObject5 {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableInlineObject5) Set(val *InlineObject5) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableInlineObject5) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableInlineObject5) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableInlineObject5(val *InlineObject5) *NullableInlineObject5 {
|
|
return &NullableInlineObject5{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableInlineObject5) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableInlineObject5) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|