152 lines
4.2 KiB
Go
152 lines
4.2 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"
|
|
)
|
|
|
|
// ProjectServiceSyncCatalogBody struct for ProjectServiceSyncCatalogBody
|
|
type ProjectServiceSyncCatalogBody struct {
|
|
ScmUrl *string `json:"scmUrl,omitempty"`
|
|
Branch *string `json:"branch,omitempty"`
|
|
}
|
|
|
|
// NewProjectServiceSyncCatalogBody instantiates a new ProjectServiceSyncCatalogBody 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 NewProjectServiceSyncCatalogBody() *ProjectServiceSyncCatalogBody {
|
|
this := ProjectServiceSyncCatalogBody{}
|
|
return &this
|
|
}
|
|
|
|
// NewProjectServiceSyncCatalogBodyWithDefaults instantiates a new ProjectServiceSyncCatalogBody 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 NewProjectServiceSyncCatalogBodyWithDefaults() *ProjectServiceSyncCatalogBody {
|
|
this := ProjectServiceSyncCatalogBody{}
|
|
return &this
|
|
}
|
|
|
|
// GetScmUrl returns the ScmUrl field value if set, zero value otherwise.
|
|
func (o *ProjectServiceSyncCatalogBody) 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 *ProjectServiceSyncCatalogBody) 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 *ProjectServiceSyncCatalogBody) 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 *ProjectServiceSyncCatalogBody) SetScmUrl(v string) {
|
|
o.ScmUrl = &v
|
|
}
|
|
|
|
// GetBranch returns the Branch field value if set, zero value otherwise.
|
|
func (o *ProjectServiceSyncCatalogBody) 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 *ProjectServiceSyncCatalogBody) 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 *ProjectServiceSyncCatalogBody) 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 *ProjectServiceSyncCatalogBody) SetBranch(v string) {
|
|
o.Branch = &v
|
|
}
|
|
|
|
func (o ProjectServiceSyncCatalogBody) 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 NullableProjectServiceSyncCatalogBody struct {
|
|
value *ProjectServiceSyncCatalogBody
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableProjectServiceSyncCatalogBody) Get() *ProjectServiceSyncCatalogBody {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableProjectServiceSyncCatalogBody) Set(val *ProjectServiceSyncCatalogBody) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableProjectServiceSyncCatalogBody) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableProjectServiceSyncCatalogBody) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableProjectServiceSyncCatalogBody(val *ProjectServiceSyncCatalogBody) *NullableProjectServiceSyncCatalogBody {
|
|
return &NullableProjectServiceSyncCatalogBody{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableProjectServiceSyncCatalogBody) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableProjectServiceSyncCatalogBody) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|