repo_description: Headless cloud-native authentication and identity management written in Go. Scales to a billion+ users. Replace Homegrown, Auth0, Okta, Firebase with better UX and DX. Passkeys, Social Sign In, OIDC, Magic Link, Multi-Factor Auth, SMS, SAML, TOTP, and more. Runs everywhere, runs best on Ory Network. 
repo_topics: hacktoberfest identity identity-management login profile-management registration user user-management user-profile user-profiles users
code: /*
  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: [REDACTED_EMAIL]
  */
  
  // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
  
  package client
  
  import (
  	"encoding/json"
  )
  
  // checks if the IdentityWithCredentialsOidcConfig type satisfies the MappedNullable interface at compile time
  var _ MappedNullable = &IdentityWithCredentialsOidcConfig{}
  
  // IdentityWithCredentialsOidcConfig struct for IdentityWithCredentialsOidcConfig
  type IdentityWithCredentialsOidcConfig struct {
  	// A list of OpenID Connect Providers
  	Providers            []IdentityWithCredentialsOidcConfigProvider `json:"providers,omitempty"`
  	AdditionalProperties map[string]interface{}
  }
  
  type _IdentityWithCredentialsOidcConfig IdentityWithCredentialsOidcConfig
  
  // NewIdentityWithCredentialsOidcConfig instantiates a new IdentityWithCredentialsOidcConfig 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 NewIdentityWithCredentialsOidcConfig() *IdentityWithCredentialsOidcConfig {
  	this := IdentityWithCredentialsOidcConfig{}
  	return &this
  }
  
  // NewIdentityWithCredentialsOidcConfigWithDefaults instantiates a new IdentityWithCredentialsOidcConfig 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 NewIdentityWithCredentialsOidcConfigWithDefaults() *IdentityWithCredentialsOidcConfig {
  	this := IdentityWithCredentialsOidcConfig{}
  	return &this
  }
  
  // GetProviders returns the Providers field value if set, zero value otherwise.
  func (o *IdentityWithCredentialsOidcConfig) GetProviders() []IdentityWithCredentialsOidcConfigProvider {
  	if o == nil || IsNil(o.Providers) {
  		var ret []IdentityWithCredentialsOidcConfigProvider
  		return ret
  	}
  	return o.Providers
  }
  
  // GetProvidersOk returns a tuple with the Providers field value if set, nil otherwise
  // and a boolean to check if the value has been set.
  func (o *IdentityWithCredentialsOidcConfig) GetProvidersOk() ([]IdentityWithCredentialsOidcConfigProvider, bool) {
  	if o == nil || IsNil(o.Providers) {
  		return nil, false
  	}
  	return o.Providers, true
  }
  
  // HasProviders returns a boolean if a field has been set.
  func (o *IdentityWithCredentialsOidcConfig) HasProviders() bool {
  	if o != nil && !IsNil(o.Providers) {
  		return true
  	}
  
  	return false
  }
  
  // SetProviders gets a reference to the given []IdentityWithCredentialsOidcConfigProvider and assigns it to the Providers field.
  func (o *IdentityWithCredentialsOidcConfig) SetProviders(v []IdentityWithCredentialsOidcConfigProvider) {
  	o.Providers = v
  }
  
  func (o IdentityWithCredentialsOidcConfig) MarshalJSON() ([]byte, error) {
  	toSerialize, err := o.ToMap()
  	if err != nil {
  		return []byte{}, err
  	}
  	return json.Marshal(toSerialize)
  }
  
  func (o IdentityWithCredentialsOidcConfig) ToMap() (map[string]interface{}, error) {
  	toSerialize := map[string]interface{}{}
  	if !IsNil(o.Providers) {
  		toSerialize["providers"] = o.Providers
  	}
  
  	for key, value := range o.AdditionalProperties {
  		toSerialize[key] = value
  	}
  
  	return toSerialize, nil
  }
  
  func (o *IdentityWithCredentialsOidcConfig) UnmarshalJSON(data []byte) (err error) {
  	varIdentityWithCredentialsOidcConfig := _IdentityWithCredentialsOidcConfig{}
  
  	err = json.Unmarshal(data, &varIdentityWithCredentialsOidcConfig)
  
  	if err != nil {
  		return err
  	}
  
  	*o = IdentityWithCredentialsOidcConfig(varIdentityWithCredentialsOidcConfig)
  
  	additionalProperties := make(map[string]interface{})
  
  	if err = json.Unmarshal(data, &additionalProperties); err == nil {
  		delete(additionalProperties, "providers")
  		o.AdditionalProperties = additionalProperties
  	}
  
  	return err
  }
  
  type NullableIdentityWithCredentialsOidcConfig struct {
  	value *IdentityWithCredentialsOidcConfig
  	isSet bool
  }
  
  func (v NullableIdentityWithCredentialsOidcConfig) Get() *IdentityWithCredentialsOidcConfig {
  	return v.value
  }
  
  func (v *NullableIdentityWithCredentialsOidcConfig) Set(val *IdentityWithCredentialsOidcConfig) {
  	v.value = val
  	v.isSet = true
  }
  
  func (v NullableIdentityWithCredentialsOidcConfig) IsSet() bool {
  	return v.isSet
  }
  
  func (v *NullableIdentityWithCredentialsOidcConfig) Unset() {
  	v.value = nil
  	v.isSet = false
  }
  
  func NewNullableIdentityWithCredentialsOidcConfig(val *IdentityWithCredentialsOidcConfig) *NullableIdentityWithCredentialsOidcConfig {
  	return &NullableIdentityWithCredentialsOidcConfig{value: val, isSet: true}
  }
  
  func (v NullableIdentityWithCredentialsOidcConfig) MarshalJSON() ([]byte, error) {
  	return json.Marshal(v.value)
  }
  
  func (v *NullableIdentityWithCredentialsOidcConfig) UnmarshalJSON(src []byte) error {
  	v.isSet = true
  	return json.Unmarshal(src, &v.value)
  }
  