mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-09-27 14:34:09 +00:00
496b60ba44
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
224 lines
5.7 KiB
Go
224 lines
5.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"
|
|
)
|
|
|
|
// V1ListImportsResponse struct for V1ListImportsResponse
|
|
type V1ListImportsResponse struct {
|
|
Imports *[]V1Import `json:"imports,omitempty"`
|
|
Total *string `json:"total,omitempty"`
|
|
Size *int32 `json:"size,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
}
|
|
|
|
// NewV1ListImportsResponse instantiates a new V1ListImportsResponse 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 NewV1ListImportsResponse() *V1ListImportsResponse {
|
|
this := V1ListImportsResponse{}
|
|
return &this
|
|
}
|
|
|
|
// NewV1ListImportsResponseWithDefaults instantiates a new V1ListImportsResponse 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 NewV1ListImportsResponseWithDefaults() *V1ListImportsResponse {
|
|
this := V1ListImportsResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetImports returns the Imports field value if set, zero value otherwise.
|
|
func (o *V1ListImportsResponse) GetImports() []V1Import {
|
|
if o == nil || o.Imports == nil {
|
|
var ret []V1Import
|
|
return ret
|
|
}
|
|
return *o.Imports
|
|
}
|
|
|
|
// GetImportsOk returns a tuple with the Imports field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ListImportsResponse) GetImportsOk() (*[]V1Import, bool) {
|
|
if o == nil || o.Imports == nil {
|
|
return nil, false
|
|
}
|
|
return o.Imports, true
|
|
}
|
|
|
|
// HasImports returns a boolean if a field has been set.
|
|
func (o *V1ListImportsResponse) HasImports() bool {
|
|
if o != nil && o.Imports != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetImports gets a reference to the given []V1Import and assigns it to the Imports field.
|
|
func (o *V1ListImportsResponse) SetImports(v []V1Import) {
|
|
o.Imports = &v
|
|
}
|
|
|
|
// GetTotal returns the Total field value if set, zero value otherwise.
|
|
func (o *V1ListImportsResponse) GetTotal() string {
|
|
if o == nil || o.Total == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Total
|
|
}
|
|
|
|
// GetTotalOk returns a tuple with the Total field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ListImportsResponse) GetTotalOk() (*string, bool) {
|
|
if o == nil || o.Total == nil {
|
|
return nil, false
|
|
}
|
|
return o.Total, true
|
|
}
|
|
|
|
// HasTotal returns a boolean if a field has been set.
|
|
func (o *V1ListImportsResponse) HasTotal() bool {
|
|
if o != nil && o.Total != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTotal gets a reference to the given string and assigns it to the Total field.
|
|
func (o *V1ListImportsResponse) SetTotal(v string) {
|
|
o.Total = &v
|
|
}
|
|
|
|
// GetSize returns the Size field value if set, zero value otherwise.
|
|
func (o *V1ListImportsResponse) GetSize() int32 {
|
|
if o == nil || o.Size == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Size
|
|
}
|
|
|
|
// GetSizeOk returns a tuple with the Size field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ListImportsResponse) GetSizeOk() (*int32, bool) {
|
|
if o == nil || o.Size == nil {
|
|
return nil, false
|
|
}
|
|
return o.Size, true
|
|
}
|
|
|
|
// HasSize returns a boolean if a field has been set.
|
|
func (o *V1ListImportsResponse) HasSize() bool {
|
|
if o != nil && o.Size != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSize gets a reference to the given int32 and assigns it to the Size field.
|
|
func (o *V1ListImportsResponse) SetSize(v int32) {
|
|
o.Size = &v
|
|
}
|
|
|
|
// GetPage returns the Page field value if set, zero value otherwise.
|
|
func (o *V1ListImportsResponse) GetPage() int32 {
|
|
if o == nil || o.Page == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Page
|
|
}
|
|
|
|
// GetPageOk returns a tuple with the Page field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ListImportsResponse) GetPageOk() (*int32, bool) {
|
|
if o == nil || o.Page == nil {
|
|
return nil, false
|
|
}
|
|
return o.Page, true
|
|
}
|
|
|
|
// HasPage returns a boolean if a field has been set.
|
|
func (o *V1ListImportsResponse) HasPage() bool {
|
|
if o != nil && o.Page != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPage gets a reference to the given int32 and assigns it to the Page field.
|
|
func (o *V1ListImportsResponse) SetPage(v int32) {
|
|
o.Page = &v
|
|
}
|
|
|
|
func (o V1ListImportsResponse) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Imports != nil {
|
|
toSerialize["imports"] = o.Imports
|
|
}
|
|
if o.Total != nil {
|
|
toSerialize["total"] = o.Total
|
|
}
|
|
if o.Size != nil {
|
|
toSerialize["size"] = o.Size
|
|
}
|
|
if o.Page != nil {
|
|
toSerialize["page"] = o.Page
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableV1ListImportsResponse struct {
|
|
value *V1ListImportsResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableV1ListImportsResponse) Get() *V1ListImportsResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableV1ListImportsResponse) Set(val *V1ListImportsResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableV1ListImportsResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableV1ListImportsResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableV1ListImportsResponse(val *V1ListImportsResponse) *NullableV1ListImportsResponse {
|
|
return &NullableV1ListImportsResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableV1ListImportsResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableV1ListImportsResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|