Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
169 lines
4.4 KiB
Go
169 lines
4.4 KiB
Go
/*
|
|
Ory Identities API
|
|
|
|
This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more.
|
|
|
|
API version:
|
|
Contact: office@ory.sh
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package client
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
// checks if the IsReady503Response type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IsReady503Response{}
|
|
|
|
// IsReady503Response struct for IsReady503Response
|
|
type IsReady503Response struct {
|
|
// Errors contains a list of errors that caused the not ready status.
|
|
Errors map[string]string `json:"errors"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IsReady503Response IsReady503Response
|
|
|
|
// NewIsReady503Response instantiates a new IsReady503Response 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 NewIsReady503Response(errors map[string]string) *IsReady503Response {
|
|
this := IsReady503Response{}
|
|
this.Errors = errors
|
|
return &this
|
|
}
|
|
|
|
// NewIsReady503ResponseWithDefaults instantiates a new IsReady503Response 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 NewIsReady503ResponseWithDefaults() *IsReady503Response {
|
|
this := IsReady503Response{}
|
|
return &this
|
|
}
|
|
|
|
// GetErrors returns the Errors field value
|
|
func (o *IsReady503Response) GetErrors() map[string]string {
|
|
if o == nil {
|
|
var ret map[string]string
|
|
return ret
|
|
}
|
|
|
|
return o.Errors
|
|
}
|
|
|
|
// GetErrorsOk returns a tuple with the Errors field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IsReady503Response) GetErrorsOk() (*map[string]string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Errors, true
|
|
}
|
|
|
|
// SetErrors sets field value
|
|
func (o *IsReady503Response) SetErrors(v map[string]string) {
|
|
o.Errors = v
|
|
}
|
|
|
|
func (o IsReady503Response) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IsReady503Response) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["errors"] = o.Errors
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *IsReady503Response) 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{
|
|
"errors",
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
varIsReady503Response := _IsReady503Response{}
|
|
|
|
err = json.Unmarshal(data, &varIsReady503Response)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IsReady503Response(varIsReady503Response)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "errors")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIsReady503Response struct {
|
|
value *IsReady503Response
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIsReady503Response) Get() *IsReady503Response {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIsReady503Response) Set(val *IsReady503Response) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIsReady503Response) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIsReady503Response) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIsReady503Response(val *IsReady503Response) *NullableIsReady503Response {
|
|
return &NullableIsReady503Response{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIsReady503Response) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIsReady503Response) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|