terraform-provider-stackitp.../pkg/sqlserverflexalpha/model_s3file_info.go
Marcel S. Henselin 9f41c4da7f
Some checks failed
Publish / Check GoReleaser config (push) Successful in 4s
Release / goreleaser (push) Failing after 29s
Publish / Publish provider (push) Failing after 4m24s
feat: auto generated files and new structure (#4)
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #4
Reviewed-by: Andre_Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-29 14:10:25 +00:00

178 lines
5.1 KiB
Go

/*
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 S3fileInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &S3fileInfo{}
/*
types and functions for file_number
*/
// isInteger
type S3fileInfoGetFileNumberAttributeType = *int64
type S3fileInfoGetFileNumberArgType = int64
type S3fileInfoGetFileNumberRetType = int64
func getS3fileInfoGetFileNumberAttributeTypeOk(arg S3fileInfoGetFileNumberAttributeType) (ret S3fileInfoGetFileNumberRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setS3fileInfoGetFileNumberAttributeType(arg *S3fileInfoGetFileNumberAttributeType, val S3fileInfoGetFileNumberRetType) {
*arg = &val
}
/*
types and functions for file_path
*/
// isNotNullableString
type S3fileInfoGetFilePathAttributeType = *string
func getS3fileInfoGetFilePathAttributeTypeOk(arg S3fileInfoGetFilePathAttributeType) (ret S3fileInfoGetFilePathRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setS3fileInfoGetFilePathAttributeType(arg *S3fileInfoGetFilePathAttributeType, val S3fileInfoGetFilePathRetType) {
*arg = &val
}
type S3fileInfoGetFilePathArgType = string
type S3fileInfoGetFilePathRetType = string
// S3fileInfo struct for S3fileInfo
type S3fileInfo struct {
// The sequence number of the file
// Can be cast to int32 without loss of precision.
FileNumber S3fileInfoGetFileNumberAttributeType `json:"file_number,omitempty"`
// The path to the file on the S3 bucket
FilePath S3fileInfoGetFilePathAttributeType `json:"file_path,omitempty"`
}
// NewS3fileInfo instantiates a new S3fileInfo 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 NewS3fileInfo() *S3fileInfo {
this := S3fileInfo{}
return &this
}
// NewS3fileInfoWithDefaults instantiates a new S3fileInfo 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 NewS3fileInfoWithDefaults() *S3fileInfo {
this := S3fileInfo{}
return &this
}
// GetFileNumber returns the FileNumber field value if set, zero value otherwise.
func (o *S3fileInfo) GetFileNumber() (res S3fileInfoGetFileNumberRetType) {
res, _ = o.GetFileNumberOk()
return
}
// GetFileNumberOk returns a tuple with the FileNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *S3fileInfo) GetFileNumberOk() (ret S3fileInfoGetFileNumberRetType, ok bool) {
return getS3fileInfoGetFileNumberAttributeTypeOk(o.FileNumber)
}
// HasFileNumber returns a boolean if a field has been set.
func (o *S3fileInfo) HasFileNumber() bool {
_, ok := o.GetFileNumberOk()
return ok
}
// SetFileNumber gets a reference to the given int64 and assigns it to the FileNumber field.
func (o *S3fileInfo) SetFileNumber(v S3fileInfoGetFileNumberRetType) {
setS3fileInfoGetFileNumberAttributeType(&o.FileNumber, v)
}
// GetFilePath returns the FilePath field value if set, zero value otherwise.
func (o *S3fileInfo) GetFilePath() (res S3fileInfoGetFilePathRetType) {
res, _ = o.GetFilePathOk()
return
}
// GetFilePathOk returns a tuple with the FilePath field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *S3fileInfo) GetFilePathOk() (ret S3fileInfoGetFilePathRetType, ok bool) {
return getS3fileInfoGetFilePathAttributeTypeOk(o.FilePath)
}
// HasFilePath returns a boolean if a field has been set.
func (o *S3fileInfo) HasFilePath() bool {
_, ok := o.GetFilePathOk()
return ok
}
// SetFilePath gets a reference to the given string and assigns it to the FilePath field.
func (o *S3fileInfo) SetFilePath(v S3fileInfoGetFilePathRetType) {
setS3fileInfoGetFilePathAttributeType(&o.FilePath, v)
}
func (o S3fileInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getS3fileInfoGetFileNumberAttributeTypeOk(o.FileNumber); ok {
toSerialize["FileNumber"] = val
}
if val, ok := getS3fileInfoGetFilePathAttributeTypeOk(o.FilePath); ok {
toSerialize["FilePath"] = val
}
return toSerialize, nil
}
type NullableS3fileInfo struct {
value *S3fileInfo
isSet bool
}
func (v NullableS3fileInfo) Get() *S3fileInfo {
return v.value
}
func (v *NullableS3fileInfo) Set(val *S3fileInfo) {
v.value = val
v.isSet = true
}
func (v NullableS3fileInfo) IsSet() bool {
return v.isSet
}
func (v *NullableS3fileInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableS3fileInfo(val *S3fileInfo) *NullableS3fileInfo {
return &NullableS3fileInfo{value: val, isSet: true}
}
func (v NullableS3fileInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableS3fileInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}