Alpha (#4)
* chore: initial push to be able to work together * chore: add missing wait folder * chore: add missing folders * chore: cleanup alpha branch * feat: mssql alpha instance (#2) * fix: remove unused attribute types and functions from backup models * fix: update API client references to use sqlserverflexalpha package * fix: update package references to use sqlserverflexalpha and modify user data source model * fix: add sqlserverflexalpha user data source to provider * fix: add sqlserverflexalpha user resource and update related functionality * chore: add stackit_sqlserverflexalpha_user resource and instance_id variable * fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database --------- Co-authored-by: Andre Harms <andre.harms@stackit.cloud> Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud> * feat: add sqlserver instance * chore: fixing tests * chore: update docs --------- Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud> Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
This commit is contained in:
parent
45073a716b
commit
2733834fc9
351 changed files with 62744 additions and 3 deletions
|
|
@ -0,0 +1,125 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the UpdateDatabasePartiallyResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &UpdateDatabasePartiallyResponse{}
|
||||
|
||||
/*
|
||||
types and functions for database
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type UpdateDatabasePartiallyResponseGetDatabaseAttributeType = *ListDatabase
|
||||
type UpdateDatabasePartiallyResponseGetDatabaseArgType = ListDatabase
|
||||
type UpdateDatabasePartiallyResponseGetDatabaseRetType = ListDatabase
|
||||
|
||||
func getUpdateDatabasePartiallyResponseGetDatabaseAttributeTypeOk(arg UpdateDatabasePartiallyResponseGetDatabaseAttributeType) (ret UpdateDatabasePartiallyResponseGetDatabaseRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setUpdateDatabasePartiallyResponseGetDatabaseAttributeType(arg *UpdateDatabasePartiallyResponseGetDatabaseAttributeType, val UpdateDatabasePartiallyResponseGetDatabaseRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// UpdateDatabasePartiallyResponse struct for UpdateDatabasePartiallyResponse
|
||||
type UpdateDatabasePartiallyResponse struct {
|
||||
// REQUIRED
|
||||
Database UpdateDatabasePartiallyResponseGetDatabaseAttributeType `json:"database" required:"true"`
|
||||
}
|
||||
|
||||
type _UpdateDatabasePartiallyResponse UpdateDatabasePartiallyResponse
|
||||
|
||||
// NewUpdateDatabasePartiallyResponse instantiates a new UpdateDatabasePartiallyResponse 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 NewUpdateDatabasePartiallyResponse(database UpdateDatabasePartiallyResponseGetDatabaseArgType) *UpdateDatabasePartiallyResponse {
|
||||
this := UpdateDatabasePartiallyResponse{}
|
||||
setUpdateDatabasePartiallyResponseGetDatabaseAttributeType(&this.Database, database)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewUpdateDatabasePartiallyResponseWithDefaults instantiates a new UpdateDatabasePartiallyResponse 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 NewUpdateDatabasePartiallyResponseWithDefaults() *UpdateDatabasePartiallyResponse {
|
||||
this := UpdateDatabasePartiallyResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetDatabase returns the Database field value
|
||||
func (o *UpdateDatabasePartiallyResponse) GetDatabase() (ret UpdateDatabasePartiallyResponseGetDatabaseRetType) {
|
||||
ret, _ = o.GetDatabaseOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetDatabaseOk returns a tuple with the Database field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateDatabasePartiallyResponse) GetDatabaseOk() (ret UpdateDatabasePartiallyResponseGetDatabaseRetType, ok bool) {
|
||||
return getUpdateDatabasePartiallyResponseGetDatabaseAttributeTypeOk(o.Database)
|
||||
}
|
||||
|
||||
// SetDatabase sets field value
|
||||
func (o *UpdateDatabasePartiallyResponse) SetDatabase(v UpdateDatabasePartiallyResponseGetDatabaseRetType) {
|
||||
setUpdateDatabasePartiallyResponseGetDatabaseAttributeType(&o.Database, v)
|
||||
}
|
||||
|
||||
func (o UpdateDatabasePartiallyResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getUpdateDatabasePartiallyResponseGetDatabaseAttributeTypeOk(o.Database); ok {
|
||||
toSerialize["Database"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableUpdateDatabasePartiallyResponse struct {
|
||||
value *UpdateDatabasePartiallyResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableUpdateDatabasePartiallyResponse) Get() *UpdateDatabasePartiallyResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableUpdateDatabasePartiallyResponse) Set(val *UpdateDatabasePartiallyResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableUpdateDatabasePartiallyResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableUpdateDatabasePartiallyResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableUpdateDatabasePartiallyResponse(val *UpdateDatabasePartiallyResponse) *NullableUpdateDatabasePartiallyResponse {
|
||||
return &NullableUpdateDatabasePartiallyResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableUpdateDatabasePartiallyResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableUpdateDatabasePartiallyResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue