307 lines
9.4 KiB
Go
307 lines
9.4 KiB
Go
/*
|
|
STACKIT Git API
|
|
|
|
STACKIT Git management API.
|
|
|
|
API version: 1beta.0.4
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package gitbeta
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the RunnerRuntime type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &RunnerRuntime{}
|
|
|
|
/*
|
|
types and functions for availability
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type RunnerRuntimeGetAvailabilityAttributeType = *string
|
|
|
|
func getRunnerRuntimeGetAvailabilityAttributeTypeOk(arg RunnerRuntimeGetAvailabilityAttributeType) (ret RunnerRuntimeGetAvailabilityRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setRunnerRuntimeGetAvailabilityAttributeType(arg *RunnerRuntimeGetAvailabilityAttributeType, val RunnerRuntimeGetAvailabilityRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type RunnerRuntimeGetAvailabilityArgType = string
|
|
type RunnerRuntimeGetAvailabilityRetType = string
|
|
|
|
/*
|
|
types and functions for description
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type RunnerRuntimeGetDescriptionAttributeType = *string
|
|
|
|
func getRunnerRuntimeGetDescriptionAttributeTypeOk(arg RunnerRuntimeGetDescriptionAttributeType) (ret RunnerRuntimeGetDescriptionRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setRunnerRuntimeGetDescriptionAttributeType(arg *RunnerRuntimeGetDescriptionAttributeType, val RunnerRuntimeGetDescriptionRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type RunnerRuntimeGetDescriptionArgType = string
|
|
type RunnerRuntimeGetDescriptionRetType = string
|
|
|
|
/*
|
|
types and functions for display_name
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type RunnerRuntimeGetDisplayNameAttributeType = *string
|
|
|
|
func getRunnerRuntimeGetDisplayNameAttributeTypeOk(arg RunnerRuntimeGetDisplayNameAttributeType) (ret RunnerRuntimeGetDisplayNameRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setRunnerRuntimeGetDisplayNameAttributeType(arg *RunnerRuntimeGetDisplayNameAttributeType, val RunnerRuntimeGetDisplayNameRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type RunnerRuntimeGetDisplayNameArgType = string
|
|
type RunnerRuntimeGetDisplayNameRetType = string
|
|
|
|
/*
|
|
types and functions for id
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type RunnerRuntimeGetIdAttributeType = *string
|
|
|
|
func getRunnerRuntimeGetIdAttributeTypeOk(arg RunnerRuntimeGetIdAttributeType) (ret RunnerRuntimeGetIdRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setRunnerRuntimeGetIdAttributeType(arg *RunnerRuntimeGetIdAttributeType, val RunnerRuntimeGetIdRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type RunnerRuntimeGetIdArgType = string
|
|
type RunnerRuntimeGetIdRetType = string
|
|
|
|
/*
|
|
types and functions for label
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type RunnerRuntimeGetLabelAttributeType = *string
|
|
|
|
func getRunnerRuntimeGetLabelAttributeTypeOk(arg RunnerRuntimeGetLabelAttributeType) (ret RunnerRuntimeGetLabelRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setRunnerRuntimeGetLabelAttributeType(arg *RunnerRuntimeGetLabelAttributeType, val RunnerRuntimeGetLabelRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type RunnerRuntimeGetLabelArgType = string
|
|
type RunnerRuntimeGetLabelRetType = string
|
|
|
|
// RunnerRuntime Describes a STACKIT Git Runner runtime.
|
|
type RunnerRuntime struct {
|
|
// Indicates the availability of the runner label
|
|
// REQUIRED
|
|
Availability RunnerRuntimeGetAvailabilityAttributeType `json:"availability" required:"true"`
|
|
// Human-friendly description of the runtime and it's capabilities.
|
|
// REQUIRED
|
|
Description RunnerRuntimeGetDescriptionAttributeType `json:"description" required:"true"`
|
|
// Human-friendly name of the runtime.
|
|
// REQUIRED
|
|
DisplayName RunnerRuntimeGetDisplayNameAttributeType `json:"display_name" required:"true"`
|
|
// Runtime identifier.
|
|
// REQUIRED
|
|
Id RunnerRuntimeGetIdAttributeType `json:"id" required:"true"`
|
|
// Runtime label.
|
|
// REQUIRED
|
|
Label RunnerRuntimeGetLabelAttributeType `json:"label" required:"true"`
|
|
}
|
|
|
|
type _RunnerRuntime RunnerRuntime
|
|
|
|
// NewRunnerRuntime instantiates a new RunnerRuntime 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 NewRunnerRuntime(availability RunnerRuntimeGetAvailabilityArgType, description RunnerRuntimeGetDescriptionArgType, displayName RunnerRuntimeGetDisplayNameArgType, id RunnerRuntimeGetIdArgType, label RunnerRuntimeGetLabelArgType) *RunnerRuntime {
|
|
this := RunnerRuntime{}
|
|
setRunnerRuntimeGetAvailabilityAttributeType(&this.Availability, availability)
|
|
setRunnerRuntimeGetDescriptionAttributeType(&this.Description, description)
|
|
setRunnerRuntimeGetDisplayNameAttributeType(&this.DisplayName, displayName)
|
|
setRunnerRuntimeGetIdAttributeType(&this.Id, id)
|
|
setRunnerRuntimeGetLabelAttributeType(&this.Label, label)
|
|
return &this
|
|
}
|
|
|
|
// NewRunnerRuntimeWithDefaults instantiates a new RunnerRuntime 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 NewRunnerRuntimeWithDefaults() *RunnerRuntime {
|
|
this := RunnerRuntime{}
|
|
return &this
|
|
}
|
|
|
|
// GetAvailability returns the Availability field value
|
|
func (o *RunnerRuntime) GetAvailability() (ret RunnerRuntimeGetAvailabilityRetType) {
|
|
ret, _ = o.GetAvailabilityOk()
|
|
return ret
|
|
}
|
|
|
|
// GetAvailabilityOk returns a tuple with the Availability field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *RunnerRuntime) GetAvailabilityOk() (ret RunnerRuntimeGetAvailabilityRetType, ok bool) {
|
|
return getRunnerRuntimeGetAvailabilityAttributeTypeOk(o.Availability)
|
|
}
|
|
|
|
// SetAvailability sets field value
|
|
func (o *RunnerRuntime) SetAvailability(v RunnerRuntimeGetAvailabilityRetType) {
|
|
setRunnerRuntimeGetAvailabilityAttributeType(&o.Availability, v)
|
|
}
|
|
|
|
// GetDescription returns the Description field value
|
|
func (o *RunnerRuntime) GetDescription() (ret RunnerRuntimeGetDescriptionRetType) {
|
|
ret, _ = o.GetDescriptionOk()
|
|
return ret
|
|
}
|
|
|
|
// GetDescriptionOk returns a tuple with the Description field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *RunnerRuntime) GetDescriptionOk() (ret RunnerRuntimeGetDescriptionRetType, ok bool) {
|
|
return getRunnerRuntimeGetDescriptionAttributeTypeOk(o.Description)
|
|
}
|
|
|
|
// SetDescription sets field value
|
|
func (o *RunnerRuntime) SetDescription(v RunnerRuntimeGetDescriptionRetType) {
|
|
setRunnerRuntimeGetDescriptionAttributeType(&o.Description, v)
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value
|
|
func (o *RunnerRuntime) GetDisplayName() (ret RunnerRuntimeGetDisplayNameRetType) {
|
|
ret, _ = o.GetDisplayNameOk()
|
|
return ret
|
|
}
|
|
|
|
// GetDisplayNameOk returns a tuple with the DisplayName field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *RunnerRuntime) GetDisplayNameOk() (ret RunnerRuntimeGetDisplayNameRetType, ok bool) {
|
|
return getRunnerRuntimeGetDisplayNameAttributeTypeOk(o.DisplayName)
|
|
}
|
|
|
|
// SetDisplayName sets field value
|
|
func (o *RunnerRuntime) SetDisplayName(v RunnerRuntimeGetDisplayNameRetType) {
|
|
setRunnerRuntimeGetDisplayNameAttributeType(&o.DisplayName, v)
|
|
}
|
|
|
|
// GetId returns the Id field value
|
|
func (o *RunnerRuntime) GetId() (ret RunnerRuntimeGetIdRetType) {
|
|
ret, _ = o.GetIdOk()
|
|
return ret
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *RunnerRuntime) GetIdOk() (ret RunnerRuntimeGetIdRetType, ok bool) {
|
|
return getRunnerRuntimeGetIdAttributeTypeOk(o.Id)
|
|
}
|
|
|
|
// SetId sets field value
|
|
func (o *RunnerRuntime) SetId(v RunnerRuntimeGetIdRetType) {
|
|
setRunnerRuntimeGetIdAttributeType(&o.Id, v)
|
|
}
|
|
|
|
// GetLabel returns the Label field value
|
|
func (o *RunnerRuntime) GetLabel() (ret RunnerRuntimeGetLabelRetType) {
|
|
ret, _ = o.GetLabelOk()
|
|
return ret
|
|
}
|
|
|
|
// GetLabelOk returns a tuple with the Label field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *RunnerRuntime) GetLabelOk() (ret RunnerRuntimeGetLabelRetType, ok bool) {
|
|
return getRunnerRuntimeGetLabelAttributeTypeOk(o.Label)
|
|
}
|
|
|
|
// SetLabel sets field value
|
|
func (o *RunnerRuntime) SetLabel(v RunnerRuntimeGetLabelRetType) {
|
|
setRunnerRuntimeGetLabelAttributeType(&o.Label, v)
|
|
}
|
|
|
|
func (o RunnerRuntime) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getRunnerRuntimeGetAvailabilityAttributeTypeOk(o.Availability); ok {
|
|
toSerialize["Availability"] = val
|
|
}
|
|
if val, ok := getRunnerRuntimeGetDescriptionAttributeTypeOk(o.Description); ok {
|
|
toSerialize["Description"] = val
|
|
}
|
|
if val, ok := getRunnerRuntimeGetDisplayNameAttributeTypeOk(o.DisplayName); ok {
|
|
toSerialize["DisplayName"] = val
|
|
}
|
|
if val, ok := getRunnerRuntimeGetIdAttributeTypeOk(o.Id); ok {
|
|
toSerialize["Id"] = val
|
|
}
|
|
if val, ok := getRunnerRuntimeGetLabelAttributeTypeOk(o.Label); ok {
|
|
toSerialize["Label"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableRunnerRuntime struct {
|
|
value *RunnerRuntime
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableRunnerRuntime) Get() *RunnerRuntime {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableRunnerRuntime) Set(val *RunnerRuntime) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableRunnerRuntime) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableRunnerRuntime) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableRunnerRuntime(val *RunnerRuntime) *NullableRunnerRuntime {
|
|
return &NullableRunnerRuntime{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableRunnerRuntime) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableRunnerRuntime) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|