mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
8dddc05bc0
* source/saml: Add ForceAuthn support to SAML AuthnRequest
1505 lines
44 KiB
Go
Generated
1505 lines
44 KiB
Go
Generated
/*
|
|
authentik
|
|
|
|
Making authentication simple.
|
|
|
|
API version: 2026.5.0-rc1
|
|
Contact: hello@goauthentik.io
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package api
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
// checks if the SAMLSource type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SAMLSource{}
|
|
|
|
// SAMLSource SAMLSource Serializer
|
|
type SAMLSource struct {
|
|
Pk string `json:"pk"`
|
|
// Source's display Name.
|
|
Name string `json:"name"`
|
|
// Internal source name, used in URLs.
|
|
Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
// When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.
|
|
Promoted *bool `json:"promoted,omitempty"`
|
|
// Flow to use when authenticating existing users.
|
|
AuthenticationFlow NullableString `json:"authentication_flow,omitempty"`
|
|
// Flow to use when enrolling new users.
|
|
EnrollmentFlow NullableString `json:"enrollment_flow,omitempty"`
|
|
UserPropertyMappings []string `json:"user_property_mappings,omitempty"`
|
|
GroupPropertyMappings []string `json:"group_property_mappings,omitempty"`
|
|
// Get object component so that we know how to edit the object
|
|
Component string `json:"component"`
|
|
// Return object's verbose_name
|
|
VerboseName string `json:"verbose_name"`
|
|
// Return object's plural verbose_name
|
|
VerboseNamePlural string `json:"verbose_name_plural"`
|
|
// Return internal model name
|
|
MetaModelName string `json:"meta_model_name"`
|
|
PolicyEngineMode *PolicyEngineMode `json:"policy_engine_mode,omitempty"`
|
|
// How the source determines if an existing user should be authenticated or a new user enrolled.
|
|
UserMatchingMode *UserMatchingModeEnum `json:"user_matching_mode,omitempty"`
|
|
// Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
|
Managed NullableString `json:"managed"`
|
|
UserPathTemplate *string `json:"user_path_template,omitempty"`
|
|
Icon *string `json:"icon,omitempty"`
|
|
IconUrl string `json:"icon_url"`
|
|
IconThemedUrls NullableThemedUrls `json:"icon_themed_urls"`
|
|
// How the source determines if an existing group should be used or a new group created.
|
|
GroupMatchingMode *GroupMatchingModeEnum `json:"group_matching_mode,omitempty"`
|
|
// Flow used before authentication.
|
|
PreAuthenticationFlow string `json:"pre_authentication_flow"`
|
|
// Also known as Entity ID. Defaults the Metadata URL.
|
|
Issuer *string `json:"issuer,omitempty"`
|
|
// URL that the initial Login request is sent to.
|
|
SsoUrl string `json:"sso_url"`
|
|
// Optional URL if your IDP supports Single-Logout.
|
|
SloUrl NullableString `json:"slo_url,omitempty"`
|
|
// Allows authentication flows initiated by the IdP. This can be a security risk, as no validation of the request ID is done.
|
|
AllowIdpInitiated *bool `json:"allow_idp_initiated,omitempty"`
|
|
// When enabled, the IdP will re-authenticate the user even if a session exists.
|
|
ForceAuthn *bool `json:"force_authn,omitempty"`
|
|
// NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
|
|
NameIdPolicy *SAMLNameIDPolicyEnum `json:"name_id_policy,omitempty"`
|
|
BindingType *BindingTypeEnum `json:"binding_type,omitempty"`
|
|
// When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default.
|
|
VerificationKp NullableString `json:"verification_kp,omitempty"`
|
|
// Keypair used to sign outgoing Responses going to the Identity Provider.
|
|
SigningKp NullableString `json:"signing_kp,omitempty"`
|
|
DigestAlgorithm *DigestAlgorithmEnum `json:"digest_algorithm,omitempty"`
|
|
SignatureAlgorithm *SignatureAlgorithmEnum `json:"signature_algorithm,omitempty"`
|
|
// Time offset when temporary users should be deleted. This only applies if your IDP uses the NameID Format 'transient', and the user doesn't log out manually. (Format: hours=1;minutes=2;seconds=3).
|
|
TemporaryUserDeleteAfter *string `json:"temporary_user_delete_after,omitempty"`
|
|
// When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
|
|
EncryptionKp NullableString `json:"encryption_kp,omitempty"`
|
|
SignedAssertion *bool `json:"signed_assertion,omitempty"`
|
|
SignedResponse *bool `json:"signed_response,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _SAMLSource SAMLSource
|
|
|
|
// NewSAMLSource instantiates a new SAMLSource 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 NewSAMLSource(pk string, name string, slug string, component string, verboseName string, verboseNamePlural string, metaModelName string, managed NullableString, iconUrl string, iconThemedUrls NullableThemedUrls, preAuthenticationFlow string, ssoUrl string) *SAMLSource {
|
|
this := SAMLSource{}
|
|
this.Pk = pk
|
|
this.Name = name
|
|
this.Slug = slug
|
|
this.Component = component
|
|
this.VerboseName = verboseName
|
|
this.VerboseNamePlural = verboseNamePlural
|
|
this.MetaModelName = metaModelName
|
|
this.Managed = managed
|
|
this.IconUrl = iconUrl
|
|
this.IconThemedUrls = iconThemedUrls
|
|
this.PreAuthenticationFlow = preAuthenticationFlow
|
|
this.SsoUrl = ssoUrl
|
|
return &this
|
|
}
|
|
|
|
// NewSAMLSourceWithDefaults instantiates a new SAMLSource 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 NewSAMLSourceWithDefaults() *SAMLSource {
|
|
this := SAMLSource{}
|
|
return &this
|
|
}
|
|
|
|
// GetPk returns the Pk field value
|
|
func (o *SAMLSource) GetPk() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Pk
|
|
}
|
|
|
|
// GetPkOk returns a tuple with the Pk field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetPkOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Pk, true
|
|
}
|
|
|
|
// SetPk sets field value
|
|
func (o *SAMLSource) SetPk(v string) {
|
|
o.Pk = v
|
|
}
|
|
|
|
// GetName returns the Name field value
|
|
func (o *SAMLSource) GetName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Name, true
|
|
}
|
|
|
|
// SetName sets field value
|
|
func (o *SAMLSource) SetName(v string) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetSlug returns the Slug field value
|
|
func (o *SAMLSource) GetSlug() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Slug
|
|
}
|
|
|
|
// GetSlugOk returns a tuple with the Slug field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetSlugOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Slug, true
|
|
}
|
|
|
|
// SetSlug sets field value
|
|
func (o *SAMLSource) SetSlug(v string) {
|
|
o.Slug = v
|
|
}
|
|
|
|
// GetEnabled returns the Enabled field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetEnabled() bool {
|
|
if o == nil || IsNil(o.Enabled) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Enabled
|
|
}
|
|
|
|
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetEnabledOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Enabled) {
|
|
return nil, false
|
|
}
|
|
return o.Enabled, true
|
|
}
|
|
|
|
// HasEnabled returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasEnabled() bool {
|
|
if o != nil && !IsNil(o.Enabled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
|
|
func (o *SAMLSource) SetEnabled(v bool) {
|
|
o.Enabled = &v
|
|
}
|
|
|
|
// GetPromoted returns the Promoted field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetPromoted() bool {
|
|
if o == nil || IsNil(o.Promoted) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Promoted
|
|
}
|
|
|
|
// GetPromotedOk returns a tuple with the Promoted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetPromotedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Promoted) {
|
|
return nil, false
|
|
}
|
|
return o.Promoted, true
|
|
}
|
|
|
|
// HasPromoted returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasPromoted() bool {
|
|
if o != nil && !IsNil(o.Promoted) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPromoted gets a reference to the given bool and assigns it to the Promoted field.
|
|
func (o *SAMLSource) SetPromoted(v bool) {
|
|
o.Promoted = &v
|
|
}
|
|
|
|
// GetAuthenticationFlow returns the AuthenticationFlow field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLSource) GetAuthenticationFlow() string {
|
|
if o == nil || IsNil(o.AuthenticationFlow.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthenticationFlow.Get()
|
|
}
|
|
|
|
// GetAuthenticationFlowOk returns a tuple with the AuthenticationFlow field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetAuthenticationFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.AuthenticationFlow.Get(), o.AuthenticationFlow.IsSet()
|
|
}
|
|
|
|
// HasAuthenticationFlow returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasAuthenticationFlow() bool {
|
|
if o != nil && o.AuthenticationFlow.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthenticationFlow gets a reference to the given NullableString and assigns it to the AuthenticationFlow field.
|
|
func (o *SAMLSource) SetAuthenticationFlow(v string) {
|
|
o.AuthenticationFlow.Set(&v)
|
|
}
|
|
|
|
// SetAuthenticationFlowNil sets the value for AuthenticationFlow to be an explicit nil
|
|
func (o *SAMLSource) SetAuthenticationFlowNil() {
|
|
o.AuthenticationFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthenticationFlow ensures that no value is present for AuthenticationFlow, not even an explicit nil
|
|
func (o *SAMLSource) UnsetAuthenticationFlow() {
|
|
o.AuthenticationFlow.Unset()
|
|
}
|
|
|
|
// GetEnrollmentFlow returns the EnrollmentFlow field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLSource) GetEnrollmentFlow() string {
|
|
if o == nil || IsNil(o.EnrollmentFlow.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EnrollmentFlow.Get()
|
|
}
|
|
|
|
// GetEnrollmentFlowOk returns a tuple with the EnrollmentFlow field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetEnrollmentFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.EnrollmentFlow.Get(), o.EnrollmentFlow.IsSet()
|
|
}
|
|
|
|
// HasEnrollmentFlow returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasEnrollmentFlow() bool {
|
|
if o != nil && o.EnrollmentFlow.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnrollmentFlow gets a reference to the given NullableString and assigns it to the EnrollmentFlow field.
|
|
func (o *SAMLSource) SetEnrollmentFlow(v string) {
|
|
o.EnrollmentFlow.Set(&v)
|
|
}
|
|
|
|
// SetEnrollmentFlowNil sets the value for EnrollmentFlow to be an explicit nil
|
|
func (o *SAMLSource) SetEnrollmentFlowNil() {
|
|
o.EnrollmentFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetEnrollmentFlow ensures that no value is present for EnrollmentFlow, not even an explicit nil
|
|
func (o *SAMLSource) UnsetEnrollmentFlow() {
|
|
o.EnrollmentFlow.Unset()
|
|
}
|
|
|
|
// GetUserPropertyMappings returns the UserPropertyMappings field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetUserPropertyMappings() []string {
|
|
if o == nil || IsNil(o.UserPropertyMappings) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.UserPropertyMappings
|
|
}
|
|
|
|
// GetUserPropertyMappingsOk returns a tuple with the UserPropertyMappings field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetUserPropertyMappingsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.UserPropertyMappings) {
|
|
return nil, false
|
|
}
|
|
return o.UserPropertyMappings, true
|
|
}
|
|
|
|
// HasUserPropertyMappings returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasUserPropertyMappings() bool {
|
|
if o != nil && !IsNil(o.UserPropertyMappings) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserPropertyMappings gets a reference to the given []string and assigns it to the UserPropertyMappings field.
|
|
func (o *SAMLSource) SetUserPropertyMappings(v []string) {
|
|
o.UserPropertyMappings = v
|
|
}
|
|
|
|
// GetGroupPropertyMappings returns the GroupPropertyMappings field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetGroupPropertyMappings() []string {
|
|
if o == nil || IsNil(o.GroupPropertyMappings) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.GroupPropertyMappings
|
|
}
|
|
|
|
// GetGroupPropertyMappingsOk returns a tuple with the GroupPropertyMappings field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetGroupPropertyMappingsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.GroupPropertyMappings) {
|
|
return nil, false
|
|
}
|
|
return o.GroupPropertyMappings, true
|
|
}
|
|
|
|
// HasGroupPropertyMappings returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasGroupPropertyMappings() bool {
|
|
if o != nil && !IsNil(o.GroupPropertyMappings) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupPropertyMappings gets a reference to the given []string and assigns it to the GroupPropertyMappings field.
|
|
func (o *SAMLSource) SetGroupPropertyMappings(v []string) {
|
|
o.GroupPropertyMappings = v
|
|
}
|
|
|
|
// GetComponent returns the Component field value
|
|
func (o *SAMLSource) GetComponent() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Component
|
|
}
|
|
|
|
// GetComponentOk returns a tuple with the Component field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetComponentOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Component, true
|
|
}
|
|
|
|
// SetComponent sets field value
|
|
func (o *SAMLSource) SetComponent(v string) {
|
|
o.Component = v
|
|
}
|
|
|
|
// GetVerboseName returns the VerboseName field value
|
|
func (o *SAMLSource) GetVerboseName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.VerboseName
|
|
}
|
|
|
|
// GetVerboseNameOk returns a tuple with the VerboseName field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetVerboseNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.VerboseName, true
|
|
}
|
|
|
|
// SetVerboseName sets field value
|
|
func (o *SAMLSource) SetVerboseName(v string) {
|
|
o.VerboseName = v
|
|
}
|
|
|
|
// GetVerboseNamePlural returns the VerboseNamePlural field value
|
|
func (o *SAMLSource) GetVerboseNamePlural() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.VerboseNamePlural
|
|
}
|
|
|
|
// GetVerboseNamePluralOk returns a tuple with the VerboseNamePlural field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetVerboseNamePluralOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.VerboseNamePlural, true
|
|
}
|
|
|
|
// SetVerboseNamePlural sets field value
|
|
func (o *SAMLSource) SetVerboseNamePlural(v string) {
|
|
o.VerboseNamePlural = v
|
|
}
|
|
|
|
// GetMetaModelName returns the MetaModelName field value
|
|
func (o *SAMLSource) GetMetaModelName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.MetaModelName
|
|
}
|
|
|
|
// GetMetaModelNameOk returns a tuple with the MetaModelName field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetMetaModelNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.MetaModelName, true
|
|
}
|
|
|
|
// SetMetaModelName sets field value
|
|
func (o *SAMLSource) SetMetaModelName(v string) {
|
|
o.MetaModelName = v
|
|
}
|
|
|
|
// GetPolicyEngineMode returns the PolicyEngineMode field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetPolicyEngineMode() PolicyEngineMode {
|
|
if o == nil || IsNil(o.PolicyEngineMode) {
|
|
var ret PolicyEngineMode
|
|
return ret
|
|
}
|
|
return *o.PolicyEngineMode
|
|
}
|
|
|
|
// GetPolicyEngineModeOk returns a tuple with the PolicyEngineMode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetPolicyEngineModeOk() (*PolicyEngineMode, bool) {
|
|
if o == nil || IsNil(o.PolicyEngineMode) {
|
|
return nil, false
|
|
}
|
|
return o.PolicyEngineMode, true
|
|
}
|
|
|
|
// HasPolicyEngineMode returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasPolicyEngineMode() bool {
|
|
if o != nil && !IsNil(o.PolicyEngineMode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPolicyEngineMode gets a reference to the given PolicyEngineMode and assigns it to the PolicyEngineMode field.
|
|
func (o *SAMLSource) SetPolicyEngineMode(v PolicyEngineMode) {
|
|
o.PolicyEngineMode = &v
|
|
}
|
|
|
|
// GetUserMatchingMode returns the UserMatchingMode field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetUserMatchingMode() UserMatchingModeEnum {
|
|
if o == nil || IsNil(o.UserMatchingMode) {
|
|
var ret UserMatchingModeEnum
|
|
return ret
|
|
}
|
|
return *o.UserMatchingMode
|
|
}
|
|
|
|
// GetUserMatchingModeOk returns a tuple with the UserMatchingMode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetUserMatchingModeOk() (*UserMatchingModeEnum, bool) {
|
|
if o == nil || IsNil(o.UserMatchingMode) {
|
|
return nil, false
|
|
}
|
|
return o.UserMatchingMode, true
|
|
}
|
|
|
|
// HasUserMatchingMode returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasUserMatchingMode() bool {
|
|
if o != nil && !IsNil(o.UserMatchingMode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserMatchingMode gets a reference to the given UserMatchingModeEnum and assigns it to the UserMatchingMode field.
|
|
func (o *SAMLSource) SetUserMatchingMode(v UserMatchingModeEnum) {
|
|
o.UserMatchingMode = &v
|
|
}
|
|
|
|
// GetManaged returns the Managed field value
|
|
// If the value is explicit nil, the zero value for string will be returned
|
|
func (o *SAMLSource) GetManaged() string {
|
|
if o == nil || o.Managed.Get() == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return *o.Managed.Get()
|
|
}
|
|
|
|
// GetManagedOk returns a tuple with the Managed field value
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetManagedOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.Managed.Get(), o.Managed.IsSet()
|
|
}
|
|
|
|
// SetManaged sets field value
|
|
func (o *SAMLSource) SetManaged(v string) {
|
|
o.Managed.Set(&v)
|
|
}
|
|
|
|
// GetUserPathTemplate returns the UserPathTemplate field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetUserPathTemplate() string {
|
|
if o == nil || IsNil(o.UserPathTemplate) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserPathTemplate
|
|
}
|
|
|
|
// GetUserPathTemplateOk returns a tuple with the UserPathTemplate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetUserPathTemplateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserPathTemplate) {
|
|
return nil, false
|
|
}
|
|
return o.UserPathTemplate, true
|
|
}
|
|
|
|
// HasUserPathTemplate returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasUserPathTemplate() bool {
|
|
if o != nil && !IsNil(o.UserPathTemplate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserPathTemplate gets a reference to the given string and assigns it to the UserPathTemplate field.
|
|
func (o *SAMLSource) SetUserPathTemplate(v string) {
|
|
o.UserPathTemplate = &v
|
|
}
|
|
|
|
// GetIcon returns the Icon field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetIcon() string {
|
|
if o == nil || IsNil(o.Icon) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Icon
|
|
}
|
|
|
|
// GetIconOk returns a tuple with the Icon field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetIconOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Icon) {
|
|
return nil, false
|
|
}
|
|
return o.Icon, true
|
|
}
|
|
|
|
// HasIcon returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasIcon() bool {
|
|
if o != nil && !IsNil(o.Icon) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIcon gets a reference to the given string and assigns it to the Icon field.
|
|
func (o *SAMLSource) SetIcon(v string) {
|
|
o.Icon = &v
|
|
}
|
|
|
|
// GetIconUrl returns the IconUrl field value
|
|
func (o *SAMLSource) GetIconUrl() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.IconUrl
|
|
}
|
|
|
|
// GetIconUrlOk returns a tuple with the IconUrl field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetIconUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.IconUrl, true
|
|
}
|
|
|
|
// SetIconUrl sets field value
|
|
func (o *SAMLSource) SetIconUrl(v string) {
|
|
o.IconUrl = v
|
|
}
|
|
|
|
// GetIconThemedUrls returns the IconThemedUrls field value
|
|
// If the value is explicit nil, the zero value for ThemedUrls will be returned
|
|
func (o *SAMLSource) GetIconThemedUrls() ThemedUrls {
|
|
if o == nil || o.IconThemedUrls.Get() == nil {
|
|
var ret ThemedUrls
|
|
return ret
|
|
}
|
|
|
|
return *o.IconThemedUrls.Get()
|
|
}
|
|
|
|
// GetIconThemedUrlsOk returns a tuple with the IconThemedUrls field value
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetIconThemedUrlsOk() (*ThemedUrls, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.IconThemedUrls.Get(), o.IconThemedUrls.IsSet()
|
|
}
|
|
|
|
// SetIconThemedUrls sets field value
|
|
func (o *SAMLSource) SetIconThemedUrls(v ThemedUrls) {
|
|
o.IconThemedUrls.Set(&v)
|
|
}
|
|
|
|
// GetGroupMatchingMode returns the GroupMatchingMode field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetGroupMatchingMode() GroupMatchingModeEnum {
|
|
if o == nil || IsNil(o.GroupMatchingMode) {
|
|
var ret GroupMatchingModeEnum
|
|
return ret
|
|
}
|
|
return *o.GroupMatchingMode
|
|
}
|
|
|
|
// GetGroupMatchingModeOk returns a tuple with the GroupMatchingMode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetGroupMatchingModeOk() (*GroupMatchingModeEnum, bool) {
|
|
if o == nil || IsNil(o.GroupMatchingMode) {
|
|
return nil, false
|
|
}
|
|
return o.GroupMatchingMode, true
|
|
}
|
|
|
|
// HasGroupMatchingMode returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasGroupMatchingMode() bool {
|
|
if o != nil && !IsNil(o.GroupMatchingMode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupMatchingMode gets a reference to the given GroupMatchingModeEnum and assigns it to the GroupMatchingMode field.
|
|
func (o *SAMLSource) SetGroupMatchingMode(v GroupMatchingModeEnum) {
|
|
o.GroupMatchingMode = &v
|
|
}
|
|
|
|
// GetPreAuthenticationFlow returns the PreAuthenticationFlow field value
|
|
func (o *SAMLSource) GetPreAuthenticationFlow() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.PreAuthenticationFlow
|
|
}
|
|
|
|
// GetPreAuthenticationFlowOk returns a tuple with the PreAuthenticationFlow field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetPreAuthenticationFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.PreAuthenticationFlow, true
|
|
}
|
|
|
|
// SetPreAuthenticationFlow sets field value
|
|
func (o *SAMLSource) SetPreAuthenticationFlow(v string) {
|
|
o.PreAuthenticationFlow = v
|
|
}
|
|
|
|
// GetIssuer returns the Issuer field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetIssuer() string {
|
|
if o == nil || IsNil(o.Issuer) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Issuer
|
|
}
|
|
|
|
// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetIssuerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Issuer) {
|
|
return nil, false
|
|
}
|
|
return o.Issuer, true
|
|
}
|
|
|
|
// HasIssuer returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasIssuer() bool {
|
|
if o != nil && !IsNil(o.Issuer) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIssuer gets a reference to the given string and assigns it to the Issuer field.
|
|
func (o *SAMLSource) SetIssuer(v string) {
|
|
o.Issuer = &v
|
|
}
|
|
|
|
// GetSsoUrl returns the SsoUrl field value
|
|
func (o *SAMLSource) GetSsoUrl() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.SsoUrl
|
|
}
|
|
|
|
// GetSsoUrlOk returns a tuple with the SsoUrl field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetSsoUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.SsoUrl, true
|
|
}
|
|
|
|
// SetSsoUrl sets field value
|
|
func (o *SAMLSource) SetSsoUrl(v string) {
|
|
o.SsoUrl = v
|
|
}
|
|
|
|
// GetSloUrl returns the SloUrl field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLSource) GetSloUrl() string {
|
|
if o == nil || IsNil(o.SloUrl.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SloUrl.Get()
|
|
}
|
|
|
|
// GetSloUrlOk returns a tuple with the SloUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetSloUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.SloUrl.Get(), o.SloUrl.IsSet()
|
|
}
|
|
|
|
// HasSloUrl returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasSloUrl() bool {
|
|
if o != nil && o.SloUrl.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSloUrl gets a reference to the given NullableString and assigns it to the SloUrl field.
|
|
func (o *SAMLSource) SetSloUrl(v string) {
|
|
o.SloUrl.Set(&v)
|
|
}
|
|
|
|
// SetSloUrlNil sets the value for SloUrl to be an explicit nil
|
|
func (o *SAMLSource) SetSloUrlNil() {
|
|
o.SloUrl.Set(nil)
|
|
}
|
|
|
|
// UnsetSloUrl ensures that no value is present for SloUrl, not even an explicit nil
|
|
func (o *SAMLSource) UnsetSloUrl() {
|
|
o.SloUrl.Unset()
|
|
}
|
|
|
|
// GetAllowIdpInitiated returns the AllowIdpInitiated field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetAllowIdpInitiated() bool {
|
|
if o == nil || IsNil(o.AllowIdpInitiated) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.AllowIdpInitiated
|
|
}
|
|
|
|
// GetAllowIdpInitiatedOk returns a tuple with the AllowIdpInitiated field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetAllowIdpInitiatedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.AllowIdpInitiated) {
|
|
return nil, false
|
|
}
|
|
return o.AllowIdpInitiated, true
|
|
}
|
|
|
|
// HasAllowIdpInitiated returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasAllowIdpInitiated() bool {
|
|
if o != nil && !IsNil(o.AllowIdpInitiated) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAllowIdpInitiated gets a reference to the given bool and assigns it to the AllowIdpInitiated field.
|
|
func (o *SAMLSource) SetAllowIdpInitiated(v bool) {
|
|
o.AllowIdpInitiated = &v
|
|
}
|
|
|
|
// GetForceAuthn returns the ForceAuthn field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetForceAuthn() bool {
|
|
if o == nil || IsNil(o.ForceAuthn) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.ForceAuthn
|
|
}
|
|
|
|
// GetForceAuthnOk returns a tuple with the ForceAuthn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetForceAuthnOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.ForceAuthn) {
|
|
return nil, false
|
|
}
|
|
return o.ForceAuthn, true
|
|
}
|
|
|
|
// HasForceAuthn returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasForceAuthn() bool {
|
|
if o != nil && !IsNil(o.ForceAuthn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetForceAuthn gets a reference to the given bool and assigns it to the ForceAuthn field.
|
|
func (o *SAMLSource) SetForceAuthn(v bool) {
|
|
o.ForceAuthn = &v
|
|
}
|
|
|
|
// GetNameIdPolicy returns the NameIdPolicy field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetNameIdPolicy() SAMLNameIDPolicyEnum {
|
|
if o == nil || IsNil(o.NameIdPolicy) {
|
|
var ret SAMLNameIDPolicyEnum
|
|
return ret
|
|
}
|
|
return *o.NameIdPolicy
|
|
}
|
|
|
|
// GetNameIdPolicyOk returns a tuple with the NameIdPolicy field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetNameIdPolicyOk() (*SAMLNameIDPolicyEnum, bool) {
|
|
if o == nil || IsNil(o.NameIdPolicy) {
|
|
return nil, false
|
|
}
|
|
return o.NameIdPolicy, true
|
|
}
|
|
|
|
// HasNameIdPolicy returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasNameIdPolicy() bool {
|
|
if o != nil && !IsNil(o.NameIdPolicy) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNameIdPolicy gets a reference to the given SAMLNameIDPolicyEnum and assigns it to the NameIdPolicy field.
|
|
func (o *SAMLSource) SetNameIdPolicy(v SAMLNameIDPolicyEnum) {
|
|
o.NameIdPolicy = &v
|
|
}
|
|
|
|
// GetBindingType returns the BindingType field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetBindingType() BindingTypeEnum {
|
|
if o == nil || IsNil(o.BindingType) {
|
|
var ret BindingTypeEnum
|
|
return ret
|
|
}
|
|
return *o.BindingType
|
|
}
|
|
|
|
// GetBindingTypeOk returns a tuple with the BindingType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetBindingTypeOk() (*BindingTypeEnum, bool) {
|
|
if o == nil || IsNil(o.BindingType) {
|
|
return nil, false
|
|
}
|
|
return o.BindingType, true
|
|
}
|
|
|
|
// HasBindingType returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasBindingType() bool {
|
|
if o != nil && !IsNil(o.BindingType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBindingType gets a reference to the given BindingTypeEnum and assigns it to the BindingType field.
|
|
func (o *SAMLSource) SetBindingType(v BindingTypeEnum) {
|
|
o.BindingType = &v
|
|
}
|
|
|
|
// GetVerificationKp returns the VerificationKp field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLSource) GetVerificationKp() string {
|
|
if o == nil || IsNil(o.VerificationKp.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.VerificationKp.Get()
|
|
}
|
|
|
|
// GetVerificationKpOk returns a tuple with the VerificationKp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetVerificationKpOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.VerificationKp.Get(), o.VerificationKp.IsSet()
|
|
}
|
|
|
|
// HasVerificationKp returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasVerificationKp() bool {
|
|
if o != nil && o.VerificationKp.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVerificationKp gets a reference to the given NullableString and assigns it to the VerificationKp field.
|
|
func (o *SAMLSource) SetVerificationKp(v string) {
|
|
o.VerificationKp.Set(&v)
|
|
}
|
|
|
|
// SetVerificationKpNil sets the value for VerificationKp to be an explicit nil
|
|
func (o *SAMLSource) SetVerificationKpNil() {
|
|
o.VerificationKp.Set(nil)
|
|
}
|
|
|
|
// UnsetVerificationKp ensures that no value is present for VerificationKp, not even an explicit nil
|
|
func (o *SAMLSource) UnsetVerificationKp() {
|
|
o.VerificationKp.Unset()
|
|
}
|
|
|
|
// GetSigningKp returns the SigningKp field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLSource) GetSigningKp() string {
|
|
if o == nil || IsNil(o.SigningKp.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SigningKp.Get()
|
|
}
|
|
|
|
// GetSigningKpOk returns a tuple with the SigningKp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetSigningKpOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.SigningKp.Get(), o.SigningKp.IsSet()
|
|
}
|
|
|
|
// HasSigningKp returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasSigningKp() bool {
|
|
if o != nil && o.SigningKp.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSigningKp gets a reference to the given NullableString and assigns it to the SigningKp field.
|
|
func (o *SAMLSource) SetSigningKp(v string) {
|
|
o.SigningKp.Set(&v)
|
|
}
|
|
|
|
// SetSigningKpNil sets the value for SigningKp to be an explicit nil
|
|
func (o *SAMLSource) SetSigningKpNil() {
|
|
o.SigningKp.Set(nil)
|
|
}
|
|
|
|
// UnsetSigningKp ensures that no value is present for SigningKp, not even an explicit nil
|
|
func (o *SAMLSource) UnsetSigningKp() {
|
|
o.SigningKp.Unset()
|
|
}
|
|
|
|
// GetDigestAlgorithm returns the DigestAlgorithm field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetDigestAlgorithm() DigestAlgorithmEnum {
|
|
if o == nil || IsNil(o.DigestAlgorithm) {
|
|
var ret DigestAlgorithmEnum
|
|
return ret
|
|
}
|
|
return *o.DigestAlgorithm
|
|
}
|
|
|
|
// GetDigestAlgorithmOk returns a tuple with the DigestAlgorithm field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetDigestAlgorithmOk() (*DigestAlgorithmEnum, bool) {
|
|
if o == nil || IsNil(o.DigestAlgorithm) {
|
|
return nil, false
|
|
}
|
|
return o.DigestAlgorithm, true
|
|
}
|
|
|
|
// HasDigestAlgorithm returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasDigestAlgorithm() bool {
|
|
if o != nil && !IsNil(o.DigestAlgorithm) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDigestAlgorithm gets a reference to the given DigestAlgorithmEnum and assigns it to the DigestAlgorithm field.
|
|
func (o *SAMLSource) SetDigestAlgorithm(v DigestAlgorithmEnum) {
|
|
o.DigestAlgorithm = &v
|
|
}
|
|
|
|
// GetSignatureAlgorithm returns the SignatureAlgorithm field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetSignatureAlgorithm() SignatureAlgorithmEnum {
|
|
if o == nil || IsNil(o.SignatureAlgorithm) {
|
|
var ret SignatureAlgorithmEnum
|
|
return ret
|
|
}
|
|
return *o.SignatureAlgorithm
|
|
}
|
|
|
|
// GetSignatureAlgorithmOk returns a tuple with the SignatureAlgorithm field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetSignatureAlgorithmOk() (*SignatureAlgorithmEnum, bool) {
|
|
if o == nil || IsNil(o.SignatureAlgorithm) {
|
|
return nil, false
|
|
}
|
|
return o.SignatureAlgorithm, true
|
|
}
|
|
|
|
// HasSignatureAlgorithm returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasSignatureAlgorithm() bool {
|
|
if o != nil && !IsNil(o.SignatureAlgorithm) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignatureAlgorithm gets a reference to the given SignatureAlgorithmEnum and assigns it to the SignatureAlgorithm field.
|
|
func (o *SAMLSource) SetSignatureAlgorithm(v SignatureAlgorithmEnum) {
|
|
o.SignatureAlgorithm = &v
|
|
}
|
|
|
|
// GetTemporaryUserDeleteAfter returns the TemporaryUserDeleteAfter field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetTemporaryUserDeleteAfter() string {
|
|
if o == nil || IsNil(o.TemporaryUserDeleteAfter) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.TemporaryUserDeleteAfter
|
|
}
|
|
|
|
// GetTemporaryUserDeleteAfterOk returns a tuple with the TemporaryUserDeleteAfter field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetTemporaryUserDeleteAfterOk() (*string, bool) {
|
|
if o == nil || IsNil(o.TemporaryUserDeleteAfter) {
|
|
return nil, false
|
|
}
|
|
return o.TemporaryUserDeleteAfter, true
|
|
}
|
|
|
|
// HasTemporaryUserDeleteAfter returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasTemporaryUserDeleteAfter() bool {
|
|
if o != nil && !IsNil(o.TemporaryUserDeleteAfter) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTemporaryUserDeleteAfter gets a reference to the given string and assigns it to the TemporaryUserDeleteAfter field.
|
|
func (o *SAMLSource) SetTemporaryUserDeleteAfter(v string) {
|
|
o.TemporaryUserDeleteAfter = &v
|
|
}
|
|
|
|
// GetEncryptionKp returns the EncryptionKp field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLSource) GetEncryptionKp() string {
|
|
if o == nil || IsNil(o.EncryptionKp.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EncryptionKp.Get()
|
|
}
|
|
|
|
// GetEncryptionKpOk returns a tuple with the EncryptionKp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLSource) GetEncryptionKpOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.EncryptionKp.Get(), o.EncryptionKp.IsSet()
|
|
}
|
|
|
|
// HasEncryptionKp returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasEncryptionKp() bool {
|
|
if o != nil && o.EncryptionKp.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEncryptionKp gets a reference to the given NullableString and assigns it to the EncryptionKp field.
|
|
func (o *SAMLSource) SetEncryptionKp(v string) {
|
|
o.EncryptionKp.Set(&v)
|
|
}
|
|
|
|
// SetEncryptionKpNil sets the value for EncryptionKp to be an explicit nil
|
|
func (o *SAMLSource) SetEncryptionKpNil() {
|
|
o.EncryptionKp.Set(nil)
|
|
}
|
|
|
|
// UnsetEncryptionKp ensures that no value is present for EncryptionKp, not even an explicit nil
|
|
func (o *SAMLSource) UnsetEncryptionKp() {
|
|
o.EncryptionKp.Unset()
|
|
}
|
|
|
|
// GetSignedAssertion returns the SignedAssertion field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetSignedAssertion() bool {
|
|
if o == nil || IsNil(o.SignedAssertion) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SignedAssertion
|
|
}
|
|
|
|
// GetSignedAssertionOk returns a tuple with the SignedAssertion field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetSignedAssertionOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SignedAssertion) {
|
|
return nil, false
|
|
}
|
|
return o.SignedAssertion, true
|
|
}
|
|
|
|
// HasSignedAssertion returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasSignedAssertion() bool {
|
|
if o != nil && !IsNil(o.SignedAssertion) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignedAssertion gets a reference to the given bool and assigns it to the SignedAssertion field.
|
|
func (o *SAMLSource) SetSignedAssertion(v bool) {
|
|
o.SignedAssertion = &v
|
|
}
|
|
|
|
// GetSignedResponse returns the SignedResponse field value if set, zero value otherwise.
|
|
func (o *SAMLSource) GetSignedResponse() bool {
|
|
if o == nil || IsNil(o.SignedResponse) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SignedResponse
|
|
}
|
|
|
|
// GetSignedResponseOk returns a tuple with the SignedResponse field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLSource) GetSignedResponseOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SignedResponse) {
|
|
return nil, false
|
|
}
|
|
return o.SignedResponse, true
|
|
}
|
|
|
|
// HasSignedResponse returns a boolean if a field has been set.
|
|
func (o *SAMLSource) HasSignedResponse() bool {
|
|
if o != nil && !IsNil(o.SignedResponse) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignedResponse gets a reference to the given bool and assigns it to the SignedResponse field.
|
|
func (o *SAMLSource) SetSignedResponse(v bool) {
|
|
o.SignedResponse = &v
|
|
}
|
|
|
|
func (o SAMLSource) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SAMLSource) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["pk"] = o.Pk
|
|
toSerialize["name"] = o.Name
|
|
toSerialize["slug"] = o.Slug
|
|
if !IsNil(o.Enabled) {
|
|
toSerialize["enabled"] = o.Enabled
|
|
}
|
|
if !IsNil(o.Promoted) {
|
|
toSerialize["promoted"] = o.Promoted
|
|
}
|
|
if o.AuthenticationFlow.IsSet() {
|
|
toSerialize["authentication_flow"] = o.AuthenticationFlow.Get()
|
|
}
|
|
if o.EnrollmentFlow.IsSet() {
|
|
toSerialize["enrollment_flow"] = o.EnrollmentFlow.Get()
|
|
}
|
|
if !IsNil(o.UserPropertyMappings) {
|
|
toSerialize["user_property_mappings"] = o.UserPropertyMappings
|
|
}
|
|
if !IsNil(o.GroupPropertyMappings) {
|
|
toSerialize["group_property_mappings"] = o.GroupPropertyMappings
|
|
}
|
|
toSerialize["component"] = o.Component
|
|
toSerialize["verbose_name"] = o.VerboseName
|
|
toSerialize["verbose_name_plural"] = o.VerboseNamePlural
|
|
toSerialize["meta_model_name"] = o.MetaModelName
|
|
if !IsNil(o.PolicyEngineMode) {
|
|
toSerialize["policy_engine_mode"] = o.PolicyEngineMode
|
|
}
|
|
if !IsNil(o.UserMatchingMode) {
|
|
toSerialize["user_matching_mode"] = o.UserMatchingMode
|
|
}
|
|
toSerialize["managed"] = o.Managed.Get()
|
|
if !IsNil(o.UserPathTemplate) {
|
|
toSerialize["user_path_template"] = o.UserPathTemplate
|
|
}
|
|
if !IsNil(o.Icon) {
|
|
toSerialize["icon"] = o.Icon
|
|
}
|
|
toSerialize["icon_url"] = o.IconUrl
|
|
toSerialize["icon_themed_urls"] = o.IconThemedUrls.Get()
|
|
if !IsNil(o.GroupMatchingMode) {
|
|
toSerialize["group_matching_mode"] = o.GroupMatchingMode
|
|
}
|
|
toSerialize["pre_authentication_flow"] = o.PreAuthenticationFlow
|
|
if !IsNil(o.Issuer) {
|
|
toSerialize["issuer"] = o.Issuer
|
|
}
|
|
toSerialize["sso_url"] = o.SsoUrl
|
|
if o.SloUrl.IsSet() {
|
|
toSerialize["slo_url"] = o.SloUrl.Get()
|
|
}
|
|
if !IsNil(o.AllowIdpInitiated) {
|
|
toSerialize["allow_idp_initiated"] = o.AllowIdpInitiated
|
|
}
|
|
if !IsNil(o.ForceAuthn) {
|
|
toSerialize["force_authn"] = o.ForceAuthn
|
|
}
|
|
if !IsNil(o.NameIdPolicy) {
|
|
toSerialize["name_id_policy"] = o.NameIdPolicy
|
|
}
|
|
if !IsNil(o.BindingType) {
|
|
toSerialize["binding_type"] = o.BindingType
|
|
}
|
|
if o.VerificationKp.IsSet() {
|
|
toSerialize["verification_kp"] = o.VerificationKp.Get()
|
|
}
|
|
if o.SigningKp.IsSet() {
|
|
toSerialize["signing_kp"] = o.SigningKp.Get()
|
|
}
|
|
if !IsNil(o.DigestAlgorithm) {
|
|
toSerialize["digest_algorithm"] = o.DigestAlgorithm
|
|
}
|
|
if !IsNil(o.SignatureAlgorithm) {
|
|
toSerialize["signature_algorithm"] = o.SignatureAlgorithm
|
|
}
|
|
if !IsNil(o.TemporaryUserDeleteAfter) {
|
|
toSerialize["temporary_user_delete_after"] = o.TemporaryUserDeleteAfter
|
|
}
|
|
if o.EncryptionKp.IsSet() {
|
|
toSerialize["encryption_kp"] = o.EncryptionKp.Get()
|
|
}
|
|
if !IsNil(o.SignedAssertion) {
|
|
toSerialize["signed_assertion"] = o.SignedAssertion
|
|
}
|
|
if !IsNil(o.SignedResponse) {
|
|
toSerialize["signed_response"] = o.SignedResponse
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *SAMLSource) 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{
|
|
"pk",
|
|
"name",
|
|
"slug",
|
|
"component",
|
|
"verbose_name",
|
|
"verbose_name_plural",
|
|
"meta_model_name",
|
|
"managed",
|
|
"icon_url",
|
|
"icon_themed_urls",
|
|
"pre_authentication_flow",
|
|
"sso_url",
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
varSAMLSource := _SAMLSource{}
|
|
|
|
err = json.Unmarshal(data, &varSAMLSource)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = SAMLSource(varSAMLSource)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "pk")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "slug")
|
|
delete(additionalProperties, "enabled")
|
|
delete(additionalProperties, "promoted")
|
|
delete(additionalProperties, "authentication_flow")
|
|
delete(additionalProperties, "enrollment_flow")
|
|
delete(additionalProperties, "user_property_mappings")
|
|
delete(additionalProperties, "group_property_mappings")
|
|
delete(additionalProperties, "component")
|
|
delete(additionalProperties, "verbose_name")
|
|
delete(additionalProperties, "verbose_name_plural")
|
|
delete(additionalProperties, "meta_model_name")
|
|
delete(additionalProperties, "policy_engine_mode")
|
|
delete(additionalProperties, "user_matching_mode")
|
|
delete(additionalProperties, "managed")
|
|
delete(additionalProperties, "user_path_template")
|
|
delete(additionalProperties, "icon")
|
|
delete(additionalProperties, "icon_url")
|
|
delete(additionalProperties, "icon_themed_urls")
|
|
delete(additionalProperties, "group_matching_mode")
|
|
delete(additionalProperties, "pre_authentication_flow")
|
|
delete(additionalProperties, "issuer")
|
|
delete(additionalProperties, "sso_url")
|
|
delete(additionalProperties, "slo_url")
|
|
delete(additionalProperties, "allow_idp_initiated")
|
|
delete(additionalProperties, "force_authn")
|
|
delete(additionalProperties, "name_id_policy")
|
|
delete(additionalProperties, "binding_type")
|
|
delete(additionalProperties, "verification_kp")
|
|
delete(additionalProperties, "signing_kp")
|
|
delete(additionalProperties, "digest_algorithm")
|
|
delete(additionalProperties, "signature_algorithm")
|
|
delete(additionalProperties, "temporary_user_delete_after")
|
|
delete(additionalProperties, "encryption_kp")
|
|
delete(additionalProperties, "signed_assertion")
|
|
delete(additionalProperties, "signed_response")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableSAMLSource struct {
|
|
value *SAMLSource
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSAMLSource) Get() *SAMLSource {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSAMLSource) Set(val *SAMLSource) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSAMLSource) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSAMLSource) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSAMLSource(val *SAMLSource) *NullableSAMLSource {
|
|
return &NullableSAMLSource{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSAMLSource) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSAMLSource) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|