Bump libre-graph-go to latest main branch
To get sharing endpoints and audio/photo/location facets
This commit is contained in:
committed by
Ralf Haferkamp
parent
62d8a03400
commit
b436e49f19
+23
-12
@@ -14,6 +14,9 @@ import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the PasswordProfile type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &PasswordProfile{}
|
||||
|
||||
// PasswordProfile Password Profile associated with a user
|
||||
type PasswordProfile struct {
|
||||
// If true the user is required to change their password upon the next login
|
||||
@@ -45,7 +48,7 @@ func NewPasswordProfileWithDefaults() *PasswordProfile {
|
||||
|
||||
// GetForceChangePasswordNextSignIn returns the ForceChangePasswordNextSignIn field value if set, zero value otherwise.
|
||||
func (o *PasswordProfile) GetForceChangePasswordNextSignIn() bool {
|
||||
if o == nil || o.ForceChangePasswordNextSignIn == nil {
|
||||
if o == nil || IsNil(o.ForceChangePasswordNextSignIn) {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
@@ -55,7 +58,7 @@ func (o *PasswordProfile) GetForceChangePasswordNextSignIn() bool {
|
||||
// GetForceChangePasswordNextSignInOk returns a tuple with the ForceChangePasswordNextSignIn field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PasswordProfile) GetForceChangePasswordNextSignInOk() (*bool, bool) {
|
||||
if o == nil || o.ForceChangePasswordNextSignIn == nil {
|
||||
if o == nil || IsNil(o.ForceChangePasswordNextSignIn) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ForceChangePasswordNextSignIn, true
|
||||
@@ -63,7 +66,7 @@ func (o *PasswordProfile) GetForceChangePasswordNextSignInOk() (*bool, bool) {
|
||||
|
||||
// HasForceChangePasswordNextSignIn returns a boolean if a field has been set.
|
||||
func (o *PasswordProfile) HasForceChangePasswordNextSignIn() bool {
|
||||
if o != nil && o.ForceChangePasswordNextSignIn != nil {
|
||||
if o != nil && !IsNil(o.ForceChangePasswordNextSignIn) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -77,7 +80,7 @@ func (o *PasswordProfile) SetForceChangePasswordNextSignIn(v bool) {
|
||||
|
||||
// GetPassword returns the Password field value if set, zero value otherwise.
|
||||
func (o *PasswordProfile) GetPassword() string {
|
||||
if o == nil || o.Password == nil {
|
||||
if o == nil || IsNil(o.Password) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
@@ -87,7 +90,7 @@ func (o *PasswordProfile) GetPassword() string {
|
||||
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PasswordProfile) GetPasswordOk() (*string, bool) {
|
||||
if o == nil || o.Password == nil {
|
||||
if o == nil || IsNil(o.Password) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Password, true
|
||||
@@ -95,7 +98,7 @@ func (o *PasswordProfile) GetPasswordOk() (*string, bool) {
|
||||
|
||||
// HasPassword returns a boolean if a field has been set.
|
||||
func (o *PasswordProfile) HasPassword() bool {
|
||||
if o != nil && o.Password != nil {
|
||||
if o != nil && !IsNil(o.Password) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -108,16 +111,24 @@ func (o *PasswordProfile) SetPassword(v string) {
|
||||
}
|
||||
|
||||
func (o PasswordProfile) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.ForceChangePasswordNextSignIn != nil {
|
||||
toSerialize["forceChangePasswordNextSignIn"] = o.ForceChangePasswordNextSignIn
|
||||
}
|
||||
if o.Password != nil {
|
||||
toSerialize["password"] = o.Password
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o PasswordProfile) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.ForceChangePasswordNextSignIn) {
|
||||
toSerialize["forceChangePasswordNextSignIn"] = o.ForceChangePasswordNextSignIn
|
||||
}
|
||||
if !IsNil(o.Password) {
|
||||
toSerialize["password"] = o.Password
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullablePasswordProfile struct {
|
||||
value *PasswordProfile
|
||||
isSet bool
|
||||
|
||||
Reference in New Issue
Block a user