feat: generating code
This commit is contained in:
parent
c329d58970
commit
51663cd8d0
1221 changed files with 271709 additions and 2444 deletions
261
pkg/sqlserverflexalpha/model_external_s3.go
Normal file
261
pkg/sqlserverflexalpha/model_external_s3.go
Normal file
|
|
@ -0,0 +1,261 @@
|
|||
/*
|
||||
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 ExternalS3 type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ExternalS3{}
|
||||
|
||||
/*
|
||||
types and functions for s3_access_key
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ExternalS3GetS3AccessKeyAttributeType = *string
|
||||
|
||||
func getExternalS3GetS3AccessKeyAttributeTypeOk(arg ExternalS3GetS3AccessKeyAttributeType) (ret ExternalS3GetS3AccessKeyRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setExternalS3GetS3AccessKeyAttributeType(arg *ExternalS3GetS3AccessKeyAttributeType, val ExternalS3GetS3AccessKeyRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ExternalS3GetS3AccessKeyArgType = string
|
||||
type ExternalS3GetS3AccessKeyRetType = string
|
||||
|
||||
/*
|
||||
types and functions for s3_access_secret
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ExternalS3GetS3AccessSecretAttributeType = *string
|
||||
|
||||
func getExternalS3GetS3AccessSecretAttributeTypeOk(arg ExternalS3GetS3AccessSecretAttributeType) (ret ExternalS3GetS3AccessSecretRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setExternalS3GetS3AccessSecretAttributeType(arg *ExternalS3GetS3AccessSecretAttributeType, val ExternalS3GetS3AccessSecretRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ExternalS3GetS3AccessSecretArgType = string
|
||||
type ExternalS3GetS3AccessSecretRetType = string
|
||||
|
||||
/*
|
||||
types and functions for s3_bucket
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ExternalS3GetS3BucketAttributeType = *string
|
||||
|
||||
func getExternalS3GetS3BucketAttributeTypeOk(arg ExternalS3GetS3BucketAttributeType) (ret ExternalS3GetS3BucketRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setExternalS3GetS3BucketAttributeType(arg *ExternalS3GetS3BucketAttributeType, val ExternalS3GetS3BucketRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ExternalS3GetS3BucketArgType = string
|
||||
type ExternalS3GetS3BucketRetType = string
|
||||
|
||||
/*
|
||||
types and functions for s3_files
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ExternalS3GetS3FilesAttributeType = *[]S3fileInfo
|
||||
type ExternalS3GetS3FilesArgType = []S3fileInfo
|
||||
type ExternalS3GetS3FilesRetType = []S3fileInfo
|
||||
|
||||
func getExternalS3GetS3FilesAttributeTypeOk(arg ExternalS3GetS3FilesAttributeType) (ret ExternalS3GetS3FilesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setExternalS3GetS3FilesAttributeType(arg *ExternalS3GetS3FilesAttributeType, val ExternalS3GetS3FilesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ExternalS3 The external S3 information
|
||||
type ExternalS3 struct {
|
||||
// The s3 access key id
|
||||
// REQUIRED
|
||||
S3AccessKey ExternalS3GetS3AccessKeyAttributeType `json:"s3_access_key" required:"true"`
|
||||
// The s3 access secret
|
||||
// REQUIRED
|
||||
S3AccessSecret ExternalS3GetS3AccessSecretAttributeType `json:"s3_access_secret" required:"true"`
|
||||
// The s3 bucket address
|
||||
// REQUIRED
|
||||
S3Bucket ExternalS3GetS3BucketAttributeType `json:"s3_bucket" required:"true"`
|
||||
// The backup files from which the database should be restored
|
||||
// REQUIRED
|
||||
S3Files ExternalS3GetS3FilesAttributeType `json:"s3_files" required:"true"`
|
||||
}
|
||||
|
||||
type _ExternalS3 ExternalS3
|
||||
|
||||
// NewExternalS3 instantiates a new ExternalS3 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 NewExternalS3(s3AccessKey ExternalS3GetS3AccessKeyArgType, s3AccessSecret ExternalS3GetS3AccessSecretArgType, s3Bucket ExternalS3GetS3BucketArgType, s3Files ExternalS3GetS3FilesArgType) *ExternalS3 {
|
||||
this := ExternalS3{}
|
||||
setExternalS3GetS3AccessKeyAttributeType(&this.S3AccessKey, s3AccessKey)
|
||||
setExternalS3GetS3AccessSecretAttributeType(&this.S3AccessSecret, s3AccessSecret)
|
||||
setExternalS3GetS3BucketAttributeType(&this.S3Bucket, s3Bucket)
|
||||
setExternalS3GetS3FilesAttributeType(&this.S3Files, s3Files)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewExternalS3WithDefaults instantiates a new ExternalS3 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 NewExternalS3WithDefaults() *ExternalS3 {
|
||||
this := ExternalS3{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetS3AccessKey returns the S3AccessKey field value
|
||||
func (o *ExternalS3) GetS3AccessKey() (ret ExternalS3GetS3AccessKeyRetType) {
|
||||
ret, _ = o.GetS3AccessKeyOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetS3AccessKeyOk returns a tuple with the S3AccessKey field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ExternalS3) GetS3AccessKeyOk() (ret ExternalS3GetS3AccessKeyRetType, ok bool) {
|
||||
return getExternalS3GetS3AccessKeyAttributeTypeOk(o.S3AccessKey)
|
||||
}
|
||||
|
||||
// SetS3AccessKey sets field value
|
||||
func (o *ExternalS3) SetS3AccessKey(v ExternalS3GetS3AccessKeyRetType) {
|
||||
setExternalS3GetS3AccessKeyAttributeType(&o.S3AccessKey, v)
|
||||
}
|
||||
|
||||
// GetS3AccessSecret returns the S3AccessSecret field value
|
||||
func (o *ExternalS3) GetS3AccessSecret() (ret ExternalS3GetS3AccessSecretRetType) {
|
||||
ret, _ = o.GetS3AccessSecretOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetS3AccessSecretOk returns a tuple with the S3AccessSecret field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ExternalS3) GetS3AccessSecretOk() (ret ExternalS3GetS3AccessSecretRetType, ok bool) {
|
||||
return getExternalS3GetS3AccessSecretAttributeTypeOk(o.S3AccessSecret)
|
||||
}
|
||||
|
||||
// SetS3AccessSecret sets field value
|
||||
func (o *ExternalS3) SetS3AccessSecret(v ExternalS3GetS3AccessSecretRetType) {
|
||||
setExternalS3GetS3AccessSecretAttributeType(&o.S3AccessSecret, v)
|
||||
}
|
||||
|
||||
// GetS3Bucket returns the S3Bucket field value
|
||||
func (o *ExternalS3) GetS3Bucket() (ret ExternalS3GetS3BucketRetType) {
|
||||
ret, _ = o.GetS3BucketOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetS3BucketOk returns a tuple with the S3Bucket field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ExternalS3) GetS3BucketOk() (ret ExternalS3GetS3BucketRetType, ok bool) {
|
||||
return getExternalS3GetS3BucketAttributeTypeOk(o.S3Bucket)
|
||||
}
|
||||
|
||||
// SetS3Bucket sets field value
|
||||
func (o *ExternalS3) SetS3Bucket(v ExternalS3GetS3BucketRetType) {
|
||||
setExternalS3GetS3BucketAttributeType(&o.S3Bucket, v)
|
||||
}
|
||||
|
||||
// GetS3Files returns the S3Files field value
|
||||
func (o *ExternalS3) GetS3Files() (ret ExternalS3GetS3FilesRetType) {
|
||||
ret, _ = o.GetS3FilesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetS3FilesOk returns a tuple with the S3Files field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ExternalS3) GetS3FilesOk() (ret ExternalS3GetS3FilesRetType, ok bool) {
|
||||
return getExternalS3GetS3FilesAttributeTypeOk(o.S3Files)
|
||||
}
|
||||
|
||||
// SetS3Files sets field value
|
||||
func (o *ExternalS3) SetS3Files(v ExternalS3GetS3FilesRetType) {
|
||||
setExternalS3GetS3FilesAttributeType(&o.S3Files, v)
|
||||
}
|
||||
|
||||
func (o ExternalS3) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getExternalS3GetS3AccessKeyAttributeTypeOk(o.S3AccessKey); ok {
|
||||
toSerialize["S3AccessKey"] = val
|
||||
}
|
||||
if val, ok := getExternalS3GetS3AccessSecretAttributeTypeOk(o.S3AccessSecret); ok {
|
||||
toSerialize["S3AccessSecret"] = val
|
||||
}
|
||||
if val, ok := getExternalS3GetS3BucketAttributeTypeOk(o.S3Bucket); ok {
|
||||
toSerialize["S3Bucket"] = val
|
||||
}
|
||||
if val, ok := getExternalS3GetS3FilesAttributeTypeOk(o.S3Files); ok {
|
||||
toSerialize["S3Files"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableExternalS3 struct {
|
||||
value *ExternalS3
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableExternalS3) Get() *ExternalS3 {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableExternalS3) Set(val *ExternalS3) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableExternalS3) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableExternalS3) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableExternalS3(val *ExternalS3) *NullableExternalS3 {
|
||||
return &NullableExternalS3{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableExternalS3) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableExternalS3) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue