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>
261 lines
7.2 KiB
Go
261 lines
7.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"
|
|
)
|
|
|
|
// V1ImportPackageRequest struct for V1ImportPackageRequest
|
|
type V1ImportPackageRequest struct {
|
|
// Project ID that we want this import to be assigned to All import requests need a project id, however after the initial import, sharing the VRE in an inter-project way is possible.
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
PackageName *string `json:"packageName,omitempty"`
|
|
PackageId *string `json:"packageId,omitempty"`
|
|
Vre *V1VersionRelease `json:"vre,omitempty"`
|
|
SetInactive *bool `json:"setInactive,omitempty"`
|
|
}
|
|
|
|
// NewV1ImportPackageRequest instantiates a new V1ImportPackageRequest 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 NewV1ImportPackageRequest() *V1ImportPackageRequest {
|
|
this := V1ImportPackageRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewV1ImportPackageRequestWithDefaults instantiates a new V1ImportPackageRequest 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 NewV1ImportPackageRequestWithDefaults() *V1ImportPackageRequest {
|
|
this := V1ImportPackageRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetProjectId returns the ProjectId field value if set, zero value otherwise.
|
|
func (o *V1ImportPackageRequest) GetProjectId() string {
|
|
if o == nil || o.ProjectId == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ProjectId
|
|
}
|
|
|
|
// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ImportPackageRequest) GetProjectIdOk() (*string, bool) {
|
|
if o == nil || o.ProjectId == nil {
|
|
return nil, false
|
|
}
|
|
return o.ProjectId, true
|
|
}
|
|
|
|
// HasProjectId returns a boolean if a field has been set.
|
|
func (o *V1ImportPackageRequest) HasProjectId() bool {
|
|
if o != nil && o.ProjectId != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProjectId gets a reference to the given string and assigns it to the ProjectId field.
|
|
func (o *V1ImportPackageRequest) SetProjectId(v string) {
|
|
o.ProjectId = &v
|
|
}
|
|
|
|
// GetPackageName returns the PackageName field value if set, zero value otherwise.
|
|
func (o *V1ImportPackageRequest) GetPackageName() string {
|
|
if o == nil || o.PackageName == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PackageName
|
|
}
|
|
|
|
// GetPackageNameOk returns a tuple with the PackageName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ImportPackageRequest) GetPackageNameOk() (*string, bool) {
|
|
if o == nil || o.PackageName == nil {
|
|
return nil, false
|
|
}
|
|
return o.PackageName, true
|
|
}
|
|
|
|
// HasPackageName returns a boolean if a field has been set.
|
|
func (o *V1ImportPackageRequest) HasPackageName() bool {
|
|
if o != nil && o.PackageName != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPackageName gets a reference to the given string and assigns it to the PackageName field.
|
|
func (o *V1ImportPackageRequest) SetPackageName(v string) {
|
|
o.PackageName = &v
|
|
}
|
|
|
|
// GetPackageId returns the PackageId field value if set, zero value otherwise.
|
|
func (o *V1ImportPackageRequest) GetPackageId() string {
|
|
if o == nil || o.PackageId == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PackageId
|
|
}
|
|
|
|
// GetPackageIdOk returns a tuple with the PackageId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ImportPackageRequest) GetPackageIdOk() (*string, bool) {
|
|
if o == nil || o.PackageId == nil {
|
|
return nil, false
|
|
}
|
|
return o.PackageId, true
|
|
}
|
|
|
|
// HasPackageId returns a boolean if a field has been set.
|
|
func (o *V1ImportPackageRequest) HasPackageId() bool {
|
|
if o != nil && o.PackageId != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPackageId gets a reference to the given string and assigns it to the PackageId field.
|
|
func (o *V1ImportPackageRequest) SetPackageId(v string) {
|
|
o.PackageId = &v
|
|
}
|
|
|
|
// GetVre returns the Vre field value if set, zero value otherwise.
|
|
func (o *V1ImportPackageRequest) GetVre() V1VersionRelease {
|
|
if o == nil || o.Vre == nil {
|
|
var ret V1VersionRelease
|
|
return ret
|
|
}
|
|
return *o.Vre
|
|
}
|
|
|
|
// GetVreOk returns a tuple with the Vre field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ImportPackageRequest) GetVreOk() (*V1VersionRelease, bool) {
|
|
if o == nil || o.Vre == nil {
|
|
return nil, false
|
|
}
|
|
return o.Vre, true
|
|
}
|
|
|
|
// HasVre returns a boolean if a field has been set.
|
|
func (o *V1ImportPackageRequest) HasVre() bool {
|
|
if o != nil && o.Vre != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVre gets a reference to the given V1VersionRelease and assigns it to the Vre field.
|
|
func (o *V1ImportPackageRequest) SetVre(v V1VersionRelease) {
|
|
o.Vre = &v
|
|
}
|
|
|
|
// GetSetInactive returns the SetInactive field value if set, zero value otherwise.
|
|
func (o *V1ImportPackageRequest) GetSetInactive() bool {
|
|
if o == nil || o.SetInactive == nil {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SetInactive
|
|
}
|
|
|
|
// GetSetInactiveOk returns a tuple with the SetInactive field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V1ImportPackageRequest) GetSetInactiveOk() (*bool, bool) {
|
|
if o == nil || o.SetInactive == nil {
|
|
return nil, false
|
|
}
|
|
return o.SetInactive, true
|
|
}
|
|
|
|
// HasSetInactive returns a boolean if a field has been set.
|
|
func (o *V1ImportPackageRequest) HasSetInactive() bool {
|
|
if o != nil && o.SetInactive != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSetInactive gets a reference to the given bool and assigns it to the SetInactive field.
|
|
func (o *V1ImportPackageRequest) SetSetInactive(v bool) {
|
|
o.SetInactive = &v
|
|
}
|
|
|
|
func (o V1ImportPackageRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.ProjectId != nil {
|
|
toSerialize["projectId"] = o.ProjectId
|
|
}
|
|
if o.PackageName != nil {
|
|
toSerialize["packageName"] = o.PackageName
|
|
}
|
|
if o.PackageId != nil {
|
|
toSerialize["packageId"] = o.PackageId
|
|
}
|
|
if o.Vre != nil {
|
|
toSerialize["vre"] = o.Vre
|
|
}
|
|
if o.SetInactive != nil {
|
|
toSerialize["setInactive"] = o.SetInactive
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableV1ImportPackageRequest struct {
|
|
value *V1ImportPackageRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableV1ImportPackageRequest) Get() *V1ImportPackageRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableV1ImportPackageRequest) Set(val *V1ImportPackageRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableV1ImportPackageRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableV1ImportPackageRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableV1ImportPackageRequest(val *V1ImportPackageRequest) *NullableV1ImportPackageRequest {
|
|
return &NullableV1ImportPackageRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableV1ImportPackageRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableV1ImportPackageRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|