Files
runtime/libs/api-client-go/model_update_docker_registry.go
zeekay ea80dc3638 feat: Add new Dockerfiles and improve containerization
- Add main Dockerfile for production builds
- Add Dockerfile.runtime for secure code execution
- Add Dockerfile.runtime.fixed with improved configuration
- Include .dockerignore for build optimization
- Add integration documentation and publishing guides
- Update API and CLI components for better runtime support
- Enhance sandbox and container management features
2025-08-16 23:03:39 -05:00

225 lines
5.5 KiB
Go
Generated

/*
Runtime
Runtime AI platform API Docs
API version: 1.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package apiclient
import (
"bytes"
"encoding/json"
"fmt"
)
// checks if the UpdateDockerRegistry type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpdateDockerRegistry{}
// UpdateDockerRegistry struct for UpdateDockerRegistry
type UpdateDockerRegistry struct {
// Registry name
Name string `json:"name"`
// Registry username
Username string `json:"username"`
// Registry password
Password *string `json:"password,omitempty"`
}
type _UpdateDockerRegistry UpdateDockerRegistry
// NewUpdateDockerRegistry instantiates a new UpdateDockerRegistry 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 NewUpdateDockerRegistry(name string, username string) *UpdateDockerRegistry {
this := UpdateDockerRegistry{}
this.Name = name
this.Username = username
return &this
}
// NewUpdateDockerRegistryWithDefaults instantiates a new UpdateDockerRegistry 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 NewUpdateDockerRegistryWithDefaults() *UpdateDockerRegistry {
this := UpdateDockerRegistry{}
return &this
}
// GetName returns the Name field value
func (o *UpdateDockerRegistry) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *UpdateDockerRegistry) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *UpdateDockerRegistry) SetName(v string) {
o.Name = v
}
// GetUsername returns the Username field value
func (o *UpdateDockerRegistry) GetUsername() string {
if o == nil {
var ret string
return ret
}
return o.Username
}
// GetUsernameOk returns a tuple with the Username field value
// and a boolean to check if the value has been set.
func (o *UpdateDockerRegistry) GetUsernameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Username, true
}
// SetUsername sets field value
func (o *UpdateDockerRegistry) SetUsername(v string) {
o.Username = v
}
// GetPassword returns the Password field value if set, zero value otherwise.
func (o *UpdateDockerRegistry) GetPassword() string {
if o == nil || IsNil(o.Password) {
var ret string
return ret
}
return *o.Password
}
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateDockerRegistry) GetPasswordOk() (*string, bool) {
if o == nil || IsNil(o.Password) {
return nil, false
}
return o.Password, true
}
// HasPassword returns a boolean if a field has been set.
func (o *UpdateDockerRegistry) HasPassword() bool {
if o != nil && !IsNil(o.Password) {
return true
}
return false
}
// SetPassword gets a reference to the given string and assigns it to the Password field.
func (o *UpdateDockerRegistry) SetPassword(v string) {
o.Password = &v
}
func (o UpdateDockerRegistry) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UpdateDockerRegistry) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["username"] = o.Username
if !IsNil(o.Password) {
toSerialize["password"] = o.Password
}
return toSerialize, nil
}
func (o *UpdateDockerRegistry) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
"username",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varUpdateDockerRegistry := _UpdateDockerRegistry{}
decoder := json.NewDecoder(bytes.NewReader(data))
decoder.DisallowUnknownFields()
err = decoder.Decode(&varUpdateDockerRegistry)
if err != nil {
return err
}
*o = UpdateDockerRegistry(varUpdateDockerRegistry)
return err
}
type NullableUpdateDockerRegistry struct {
value *UpdateDockerRegistry
isSet bool
}
func (v NullableUpdateDockerRegistry) Get() *UpdateDockerRegistry {
return v.value
}
func (v *NullableUpdateDockerRegistry) Set(val *UpdateDockerRegistry) {
v.value = val
v.isSet = true
}
func (v NullableUpdateDockerRegistry) IsSet() bool {
return v.isSet
}
func (v *NullableUpdateDockerRegistry) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpdateDockerRegistry(val *UpdateDockerRegistry) *NullableUpdateDockerRegistry {
return &NullableUpdateDockerRegistry{value: val, isSet: true}
}
func (v NullableUpdateDockerRegistry) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpdateDockerRegistry) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}