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>
404 lines
11 KiB
Go
404 lines
11 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"
|
|
)
|
|
|
|
// V1GetImportBatchResponse struct for V1GetImportBatchResponse
|
|
type V1GetImportBatchResponse struct {
|
|
Imports *[]V1Import `json:"imports,omitempty"`
|
|
Pending *int32 `json:"pending,omitempty"`
|
|
Running *int32 `json:"running,omitempty"`
|
|
Succeeded *int32 `json:"succeeded,omitempty"`
|
|
Failed *int32 `json:"failed,omitempty"`
|
|
Canceled *int32 `json:"canceled,omitempty"`
|
|
Total *string `json:"total,omitempty"`
|
|
Size *int32 `json:"size,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
}
|
|
|
|
// NewV1GetImportBatchResponse instantiates a new V1GetImportBatchResponse 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 NewV1GetImportBatchResponse() *V1GetImportBatchResponse {
|
|
this := V1GetImportBatchResponse{}
|
|
return &this
|
|
}
|
|
|
|
// NewV1GetImportBatchResponseWithDefaults instantiates a new V1GetImportBatchResponse 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 NewV1GetImportBatchResponseWithDefaults() *V1GetImportBatchResponse {
|
|
this := V1GetImportBatchResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetImports returns the Imports field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) SetImports(v []V1Import) {
|
|
o.Imports = &v
|
|
}
|
|
|
|
// GetPending returns the Pending field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) GetPending() int32 {
|
|
if o == nil || o.Pending == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Pending
|
|
}
|
|
|
|
// GetPendingOk returns a tuple with the Pending field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1GetImportBatchResponse) GetPendingOk() (*int32, bool) {
|
|
if o == nil || o.Pending == nil {
|
|
return nil, false
|
|
}
|
|
return o.Pending, true
|
|
}
|
|
|
|
// HasPending returns a boolean if a field has been set.
|
|
func (o *V1GetImportBatchResponse) HasPending() bool {
|
|
if o != nil && o.Pending != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPending gets a reference to the given int32 and assigns it to the Pending field.
|
|
func (o *V1GetImportBatchResponse) SetPending(v int32) {
|
|
o.Pending = &v
|
|
}
|
|
|
|
// GetRunning returns the Running field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) GetRunning() int32 {
|
|
if o == nil || o.Running == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Running
|
|
}
|
|
|
|
// GetRunningOk returns a tuple with the Running field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1GetImportBatchResponse) GetRunningOk() (*int32, bool) {
|
|
if o == nil || o.Running == nil {
|
|
return nil, false
|
|
}
|
|
return o.Running, true
|
|
}
|
|
|
|
// HasRunning returns a boolean if a field has been set.
|
|
func (o *V1GetImportBatchResponse) HasRunning() bool {
|
|
if o != nil && o.Running != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRunning gets a reference to the given int32 and assigns it to the Running field.
|
|
func (o *V1GetImportBatchResponse) SetRunning(v int32) {
|
|
o.Running = &v
|
|
}
|
|
|
|
// GetSucceeded returns the Succeeded field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) GetSucceeded() int32 {
|
|
if o == nil || o.Succeeded == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Succeeded
|
|
}
|
|
|
|
// GetSucceededOk returns a tuple with the Succeeded field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1GetImportBatchResponse) GetSucceededOk() (*int32, bool) {
|
|
if o == nil || o.Succeeded == nil {
|
|
return nil, false
|
|
}
|
|
return o.Succeeded, true
|
|
}
|
|
|
|
// HasSucceeded returns a boolean if a field has been set.
|
|
func (o *V1GetImportBatchResponse) HasSucceeded() bool {
|
|
if o != nil && o.Succeeded != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSucceeded gets a reference to the given int32 and assigns it to the Succeeded field.
|
|
func (o *V1GetImportBatchResponse) SetSucceeded(v int32) {
|
|
o.Succeeded = &v
|
|
}
|
|
|
|
// GetFailed returns the Failed field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) GetFailed() int32 {
|
|
if o == nil || o.Failed == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Failed
|
|
}
|
|
|
|
// GetFailedOk returns a tuple with the Failed field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1GetImportBatchResponse) GetFailedOk() (*int32, bool) {
|
|
if o == nil || o.Failed == nil {
|
|
return nil, false
|
|
}
|
|
return o.Failed, true
|
|
}
|
|
|
|
// HasFailed returns a boolean if a field has been set.
|
|
func (o *V1GetImportBatchResponse) HasFailed() bool {
|
|
if o != nil && o.Failed != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFailed gets a reference to the given int32 and assigns it to the Failed field.
|
|
func (o *V1GetImportBatchResponse) SetFailed(v int32) {
|
|
o.Failed = &v
|
|
}
|
|
|
|
// GetCanceled returns the Canceled field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) GetCanceled() int32 {
|
|
if o == nil || o.Canceled == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Canceled
|
|
}
|
|
|
|
// GetCanceledOk returns a tuple with the Canceled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1GetImportBatchResponse) GetCanceledOk() (*int32, bool) {
|
|
if o == nil || o.Canceled == nil {
|
|
return nil, false
|
|
}
|
|
return o.Canceled, true
|
|
}
|
|
|
|
// HasCanceled returns a boolean if a field has been set.
|
|
func (o *V1GetImportBatchResponse) HasCanceled() bool {
|
|
if o != nil && o.Canceled != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCanceled gets a reference to the given int32 and assigns it to the Canceled field.
|
|
func (o *V1GetImportBatchResponse) SetCanceled(v int32) {
|
|
o.Canceled = &v
|
|
}
|
|
|
|
// GetTotal returns the Total field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) SetTotal(v string) {
|
|
o.Total = &v
|
|
}
|
|
|
|
// GetSize returns the Size field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) SetSize(v int32) {
|
|
o.Size = &v
|
|
}
|
|
|
|
// GetPage returns the Page field value if set, zero value otherwise.
|
|
func (o *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) 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 *V1GetImportBatchResponse) SetPage(v int32) {
|
|
o.Page = &v
|
|
}
|
|
|
|
func (o V1GetImportBatchResponse) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Imports != nil {
|
|
toSerialize["imports"] = o.Imports
|
|
}
|
|
if o.Pending != nil {
|
|
toSerialize["pending"] = o.Pending
|
|
}
|
|
if o.Running != nil {
|
|
toSerialize["running"] = o.Running
|
|
}
|
|
if o.Succeeded != nil {
|
|
toSerialize["succeeded"] = o.Succeeded
|
|
}
|
|
if o.Failed != nil {
|
|
toSerialize["failed"] = o.Failed
|
|
}
|
|
if o.Canceled != nil {
|
|
toSerialize["canceled"] = o.Canceled
|
|
}
|
|
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 NullableV1GetImportBatchResponse struct {
|
|
value *V1GetImportBatchResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableV1GetImportBatchResponse) Get() *V1GetImportBatchResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableV1GetImportBatchResponse) Set(val *V1GetImportBatchResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableV1GetImportBatchResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableV1GetImportBatchResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableV1GetImportBatchResponse(val *V1GetImportBatchResponse) *NullableV1GetImportBatchResponse {
|
|
return &NullableV1GetImportBatchResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableV1GetImportBatchResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableV1GetImportBatchResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|