fix: add missing files
This commit is contained in:
parent
9a18db49ad
commit
1c0ba50668
2 changed files with 188 additions and 0 deletions
|
|
@ -0,0 +1,177 @@
|
||||||
|
/*
|
||||||
|
STACKIT MSSQL Service API
|
||||||
|
|
||||||
|
This is the documentation for the STACKIT MSSQL service
|
||||||
|
|
||||||
|
API version: 3alpha1
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||||
|
|
||||||
|
package sqlserverflexalpha
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
)
|
||||||
|
|
||||||
|
// checks if the UpdateInstancePartiallyRequestPayloadNetwork type satisfies the MappedNullable interface at compile time
|
||||||
|
var _ MappedNullable = &UpdateInstancePartiallyRequestPayloadNetwork{}
|
||||||
|
|
||||||
|
/*
|
||||||
|
types and functions for accessScope
|
||||||
|
*/
|
||||||
|
|
||||||
|
// isEnumRef
|
||||||
|
type UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType = *InstanceNetworkAccessScope
|
||||||
|
type UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeArgType = InstanceNetworkAccessScope
|
||||||
|
type UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType = InstanceNetworkAccessScope
|
||||||
|
|
||||||
|
func getUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeTypeOk(arg UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType) (ret UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType, ok bool) {
|
||||||
|
if arg == nil {
|
||||||
|
return ret, false
|
||||||
|
}
|
||||||
|
return *arg, true
|
||||||
|
}
|
||||||
|
|
||||||
|
func setUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType(arg *UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType, val UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType) {
|
||||||
|
*arg = &val
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
types and functions for acl
|
||||||
|
*/
|
||||||
|
|
||||||
|
// isArray
|
||||||
|
type UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType = *[]string
|
||||||
|
type UpdateInstancePartiallyRequestPayloadNetworkGetAclArgType = []string
|
||||||
|
type UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType = []string
|
||||||
|
|
||||||
|
func getUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeTypeOk(arg UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType) (ret UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType, ok bool) {
|
||||||
|
if arg == nil {
|
||||||
|
return ret, false
|
||||||
|
}
|
||||||
|
return *arg, true
|
||||||
|
}
|
||||||
|
|
||||||
|
func setUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType(arg *UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType, val UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType) {
|
||||||
|
*arg = &val
|
||||||
|
}
|
||||||
|
|
||||||
|
// UpdateInstancePartiallyRequestPayloadNetwork the network configuration of the instance.
|
||||||
|
type UpdateInstancePartiallyRequestPayloadNetwork struct {
|
||||||
|
AccessScope UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType `json:"accessScope,omitempty"`
|
||||||
|
// List of IPV4 cidr.
|
||||||
|
Acl UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType `json:"acl,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewUpdateInstancePartiallyRequestPayloadNetwork instantiates a new UpdateInstancePartiallyRequestPayloadNetwork 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 NewUpdateInstancePartiallyRequestPayloadNetwork() *UpdateInstancePartiallyRequestPayloadNetwork {
|
||||||
|
this := UpdateInstancePartiallyRequestPayloadNetwork{}
|
||||||
|
return &this
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewUpdateInstancePartiallyRequestPayloadNetworkWithDefaults instantiates a new UpdateInstancePartiallyRequestPayloadNetwork 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 NewUpdateInstancePartiallyRequestPayloadNetworkWithDefaults() *UpdateInstancePartiallyRequestPayloadNetwork {
|
||||||
|
this := UpdateInstancePartiallyRequestPayloadNetwork{}
|
||||||
|
var accessScope InstanceNetworkAccessScope = INSTANCENETWORKACCESSSCOPE_PUBLIC
|
||||||
|
this.AccessScope = &accessScope
|
||||||
|
return &this
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetAccessScope returns the AccessScope field value if set, zero value otherwise.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAccessScope() (res UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType) {
|
||||||
|
res, _ = o.GetAccessScopeOk()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetAccessScopeOk returns a tuple with the AccessScope field value if set, nil otherwise
|
||||||
|
// and a boolean to check if the value has been set.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAccessScopeOk() (ret UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType, ok bool) {
|
||||||
|
return getUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeTypeOk(o.AccessScope)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasAccessScope returns a boolean if a field has been set.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) HasAccessScope() bool {
|
||||||
|
_, ok := o.GetAccessScopeOk()
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetAccessScope gets a reference to the given InstanceNetworkAccessScope and assigns it to the AccessScope field.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) SetAccessScope(v UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType) {
|
||||||
|
setUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType(&o.AccessScope, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetAcl returns the Acl field value if set, zero value otherwise.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAcl() (res UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType) {
|
||||||
|
res, _ = o.GetAclOk()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetAclOk returns a tuple with the Acl field value if set, nil otherwise
|
||||||
|
// and a boolean to check if the value has been set.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAclOk() (ret UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType, ok bool) {
|
||||||
|
return getUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeTypeOk(o.Acl)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasAcl returns a boolean if a field has been set.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) HasAcl() bool {
|
||||||
|
_, ok := o.GetAclOk()
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetAcl gets a reference to the given []string and assigns it to the Acl field.
|
||||||
|
func (o *UpdateInstancePartiallyRequestPayloadNetwork) SetAcl(v UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType) {
|
||||||
|
setUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType(&o.Acl, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o UpdateInstancePartiallyRequestPayloadNetwork) ToMap() (map[string]interface{}, error) {
|
||||||
|
toSerialize := map[string]interface{}{}
|
||||||
|
if val, ok := getUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeTypeOk(o.AccessScope); ok {
|
||||||
|
toSerialize["AccessScope"] = val
|
||||||
|
}
|
||||||
|
if val, ok := getUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeTypeOk(o.Acl); ok {
|
||||||
|
toSerialize["Acl"] = val
|
||||||
|
}
|
||||||
|
return toSerialize, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type NullableUpdateInstancePartiallyRequestPayloadNetwork struct {
|
||||||
|
value *UpdateInstancePartiallyRequestPayloadNetwork
|
||||||
|
isSet bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v NullableUpdateInstancePartiallyRequestPayloadNetwork) Get() *UpdateInstancePartiallyRequestPayloadNetwork {
|
||||||
|
return v.value
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *NullableUpdateInstancePartiallyRequestPayloadNetwork) Set(val *UpdateInstancePartiallyRequestPayloadNetwork) {
|
||||||
|
v.value = val
|
||||||
|
v.isSet = true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v NullableUpdateInstancePartiallyRequestPayloadNetwork) IsSet() bool {
|
||||||
|
return v.isSet
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *NullableUpdateInstancePartiallyRequestPayloadNetwork) Unset() {
|
||||||
|
v.value = nil
|
||||||
|
v.isSet = false
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewNullableUpdateInstancePartiallyRequestPayloadNetwork(val *UpdateInstancePartiallyRequestPayloadNetwork) *NullableUpdateInstancePartiallyRequestPayloadNetwork {
|
||||||
|
return &NullableUpdateInstancePartiallyRequestPayloadNetwork{value: val, isSet: true}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v NullableUpdateInstancePartiallyRequestPayloadNetwork) MarshalJSON() ([]byte, error) {
|
||||||
|
return json.Marshal(v.value)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *NullableUpdateInstancePartiallyRequestPayloadNetwork) UnmarshalJSON(src []byte) error {
|
||||||
|
v.isSet = true
|
||||||
|
return json.Unmarshal(src, &v.value)
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
STACKIT MSSQL Service API
|
||||||
|
|
||||||
|
This is the documentation for the STACKIT MSSQL service
|
||||||
|
|
||||||
|
API version: 3alpha1
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||||
|
|
||||||
|
package sqlserverflexalpha
|
||||||
Loading…
Add table
Add a link
Reference in a new issue