mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 03:19:51 +03:00
2f70351c90
* packages/client-go: init Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * format Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove mod/sum Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix translate Signed-off-by: Jens Langhammer <jens@goauthentik.io> * no go replace Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update rust makefile with pwd Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * fix build Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * don't need a version ig? Signed-off-by: Jens Langhammer <jens@goauthentik.io> * exclude go client from cspell Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix main docker build Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
1158 lines
37 KiB
Go
Generated
1158 lines
37 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"
|
|
)
|
|
|
|
// checks if the PatchedOAuthSourceRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &PatchedOAuthSourceRequest{}
|
|
|
|
// PatchedOAuthSourceRequest OAuth Source Serializer
|
|
type PatchedOAuthSourceRequest struct {
|
|
// Source's display Name.
|
|
Name *string `json:"name,omitempty"`
|
|
// Internal source name, used in URLs.
|
|
Slug *string `json:"slug,omitempty" 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"`
|
|
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"`
|
|
UserPathTemplate *string `json:"user_path_template,omitempty"`
|
|
Icon *string `json:"icon,omitempty"`
|
|
// How the source determines if an existing group should be used or a new group created.
|
|
GroupMatchingMode *GroupMatchingModeEnum `json:"group_matching_mode,omitempty"`
|
|
ProviderType *ProviderTypeEnum `json:"provider_type,omitempty"`
|
|
// URL used to request the initial token. This URL is only required for OAuth 1.
|
|
RequestTokenUrl NullableString `json:"request_token_url,omitempty"`
|
|
// URL the user is redirect to to conest the flow.
|
|
AuthorizationUrl NullableString `json:"authorization_url,omitempty"`
|
|
// URL used by authentik to retrieve tokens.
|
|
AccessTokenUrl NullableString `json:"access_token_url,omitempty"`
|
|
// URL used by authentik to get user information.
|
|
ProfileUrl NullableString `json:"profile_url,omitempty"`
|
|
Pkce *PKCEMethodEnum `json:"pkce,omitempty"`
|
|
ConsumerKey *string `json:"consumer_key,omitempty"`
|
|
ConsumerSecret *string `json:"consumer_secret,omitempty"`
|
|
AdditionalScopes *string `json:"additional_scopes,omitempty"`
|
|
OidcWellKnownUrl *string `json:"oidc_well_known_url,omitempty"`
|
|
OidcJwksUrl *string `json:"oidc_jwks_url,omitempty"`
|
|
OidcJwks map[string]interface{} `json:"oidc_jwks,omitempty"`
|
|
// How to perform authentication during an authorization_code token request flow
|
|
AuthorizationCodeAuthMethod *AuthorizationCodeAuthMethodEnum `json:"authorization_code_auth_method,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _PatchedOAuthSourceRequest PatchedOAuthSourceRequest
|
|
|
|
// NewPatchedOAuthSourceRequest instantiates a new PatchedOAuthSourceRequest 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 NewPatchedOAuthSourceRequest() *PatchedOAuthSourceRequest {
|
|
this := PatchedOAuthSourceRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewPatchedOAuthSourceRequestWithDefaults instantiates a new PatchedOAuthSourceRequest 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 NewPatchedOAuthSourceRequestWithDefaults() *PatchedOAuthSourceRequest {
|
|
this := PatchedOAuthSourceRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *PatchedOAuthSourceRequest) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetSlug returns the Slug field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetSlug() string {
|
|
if o == nil || IsNil(o.Slug) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Slug
|
|
}
|
|
|
|
// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetSlugOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Slug) {
|
|
return nil, false
|
|
}
|
|
return o.Slug, true
|
|
}
|
|
|
|
// HasSlug returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasSlug() bool {
|
|
if o != nil && !IsNil(o.Slug) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSlug gets a reference to the given string and assigns it to the Slug field.
|
|
func (o *PatchedOAuthSourceRequest) SetSlug(v string) {
|
|
o.Slug = &v
|
|
}
|
|
|
|
// GetEnabled returns the Enabled field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetEnabled(v bool) {
|
|
o.Enabled = &v
|
|
}
|
|
|
|
// GetPromoted returns the Promoted field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetAuthenticationFlow(v string) {
|
|
o.AuthenticationFlow.Set(&v)
|
|
}
|
|
|
|
// SetAuthenticationFlowNil sets the value for AuthenticationFlow to be an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) SetAuthenticationFlowNil() {
|
|
o.AuthenticationFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthenticationFlow ensures that no value is present for AuthenticationFlow, not even an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetEnrollmentFlow(v string) {
|
|
o.EnrollmentFlow.Set(&v)
|
|
}
|
|
|
|
// SetEnrollmentFlowNil sets the value for EnrollmentFlow to be an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) SetEnrollmentFlowNil() {
|
|
o.EnrollmentFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetEnrollmentFlow ensures that no value is present for EnrollmentFlow, not even an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) UnsetEnrollmentFlow() {
|
|
o.EnrollmentFlow.Unset()
|
|
}
|
|
|
|
// GetUserPropertyMappings returns the UserPropertyMappings field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetUserPropertyMappings(v []string) {
|
|
o.UserPropertyMappings = v
|
|
}
|
|
|
|
// GetGroupPropertyMappings returns the GroupPropertyMappings field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetGroupPropertyMappings(v []string) {
|
|
o.GroupPropertyMappings = v
|
|
}
|
|
|
|
// GetPolicyEngineMode returns the PolicyEngineMode field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetPolicyEngineMode(v PolicyEngineMode) {
|
|
o.PolicyEngineMode = &v
|
|
}
|
|
|
|
// GetUserMatchingMode returns the UserMatchingMode field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetUserMatchingMode(v UserMatchingModeEnum) {
|
|
o.UserMatchingMode = &v
|
|
}
|
|
|
|
// GetUserPathTemplate returns the UserPathTemplate field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetUserPathTemplate(v string) {
|
|
o.UserPathTemplate = &v
|
|
}
|
|
|
|
// GetIcon returns the Icon field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetIcon(v string) {
|
|
o.Icon = &v
|
|
}
|
|
|
|
// GetGroupMatchingMode returns the GroupMatchingMode field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) 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 *PatchedOAuthSourceRequest) SetGroupMatchingMode(v GroupMatchingModeEnum) {
|
|
o.GroupMatchingMode = &v
|
|
}
|
|
|
|
// GetProviderType returns the ProviderType field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetProviderType() ProviderTypeEnum {
|
|
if o == nil || IsNil(o.ProviderType) {
|
|
var ret ProviderTypeEnum
|
|
return ret
|
|
}
|
|
return *o.ProviderType
|
|
}
|
|
|
|
// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetProviderTypeOk() (*ProviderTypeEnum, bool) {
|
|
if o == nil || IsNil(o.ProviderType) {
|
|
return nil, false
|
|
}
|
|
return o.ProviderType, true
|
|
}
|
|
|
|
// HasProviderType returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasProviderType() bool {
|
|
if o != nil && !IsNil(o.ProviderType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProviderType gets a reference to the given ProviderTypeEnum and assigns it to the ProviderType field.
|
|
func (o *PatchedOAuthSourceRequest) SetProviderType(v ProviderTypeEnum) {
|
|
o.ProviderType = &v
|
|
}
|
|
|
|
// GetRequestTokenUrl returns the RequestTokenUrl field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *PatchedOAuthSourceRequest) GetRequestTokenUrl() string {
|
|
if o == nil || IsNil(o.RequestTokenUrl.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RequestTokenUrl.Get()
|
|
}
|
|
|
|
// GetRequestTokenUrlOk returns a tuple with the RequestTokenUrl 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 *PatchedOAuthSourceRequest) GetRequestTokenUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.RequestTokenUrl.Get(), o.RequestTokenUrl.IsSet()
|
|
}
|
|
|
|
// HasRequestTokenUrl returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasRequestTokenUrl() bool {
|
|
if o != nil && o.RequestTokenUrl.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRequestTokenUrl gets a reference to the given NullableString and assigns it to the RequestTokenUrl field.
|
|
func (o *PatchedOAuthSourceRequest) SetRequestTokenUrl(v string) {
|
|
o.RequestTokenUrl.Set(&v)
|
|
}
|
|
|
|
// SetRequestTokenUrlNil sets the value for RequestTokenUrl to be an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) SetRequestTokenUrlNil() {
|
|
o.RequestTokenUrl.Set(nil)
|
|
}
|
|
|
|
// UnsetRequestTokenUrl ensures that no value is present for RequestTokenUrl, not even an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) UnsetRequestTokenUrl() {
|
|
o.RequestTokenUrl.Unset()
|
|
}
|
|
|
|
// GetAuthorizationUrl returns the AuthorizationUrl field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *PatchedOAuthSourceRequest) GetAuthorizationUrl() string {
|
|
if o == nil || IsNil(o.AuthorizationUrl.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthorizationUrl.Get()
|
|
}
|
|
|
|
// GetAuthorizationUrlOk returns a tuple with the AuthorizationUrl 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 *PatchedOAuthSourceRequest) GetAuthorizationUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.AuthorizationUrl.Get(), o.AuthorizationUrl.IsSet()
|
|
}
|
|
|
|
// HasAuthorizationUrl returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasAuthorizationUrl() bool {
|
|
if o != nil && o.AuthorizationUrl.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthorizationUrl gets a reference to the given NullableString and assigns it to the AuthorizationUrl field.
|
|
func (o *PatchedOAuthSourceRequest) SetAuthorizationUrl(v string) {
|
|
o.AuthorizationUrl.Set(&v)
|
|
}
|
|
|
|
// SetAuthorizationUrlNil sets the value for AuthorizationUrl to be an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) SetAuthorizationUrlNil() {
|
|
o.AuthorizationUrl.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthorizationUrl ensures that no value is present for AuthorizationUrl, not even an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) UnsetAuthorizationUrl() {
|
|
o.AuthorizationUrl.Unset()
|
|
}
|
|
|
|
// GetAccessTokenUrl returns the AccessTokenUrl field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *PatchedOAuthSourceRequest) GetAccessTokenUrl() string {
|
|
if o == nil || IsNil(o.AccessTokenUrl.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AccessTokenUrl.Get()
|
|
}
|
|
|
|
// GetAccessTokenUrlOk returns a tuple with the AccessTokenUrl 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 *PatchedOAuthSourceRequest) GetAccessTokenUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.AccessTokenUrl.Get(), o.AccessTokenUrl.IsSet()
|
|
}
|
|
|
|
// HasAccessTokenUrl returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasAccessTokenUrl() bool {
|
|
if o != nil && o.AccessTokenUrl.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccessTokenUrl gets a reference to the given NullableString and assigns it to the AccessTokenUrl field.
|
|
func (o *PatchedOAuthSourceRequest) SetAccessTokenUrl(v string) {
|
|
o.AccessTokenUrl.Set(&v)
|
|
}
|
|
|
|
// SetAccessTokenUrlNil sets the value for AccessTokenUrl to be an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) SetAccessTokenUrlNil() {
|
|
o.AccessTokenUrl.Set(nil)
|
|
}
|
|
|
|
// UnsetAccessTokenUrl ensures that no value is present for AccessTokenUrl, not even an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) UnsetAccessTokenUrl() {
|
|
o.AccessTokenUrl.Unset()
|
|
}
|
|
|
|
// GetProfileUrl returns the ProfileUrl field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *PatchedOAuthSourceRequest) GetProfileUrl() string {
|
|
if o == nil || IsNil(o.ProfileUrl.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ProfileUrl.Get()
|
|
}
|
|
|
|
// GetProfileUrlOk returns a tuple with the ProfileUrl 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 *PatchedOAuthSourceRequest) GetProfileUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.ProfileUrl.Get(), o.ProfileUrl.IsSet()
|
|
}
|
|
|
|
// HasProfileUrl returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasProfileUrl() bool {
|
|
if o != nil && o.ProfileUrl.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProfileUrl gets a reference to the given NullableString and assigns it to the ProfileUrl field.
|
|
func (o *PatchedOAuthSourceRequest) SetProfileUrl(v string) {
|
|
o.ProfileUrl.Set(&v)
|
|
}
|
|
|
|
// SetProfileUrlNil sets the value for ProfileUrl to be an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) SetProfileUrlNil() {
|
|
o.ProfileUrl.Set(nil)
|
|
}
|
|
|
|
// UnsetProfileUrl ensures that no value is present for ProfileUrl, not even an explicit nil
|
|
func (o *PatchedOAuthSourceRequest) UnsetProfileUrl() {
|
|
o.ProfileUrl.Unset()
|
|
}
|
|
|
|
// GetPkce returns the Pkce field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetPkce() PKCEMethodEnum {
|
|
if o == nil || IsNil(o.Pkce) {
|
|
var ret PKCEMethodEnum
|
|
return ret
|
|
}
|
|
return *o.Pkce
|
|
}
|
|
|
|
// GetPkceOk returns a tuple with the Pkce field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetPkceOk() (*PKCEMethodEnum, bool) {
|
|
if o == nil || IsNil(o.Pkce) {
|
|
return nil, false
|
|
}
|
|
return o.Pkce, true
|
|
}
|
|
|
|
// HasPkce returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasPkce() bool {
|
|
if o != nil && !IsNil(o.Pkce) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPkce gets a reference to the given PKCEMethodEnum and assigns it to the Pkce field.
|
|
func (o *PatchedOAuthSourceRequest) SetPkce(v PKCEMethodEnum) {
|
|
o.Pkce = &v
|
|
}
|
|
|
|
// GetConsumerKey returns the ConsumerKey field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetConsumerKey() string {
|
|
if o == nil || IsNil(o.ConsumerKey) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ConsumerKey
|
|
}
|
|
|
|
// GetConsumerKeyOk returns a tuple with the ConsumerKey field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetConsumerKeyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ConsumerKey) {
|
|
return nil, false
|
|
}
|
|
return o.ConsumerKey, true
|
|
}
|
|
|
|
// HasConsumerKey returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasConsumerKey() bool {
|
|
if o != nil && !IsNil(o.ConsumerKey) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetConsumerKey gets a reference to the given string and assigns it to the ConsumerKey field.
|
|
func (o *PatchedOAuthSourceRequest) SetConsumerKey(v string) {
|
|
o.ConsumerKey = &v
|
|
}
|
|
|
|
// GetConsumerSecret returns the ConsumerSecret field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetConsumerSecret() string {
|
|
if o == nil || IsNil(o.ConsumerSecret) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ConsumerSecret
|
|
}
|
|
|
|
// GetConsumerSecretOk returns a tuple with the ConsumerSecret field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetConsumerSecretOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ConsumerSecret) {
|
|
return nil, false
|
|
}
|
|
return o.ConsumerSecret, true
|
|
}
|
|
|
|
// HasConsumerSecret returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasConsumerSecret() bool {
|
|
if o != nil && !IsNil(o.ConsumerSecret) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetConsumerSecret gets a reference to the given string and assigns it to the ConsumerSecret field.
|
|
func (o *PatchedOAuthSourceRequest) SetConsumerSecret(v string) {
|
|
o.ConsumerSecret = &v
|
|
}
|
|
|
|
// GetAdditionalScopes returns the AdditionalScopes field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetAdditionalScopes() string {
|
|
if o == nil || IsNil(o.AdditionalScopes) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AdditionalScopes
|
|
}
|
|
|
|
// GetAdditionalScopesOk returns a tuple with the AdditionalScopes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetAdditionalScopesOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AdditionalScopes) {
|
|
return nil, false
|
|
}
|
|
return o.AdditionalScopes, true
|
|
}
|
|
|
|
// HasAdditionalScopes returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasAdditionalScopes() bool {
|
|
if o != nil && !IsNil(o.AdditionalScopes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAdditionalScopes gets a reference to the given string and assigns it to the AdditionalScopes field.
|
|
func (o *PatchedOAuthSourceRequest) SetAdditionalScopes(v string) {
|
|
o.AdditionalScopes = &v
|
|
}
|
|
|
|
// GetOidcWellKnownUrl returns the OidcWellKnownUrl field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetOidcWellKnownUrl() string {
|
|
if o == nil || IsNil(o.OidcWellKnownUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.OidcWellKnownUrl
|
|
}
|
|
|
|
// GetOidcWellKnownUrlOk returns a tuple with the OidcWellKnownUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetOidcWellKnownUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.OidcWellKnownUrl) {
|
|
return nil, false
|
|
}
|
|
return o.OidcWellKnownUrl, true
|
|
}
|
|
|
|
// HasOidcWellKnownUrl returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasOidcWellKnownUrl() bool {
|
|
if o != nil && !IsNil(o.OidcWellKnownUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOidcWellKnownUrl gets a reference to the given string and assigns it to the OidcWellKnownUrl field.
|
|
func (o *PatchedOAuthSourceRequest) SetOidcWellKnownUrl(v string) {
|
|
o.OidcWellKnownUrl = &v
|
|
}
|
|
|
|
// GetOidcJwksUrl returns the OidcJwksUrl field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetOidcJwksUrl() string {
|
|
if o == nil || IsNil(o.OidcJwksUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.OidcJwksUrl
|
|
}
|
|
|
|
// GetOidcJwksUrlOk returns a tuple with the OidcJwksUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetOidcJwksUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.OidcJwksUrl) {
|
|
return nil, false
|
|
}
|
|
return o.OidcJwksUrl, true
|
|
}
|
|
|
|
// HasOidcJwksUrl returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasOidcJwksUrl() bool {
|
|
if o != nil && !IsNil(o.OidcJwksUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOidcJwksUrl gets a reference to the given string and assigns it to the OidcJwksUrl field.
|
|
func (o *PatchedOAuthSourceRequest) SetOidcJwksUrl(v string) {
|
|
o.OidcJwksUrl = &v
|
|
}
|
|
|
|
// GetOidcJwks returns the OidcJwks field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetOidcJwks() map[string]interface{} {
|
|
if o == nil || IsNil(o.OidcJwks) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.OidcJwks
|
|
}
|
|
|
|
// GetOidcJwksOk returns a tuple with the OidcJwks field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetOidcJwksOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.OidcJwks) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.OidcJwks, true
|
|
}
|
|
|
|
// HasOidcJwks returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasOidcJwks() bool {
|
|
if o != nil && !IsNil(o.OidcJwks) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOidcJwks gets a reference to the given map[string]interface{} and assigns it to the OidcJwks field.
|
|
func (o *PatchedOAuthSourceRequest) SetOidcJwks(v map[string]interface{}) {
|
|
o.OidcJwks = v
|
|
}
|
|
|
|
// GetAuthorizationCodeAuthMethod returns the AuthorizationCodeAuthMethod field value if set, zero value otherwise.
|
|
func (o *PatchedOAuthSourceRequest) GetAuthorizationCodeAuthMethod() AuthorizationCodeAuthMethodEnum {
|
|
if o == nil || IsNil(o.AuthorizationCodeAuthMethod) {
|
|
var ret AuthorizationCodeAuthMethodEnum
|
|
return ret
|
|
}
|
|
return *o.AuthorizationCodeAuthMethod
|
|
}
|
|
|
|
// GetAuthorizationCodeAuthMethodOk returns a tuple with the AuthorizationCodeAuthMethod field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatchedOAuthSourceRequest) GetAuthorizationCodeAuthMethodOk() (*AuthorizationCodeAuthMethodEnum, bool) {
|
|
if o == nil || IsNil(o.AuthorizationCodeAuthMethod) {
|
|
return nil, false
|
|
}
|
|
return o.AuthorizationCodeAuthMethod, true
|
|
}
|
|
|
|
// HasAuthorizationCodeAuthMethod returns a boolean if a field has been set.
|
|
func (o *PatchedOAuthSourceRequest) HasAuthorizationCodeAuthMethod() bool {
|
|
if o != nil && !IsNil(o.AuthorizationCodeAuthMethod) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthorizationCodeAuthMethod gets a reference to the given AuthorizationCodeAuthMethodEnum and assigns it to the AuthorizationCodeAuthMethod field.
|
|
func (o *PatchedOAuthSourceRequest) SetAuthorizationCodeAuthMethod(v AuthorizationCodeAuthMethodEnum) {
|
|
o.AuthorizationCodeAuthMethod = &v
|
|
}
|
|
|
|
func (o PatchedOAuthSourceRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o PatchedOAuthSourceRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Slug) {
|
|
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
|
|
}
|
|
if !IsNil(o.PolicyEngineMode) {
|
|
toSerialize["policy_engine_mode"] = o.PolicyEngineMode
|
|
}
|
|
if !IsNil(o.UserMatchingMode) {
|
|
toSerialize["user_matching_mode"] = o.UserMatchingMode
|
|
}
|
|
if !IsNil(o.UserPathTemplate) {
|
|
toSerialize["user_path_template"] = o.UserPathTemplate
|
|
}
|
|
if !IsNil(o.Icon) {
|
|
toSerialize["icon"] = o.Icon
|
|
}
|
|
if !IsNil(o.GroupMatchingMode) {
|
|
toSerialize["group_matching_mode"] = o.GroupMatchingMode
|
|
}
|
|
if !IsNil(o.ProviderType) {
|
|
toSerialize["provider_type"] = o.ProviderType
|
|
}
|
|
if o.RequestTokenUrl.IsSet() {
|
|
toSerialize["request_token_url"] = o.RequestTokenUrl.Get()
|
|
}
|
|
if o.AuthorizationUrl.IsSet() {
|
|
toSerialize["authorization_url"] = o.AuthorizationUrl.Get()
|
|
}
|
|
if o.AccessTokenUrl.IsSet() {
|
|
toSerialize["access_token_url"] = o.AccessTokenUrl.Get()
|
|
}
|
|
if o.ProfileUrl.IsSet() {
|
|
toSerialize["profile_url"] = o.ProfileUrl.Get()
|
|
}
|
|
if !IsNil(o.Pkce) {
|
|
toSerialize["pkce"] = o.Pkce
|
|
}
|
|
if !IsNil(o.ConsumerKey) {
|
|
toSerialize["consumer_key"] = o.ConsumerKey
|
|
}
|
|
if !IsNil(o.ConsumerSecret) {
|
|
toSerialize["consumer_secret"] = o.ConsumerSecret
|
|
}
|
|
if !IsNil(o.AdditionalScopes) {
|
|
toSerialize["additional_scopes"] = o.AdditionalScopes
|
|
}
|
|
if !IsNil(o.OidcWellKnownUrl) {
|
|
toSerialize["oidc_well_known_url"] = o.OidcWellKnownUrl
|
|
}
|
|
if !IsNil(o.OidcJwksUrl) {
|
|
toSerialize["oidc_jwks_url"] = o.OidcJwksUrl
|
|
}
|
|
if !IsNil(o.OidcJwks) {
|
|
toSerialize["oidc_jwks"] = o.OidcJwks
|
|
}
|
|
if !IsNil(o.AuthorizationCodeAuthMethod) {
|
|
toSerialize["authorization_code_auth_method"] = o.AuthorizationCodeAuthMethod
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *PatchedOAuthSourceRequest) UnmarshalJSON(data []byte) (err error) {
|
|
varPatchedOAuthSourceRequest := _PatchedOAuthSourceRequest{}
|
|
|
|
err = json.Unmarshal(data, &varPatchedOAuthSourceRequest)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = PatchedOAuthSourceRequest(varPatchedOAuthSourceRequest)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
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, "policy_engine_mode")
|
|
delete(additionalProperties, "user_matching_mode")
|
|
delete(additionalProperties, "user_path_template")
|
|
delete(additionalProperties, "icon")
|
|
delete(additionalProperties, "group_matching_mode")
|
|
delete(additionalProperties, "provider_type")
|
|
delete(additionalProperties, "request_token_url")
|
|
delete(additionalProperties, "authorization_url")
|
|
delete(additionalProperties, "access_token_url")
|
|
delete(additionalProperties, "profile_url")
|
|
delete(additionalProperties, "pkce")
|
|
delete(additionalProperties, "consumer_key")
|
|
delete(additionalProperties, "consumer_secret")
|
|
delete(additionalProperties, "additional_scopes")
|
|
delete(additionalProperties, "oidc_well_known_url")
|
|
delete(additionalProperties, "oidc_jwks_url")
|
|
delete(additionalProperties, "oidc_jwks")
|
|
delete(additionalProperties, "authorization_code_auth_method")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullablePatchedOAuthSourceRequest struct {
|
|
value *PatchedOAuthSourceRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullablePatchedOAuthSourceRequest) Get() *PatchedOAuthSourceRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullablePatchedOAuthSourceRequest) Set(val *PatchedOAuthSourceRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullablePatchedOAuthSourceRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullablePatchedOAuthSourceRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullablePatchedOAuthSourceRequest(val *PatchedOAuthSourceRequest) *NullablePatchedOAuthSourceRequest {
|
|
return &NullablePatchedOAuthSourceRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullablePatchedOAuthSourceRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullablePatchedOAuthSourceRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|