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>
640 lines
20 KiB
Go
Generated
640 lines
20 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 GoogleWorkspaceProviderRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GoogleWorkspaceProviderRequest{}
|
|
|
|
// GoogleWorkspaceProviderRequest GoogleWorkspaceProvider Serializer
|
|
type GoogleWorkspaceProviderRequest struct {
|
|
Name string `json:"name"`
|
|
PropertyMappings []string `json:"property_mappings,omitempty"`
|
|
// Property mappings used for group creation/updating.
|
|
PropertyMappingsGroup []string `json:"property_mappings_group,omitempty"`
|
|
DelegatedSubject string `json:"delegated_subject"`
|
|
Credentials map[string]interface{} `json:"credentials"`
|
|
Scopes *string `json:"scopes,omitempty"`
|
|
ExcludeUsersServiceAccount *bool `json:"exclude_users_service_account,omitempty"`
|
|
FilterGroup NullableString `json:"filter_group,omitempty"`
|
|
UserDeleteAction *OutgoingSyncDeleteAction `json:"user_delete_action,omitempty"`
|
|
GroupDeleteAction *OutgoingSyncDeleteAction `json:"group_delete_action,omitempty"`
|
|
DefaultGroupEmailDomain string `json:"default_group_email_domain"`
|
|
// Controls the number of objects synced in a single task
|
|
SyncPageSize *int32 `json:"sync_page_size,omitempty"`
|
|
// Timeout for synchronization of a single page
|
|
SyncPageTimeout *string `json:"sync_page_timeout,omitempty"`
|
|
// When enabled, provider will not modify or create objects in the remote system.
|
|
DryRun *bool `json:"dry_run,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _GoogleWorkspaceProviderRequest GoogleWorkspaceProviderRequest
|
|
|
|
// NewGoogleWorkspaceProviderRequest instantiates a new GoogleWorkspaceProviderRequest 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 NewGoogleWorkspaceProviderRequest(name string, delegatedSubject string, credentials map[string]interface{}, defaultGroupEmailDomain string) *GoogleWorkspaceProviderRequest {
|
|
this := GoogleWorkspaceProviderRequest{}
|
|
this.Name = name
|
|
this.DelegatedSubject = delegatedSubject
|
|
this.Credentials = credentials
|
|
this.DefaultGroupEmailDomain = defaultGroupEmailDomain
|
|
return &this
|
|
}
|
|
|
|
// NewGoogleWorkspaceProviderRequestWithDefaults instantiates a new GoogleWorkspaceProviderRequest 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 NewGoogleWorkspaceProviderRequestWithDefaults() *GoogleWorkspaceProviderRequest {
|
|
this := GoogleWorkspaceProviderRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetName returns the Name field value
|
|
func (o *GoogleWorkspaceProviderRequest) 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 *GoogleWorkspaceProviderRequest) GetNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Name, true
|
|
}
|
|
|
|
// SetName sets field value
|
|
func (o *GoogleWorkspaceProviderRequest) SetName(v string) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetPropertyMappings returns the PropertyMappings field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetPropertyMappings() []string {
|
|
if o == nil || IsNil(o.PropertyMappings) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.PropertyMappings
|
|
}
|
|
|
|
// GetPropertyMappingsOk returns a tuple with the PropertyMappings field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetPropertyMappingsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.PropertyMappings) {
|
|
return nil, false
|
|
}
|
|
return o.PropertyMappings, true
|
|
}
|
|
|
|
// HasPropertyMappings returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasPropertyMappings() bool {
|
|
if o != nil && !IsNil(o.PropertyMappings) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPropertyMappings gets a reference to the given []string and assigns it to the PropertyMappings field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetPropertyMappings(v []string) {
|
|
o.PropertyMappings = v
|
|
}
|
|
|
|
// GetPropertyMappingsGroup returns the PropertyMappingsGroup field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetPropertyMappingsGroup() []string {
|
|
if o == nil || IsNil(o.PropertyMappingsGroup) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.PropertyMappingsGroup
|
|
}
|
|
|
|
// GetPropertyMappingsGroupOk returns a tuple with the PropertyMappingsGroup field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetPropertyMappingsGroupOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.PropertyMappingsGroup) {
|
|
return nil, false
|
|
}
|
|
return o.PropertyMappingsGroup, true
|
|
}
|
|
|
|
// HasPropertyMappingsGroup returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasPropertyMappingsGroup() bool {
|
|
if o != nil && !IsNil(o.PropertyMappingsGroup) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPropertyMappingsGroup gets a reference to the given []string and assigns it to the PropertyMappingsGroup field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetPropertyMappingsGroup(v []string) {
|
|
o.PropertyMappingsGroup = v
|
|
}
|
|
|
|
// GetDelegatedSubject returns the DelegatedSubject field value
|
|
func (o *GoogleWorkspaceProviderRequest) GetDelegatedSubject() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.DelegatedSubject
|
|
}
|
|
|
|
// GetDelegatedSubjectOk returns a tuple with the DelegatedSubject field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetDelegatedSubjectOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.DelegatedSubject, true
|
|
}
|
|
|
|
// SetDelegatedSubject sets field value
|
|
func (o *GoogleWorkspaceProviderRequest) SetDelegatedSubject(v string) {
|
|
o.DelegatedSubject = v
|
|
}
|
|
|
|
// GetCredentials returns the Credentials field value
|
|
func (o *GoogleWorkspaceProviderRequest) GetCredentials() map[string]interface{} {
|
|
if o == nil {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
|
|
return o.Credentials
|
|
}
|
|
|
|
// GetCredentialsOk returns a tuple with the Credentials field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetCredentialsOk() (map[string]interface{}, bool) {
|
|
if o == nil {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.Credentials, true
|
|
}
|
|
|
|
// SetCredentials sets field value
|
|
func (o *GoogleWorkspaceProviderRequest) SetCredentials(v map[string]interface{}) {
|
|
o.Credentials = v
|
|
}
|
|
|
|
// GetScopes returns the Scopes field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetScopes() string {
|
|
if o == nil || IsNil(o.Scopes) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Scopes
|
|
}
|
|
|
|
// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetScopesOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Scopes) {
|
|
return nil, false
|
|
}
|
|
return o.Scopes, true
|
|
}
|
|
|
|
// HasScopes returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasScopes() bool {
|
|
if o != nil && !IsNil(o.Scopes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetScopes gets a reference to the given string and assigns it to the Scopes field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetScopes(v string) {
|
|
o.Scopes = &v
|
|
}
|
|
|
|
// GetExcludeUsersServiceAccount returns the ExcludeUsersServiceAccount field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetExcludeUsersServiceAccount() bool {
|
|
if o == nil || IsNil(o.ExcludeUsersServiceAccount) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.ExcludeUsersServiceAccount
|
|
}
|
|
|
|
// GetExcludeUsersServiceAccountOk returns a tuple with the ExcludeUsersServiceAccount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetExcludeUsersServiceAccountOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.ExcludeUsersServiceAccount) {
|
|
return nil, false
|
|
}
|
|
return o.ExcludeUsersServiceAccount, true
|
|
}
|
|
|
|
// HasExcludeUsersServiceAccount returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasExcludeUsersServiceAccount() bool {
|
|
if o != nil && !IsNil(o.ExcludeUsersServiceAccount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExcludeUsersServiceAccount gets a reference to the given bool and assigns it to the ExcludeUsersServiceAccount field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetExcludeUsersServiceAccount(v bool) {
|
|
o.ExcludeUsersServiceAccount = &v
|
|
}
|
|
|
|
// GetFilterGroup returns the FilterGroup field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *GoogleWorkspaceProviderRequest) GetFilterGroup() string {
|
|
if o == nil || IsNil(o.FilterGroup.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.FilterGroup.Get()
|
|
}
|
|
|
|
// GetFilterGroupOk returns a tuple with the FilterGroup 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 *GoogleWorkspaceProviderRequest) GetFilterGroupOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.FilterGroup.Get(), o.FilterGroup.IsSet()
|
|
}
|
|
|
|
// HasFilterGroup returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasFilterGroup() bool {
|
|
if o != nil && o.FilterGroup.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFilterGroup gets a reference to the given NullableString and assigns it to the FilterGroup field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetFilterGroup(v string) {
|
|
o.FilterGroup.Set(&v)
|
|
}
|
|
|
|
// SetFilterGroupNil sets the value for FilterGroup to be an explicit nil
|
|
func (o *GoogleWorkspaceProviderRequest) SetFilterGroupNil() {
|
|
o.FilterGroup.Set(nil)
|
|
}
|
|
|
|
// UnsetFilterGroup ensures that no value is present for FilterGroup, not even an explicit nil
|
|
func (o *GoogleWorkspaceProviderRequest) UnsetFilterGroup() {
|
|
o.FilterGroup.Unset()
|
|
}
|
|
|
|
// GetUserDeleteAction returns the UserDeleteAction field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetUserDeleteAction() OutgoingSyncDeleteAction {
|
|
if o == nil || IsNil(o.UserDeleteAction) {
|
|
var ret OutgoingSyncDeleteAction
|
|
return ret
|
|
}
|
|
return *o.UserDeleteAction
|
|
}
|
|
|
|
// GetUserDeleteActionOk returns a tuple with the UserDeleteAction field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetUserDeleteActionOk() (*OutgoingSyncDeleteAction, bool) {
|
|
if o == nil || IsNil(o.UserDeleteAction) {
|
|
return nil, false
|
|
}
|
|
return o.UserDeleteAction, true
|
|
}
|
|
|
|
// HasUserDeleteAction returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasUserDeleteAction() bool {
|
|
if o != nil && !IsNil(o.UserDeleteAction) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserDeleteAction gets a reference to the given OutgoingSyncDeleteAction and assigns it to the UserDeleteAction field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetUserDeleteAction(v OutgoingSyncDeleteAction) {
|
|
o.UserDeleteAction = &v
|
|
}
|
|
|
|
// GetGroupDeleteAction returns the GroupDeleteAction field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetGroupDeleteAction() OutgoingSyncDeleteAction {
|
|
if o == nil || IsNil(o.GroupDeleteAction) {
|
|
var ret OutgoingSyncDeleteAction
|
|
return ret
|
|
}
|
|
return *o.GroupDeleteAction
|
|
}
|
|
|
|
// GetGroupDeleteActionOk returns a tuple with the GroupDeleteAction field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetGroupDeleteActionOk() (*OutgoingSyncDeleteAction, bool) {
|
|
if o == nil || IsNil(o.GroupDeleteAction) {
|
|
return nil, false
|
|
}
|
|
return o.GroupDeleteAction, true
|
|
}
|
|
|
|
// HasGroupDeleteAction returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasGroupDeleteAction() bool {
|
|
if o != nil && !IsNil(o.GroupDeleteAction) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupDeleteAction gets a reference to the given OutgoingSyncDeleteAction and assigns it to the GroupDeleteAction field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetGroupDeleteAction(v OutgoingSyncDeleteAction) {
|
|
o.GroupDeleteAction = &v
|
|
}
|
|
|
|
// GetDefaultGroupEmailDomain returns the DefaultGroupEmailDomain field value
|
|
func (o *GoogleWorkspaceProviderRequest) GetDefaultGroupEmailDomain() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.DefaultGroupEmailDomain
|
|
}
|
|
|
|
// GetDefaultGroupEmailDomainOk returns a tuple with the DefaultGroupEmailDomain field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetDefaultGroupEmailDomainOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.DefaultGroupEmailDomain, true
|
|
}
|
|
|
|
// SetDefaultGroupEmailDomain sets field value
|
|
func (o *GoogleWorkspaceProviderRequest) SetDefaultGroupEmailDomain(v string) {
|
|
o.DefaultGroupEmailDomain = v
|
|
}
|
|
|
|
// GetSyncPageSize returns the SyncPageSize field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetSyncPageSize() int32 {
|
|
if o == nil || IsNil(o.SyncPageSize) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.SyncPageSize
|
|
}
|
|
|
|
// GetSyncPageSizeOk returns a tuple with the SyncPageSize field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetSyncPageSizeOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.SyncPageSize) {
|
|
return nil, false
|
|
}
|
|
return o.SyncPageSize, true
|
|
}
|
|
|
|
// HasSyncPageSize returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasSyncPageSize() bool {
|
|
if o != nil && !IsNil(o.SyncPageSize) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSyncPageSize gets a reference to the given int32 and assigns it to the SyncPageSize field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetSyncPageSize(v int32) {
|
|
o.SyncPageSize = &v
|
|
}
|
|
|
|
// GetSyncPageTimeout returns the SyncPageTimeout field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetSyncPageTimeout() string {
|
|
if o == nil || IsNil(o.SyncPageTimeout) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SyncPageTimeout
|
|
}
|
|
|
|
// GetSyncPageTimeoutOk returns a tuple with the SyncPageTimeout field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetSyncPageTimeoutOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SyncPageTimeout) {
|
|
return nil, false
|
|
}
|
|
return o.SyncPageTimeout, true
|
|
}
|
|
|
|
// HasSyncPageTimeout returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasSyncPageTimeout() bool {
|
|
if o != nil && !IsNil(o.SyncPageTimeout) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSyncPageTimeout gets a reference to the given string and assigns it to the SyncPageTimeout field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetSyncPageTimeout(v string) {
|
|
o.SyncPageTimeout = &v
|
|
}
|
|
|
|
// GetDryRun returns the DryRun field value if set, zero value otherwise.
|
|
func (o *GoogleWorkspaceProviderRequest) GetDryRun() bool {
|
|
if o == nil || IsNil(o.DryRun) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.DryRun
|
|
}
|
|
|
|
// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) GetDryRunOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.DryRun) {
|
|
return nil, false
|
|
}
|
|
return o.DryRun, true
|
|
}
|
|
|
|
// HasDryRun returns a boolean if a field has been set.
|
|
func (o *GoogleWorkspaceProviderRequest) HasDryRun() bool {
|
|
if o != nil && !IsNil(o.DryRun) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDryRun gets a reference to the given bool and assigns it to the DryRun field.
|
|
func (o *GoogleWorkspaceProviderRequest) SetDryRun(v bool) {
|
|
o.DryRun = &v
|
|
}
|
|
|
|
func (o GoogleWorkspaceProviderRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o GoogleWorkspaceProviderRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["name"] = o.Name
|
|
if !IsNil(o.PropertyMappings) {
|
|
toSerialize["property_mappings"] = o.PropertyMappings
|
|
}
|
|
if !IsNil(o.PropertyMappingsGroup) {
|
|
toSerialize["property_mappings_group"] = o.PropertyMappingsGroup
|
|
}
|
|
toSerialize["delegated_subject"] = o.DelegatedSubject
|
|
toSerialize["credentials"] = o.Credentials
|
|
if !IsNil(o.Scopes) {
|
|
toSerialize["scopes"] = o.Scopes
|
|
}
|
|
if !IsNil(o.ExcludeUsersServiceAccount) {
|
|
toSerialize["exclude_users_service_account"] = o.ExcludeUsersServiceAccount
|
|
}
|
|
if o.FilterGroup.IsSet() {
|
|
toSerialize["filter_group"] = o.FilterGroup.Get()
|
|
}
|
|
if !IsNil(o.UserDeleteAction) {
|
|
toSerialize["user_delete_action"] = o.UserDeleteAction
|
|
}
|
|
if !IsNil(o.GroupDeleteAction) {
|
|
toSerialize["group_delete_action"] = o.GroupDeleteAction
|
|
}
|
|
toSerialize["default_group_email_domain"] = o.DefaultGroupEmailDomain
|
|
if !IsNil(o.SyncPageSize) {
|
|
toSerialize["sync_page_size"] = o.SyncPageSize
|
|
}
|
|
if !IsNil(o.SyncPageTimeout) {
|
|
toSerialize["sync_page_timeout"] = o.SyncPageTimeout
|
|
}
|
|
if !IsNil(o.DryRun) {
|
|
toSerialize["dry_run"] = o.DryRun
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *GoogleWorkspaceProviderRequest) 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{
|
|
"name",
|
|
"delegated_subject",
|
|
"credentials",
|
|
"default_group_email_domain",
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
varGoogleWorkspaceProviderRequest := _GoogleWorkspaceProviderRequest{}
|
|
|
|
err = json.Unmarshal(data, &varGoogleWorkspaceProviderRequest)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = GoogleWorkspaceProviderRequest(varGoogleWorkspaceProviderRequest)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "property_mappings")
|
|
delete(additionalProperties, "property_mappings_group")
|
|
delete(additionalProperties, "delegated_subject")
|
|
delete(additionalProperties, "credentials")
|
|
delete(additionalProperties, "scopes")
|
|
delete(additionalProperties, "exclude_users_service_account")
|
|
delete(additionalProperties, "filter_group")
|
|
delete(additionalProperties, "user_delete_action")
|
|
delete(additionalProperties, "group_delete_action")
|
|
delete(additionalProperties, "default_group_email_domain")
|
|
delete(additionalProperties, "sync_page_size")
|
|
delete(additionalProperties, "sync_page_timeout")
|
|
delete(additionalProperties, "dry_run")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableGoogleWorkspaceProviderRequest struct {
|
|
value *GoogleWorkspaceProviderRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGoogleWorkspaceProviderRequest) Get() *GoogleWorkspaceProviderRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGoogleWorkspaceProviderRequest) Set(val *GoogleWorkspaceProviderRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGoogleWorkspaceProviderRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGoogleWorkspaceProviderRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGoogleWorkspaceProviderRequest(val *GoogleWorkspaceProviderRequest) *NullableGoogleWorkspaceProviderRequest {
|
|
return &NullableGoogleWorkspaceProviderRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGoogleWorkspaceProviderRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGoogleWorkspaceProviderRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|