diff --git a/management/.openapi-generator/VERSION b/management/.openapi-generator/VERSION index 3769235d..73a86b19 100644 --- a/management/.openapi-generator/VERSION +++ b/management/.openapi-generator/VERSION @@ -1 +1 @@ -7.1.0 \ No newline at end of file +7.0.1 \ No newline at end of file diff --git a/management/README.md b/management/README.md index 2b4fef2f..46b83d3f 100644 --- a/management/README.md +++ b/management/README.md @@ -36,7 +36,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `management.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), management.ContextServerIndex, 1) @@ -44,7 +44,7 @@ ctx := context.WithValue(context.Background(), management.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `management.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), management.ContextServerVariables, map[string]string{ @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `management.ContextOperationServerIndices` and `management.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ```golang ctx := context.WithValue(context.Background(), management.ContextOperationServerIndices, map[string]int{ @@ -906,7 +906,7 @@ Authentication schemes defined for the API: Example ```golang -auth := context.WithValue(context.Background(), management.ContextAccessToken, "BEARER_TOKEN_STRING") +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING") r, err := client.Service.Operation(auth, args) ``` diff --git a/management/model_agreement.go b/management/model_agreement.go index 55961c6e..0e0fddb0 100644 --- a/management/model_agreement.go +++ b/management/model_agreement.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the Agreement type satisfies the MappedNullable interface at compile time @@ -41,8 +40,6 @@ type Agreement struct { TotalConsents *int32 `json:"totalConsents,omitempty"` } -type _Agreement Agreement - // NewAgreement instantiates a new Agreement 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 @@ -405,42 +402,6 @@ func (o Agreement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Agreement) UnmarshalJSON(bytes []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{ - "enabled", - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varAgreement := _Agreement{} - - err = json.Unmarshal(bytes, &varAgreement) - - if err != nil { - return err - } - - *o = Agreement(varAgreement) - - return err -} - type NullableAgreement struct { value *Agreement isSet bool diff --git a/management/model_agreement_language.go b/management/model_agreement_language.go index c1cf64f0..f34869d2 100644 --- a/management/model_agreement_language.go +++ b/management/model_agreement_language.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the AgreementLanguage type satisfies the MappedNullable interface at compile time @@ -34,8 +33,6 @@ type AgreementLanguage struct { UserExperience *AgreementLanguageUserExperience `json:"userExperience,omitempty"` } -type _AgreementLanguage AgreementLanguage - // NewAgreementLanguage instantiates a new AgreementLanguage 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 @@ -319,43 +316,6 @@ func (o AgreementLanguage) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AgreementLanguage) UnmarshalJSON(bytes []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{ - "displayName", - "enabled", - "locale", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varAgreementLanguage := _AgreementLanguage{} - - err = json.Unmarshal(bytes, &varAgreementLanguage) - - if err != nil { - return err - } - - *o = AgreementLanguage(varAgreementLanguage) - - return err -} - type NullableAgreementLanguage struct { value *AgreementLanguage isSet bool diff --git a/management/model_agreement_language_revision.go b/management/model_agreement_language_revision.go index 040eec17..14206c25 100644 --- a/management/model_agreement_language_revision.go +++ b/management/model_agreement_language_revision.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the AgreementLanguageRevision type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type AgreementLanguageRevision struct { Text string `json:"text"` } -type _AgreementLanguageRevision AgreementLanguageRevision - // NewAgreementLanguageRevision instantiates a new AgreementLanguageRevision 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 @@ -348,44 +345,6 @@ func (o AgreementLanguageRevision) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AgreementLanguageRevision) UnmarshalJSON(bytes []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{ - "contentType", - "effectiveAt", - "requireReconsent", - "text", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varAgreementLanguageRevision := _AgreementLanguageRevision{} - - err = json.Unmarshal(bytes, &varAgreementLanguageRevision) - - if err != nil { - return err - } - - *o = AgreementLanguageRevision(varAgreementLanguageRevision) - - return err -} - type NullableAgreementLanguageRevision struct { value *AgreementLanguageRevision isSet bool diff --git a/management/model_alert_channel.go b/management/model_alert_channel.go index 9562fa6c..d5daafd3 100644 --- a/management/model_alert_channel.go +++ b/management/model_alert_channel.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the AlertChannel type satisfies the MappedNullable interface at compile time @@ -35,8 +34,6 @@ type AlertChannel struct { ExcludeAlertTypes []EnumAlertChannelAlertType `json:"excludeAlertTypes,omitempty"` } -type _AlertChannel AlertChannel - // NewAlertChannel instantiates a new AlertChannel 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 @@ -329,42 +326,6 @@ func (o AlertChannel) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AlertChannel) UnmarshalJSON(bytes []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{ - "channelType", - "addresses", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varAlertChannel := _AlertChannel{} - - err = json.Unmarshal(bytes, &varAlertChannel) - - if err != nil { - return err - } - - *o = AlertChannel(varAlertChannel) - - return err -} - type NullableAlertChannel struct { value *AlertChannel isSet bool diff --git a/management/model_application.go b/management/model_application.go index 357ad633..0382a43b 100644 --- a/management/model_application.go +++ b/management/model_application.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the Application type satisfies the MappedNullable interface at compile time @@ -45,8 +44,6 @@ type Application struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -type _Application Application - // NewApplication instantiates a new Application 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 @@ -531,44 +528,6 @@ func (o Application) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Application) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplication := _Application{} - - err = json.Unmarshal(bytes, &varApplication) - - if err != nil { - return err - } - - *o = Application(varApplication) - - return err -} - type NullableApplication struct { value *Application isSet bool diff --git a/management/model_application_access_control_group.go b/management/model_application_access_control_group.go index e4215416..4051ff63 100644 --- a/management/model_application_access_control_group.go +++ b/management/model_application_access_control_group.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationAccessControlGroup type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type ApplicationAccessControlGroup struct { Groups []ApplicationAccessControlGroupGroupsInner `json:"groups"` } -type _ApplicationAccessControlGroup ApplicationAccessControlGroup - // NewApplicationAccessControlGroup instantiates a new ApplicationAccessControlGroup 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 @@ -110,42 +107,6 @@ func (o ApplicationAccessControlGroup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationAccessControlGroup) UnmarshalJSON(bytes []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{ - "type", - "groups", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationAccessControlGroup := _ApplicationAccessControlGroup{} - - err = json.Unmarshal(bytes, &varApplicationAccessControlGroup) - - if err != nil { - return err - } - - *o = ApplicationAccessControlGroup(varApplicationAccessControlGroup) - - return err -} - type NullableApplicationAccessControlGroup struct { value *ApplicationAccessControlGroup isSet bool diff --git a/management/model_application_access_control_group_groups_inner.go b/management/model_application_access_control_group_groups_inner.go index b2da394d..95c00230 100644 --- a/management/model_application_access_control_group_groups_inner.go +++ b/management/model_application_access_control_group_groups_inner.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationAccessControlGroupGroupsInner type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type ApplicationAccessControlGroupGroupsInner struct { Id string `json:"id"` } -type _ApplicationAccessControlGroupGroupsInner ApplicationAccessControlGroupGroupsInner - // NewApplicationAccessControlGroupGroupsInner instantiates a new ApplicationAccessControlGroupGroupsInner 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 @@ -81,41 +78,6 @@ func (o ApplicationAccessControlGroupGroupsInner) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *ApplicationAccessControlGroupGroupsInner) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationAccessControlGroupGroupsInner := _ApplicationAccessControlGroupGroupsInner{} - - err = json.Unmarshal(bytes, &varApplicationAccessControlGroupGroupsInner) - - if err != nil { - return err - } - - *o = ApplicationAccessControlGroupGroupsInner(varApplicationAccessControlGroupGroupsInner) - - return err -} - type NullableApplicationAccessControlGroupGroupsInner struct { value *ApplicationAccessControlGroupGroupsInner isSet bool diff --git a/management/model_application_access_control_role.go b/management/model_application_access_control_role.go index 386bd09c..3280dbf8 100644 --- a/management/model_application_access_control_role.go +++ b/management/model_application_access_control_role.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationAccessControlRole type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type ApplicationAccessControlRole struct { Type EnumApplicationAccessControlType `json:"type"` } -type _ApplicationAccessControlRole ApplicationAccessControlRole - // NewApplicationAccessControlRole instantiates a new ApplicationAccessControlRole 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 @@ -81,41 +78,6 @@ func (o ApplicationAccessControlRole) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationAccessControlRole) UnmarshalJSON(bytes []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{ - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationAccessControlRole := _ApplicationAccessControlRole{} - - err = json.Unmarshal(bytes, &varApplicationAccessControlRole) - - if err != nil { - return err - } - - *o = ApplicationAccessControlRole(varApplicationAccessControlRole) - - return err -} - type NullableApplicationAccessControlRole struct { value *ApplicationAccessControlRole isSet bool diff --git a/management/model_application_attribute_mapping.go b/management/model_application_attribute_mapping.go index ae3fb288..57fd7fe0 100644 --- a/management/model_application_attribute_mapping.go +++ b/management/model_application_attribute_mapping.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationAttributeMapping type satisfies the MappedNullable interface at compile time @@ -46,8 +45,6 @@ type ApplicationAttributeMapping struct { OidcScopes []string `json:"oidcScopes,omitempty"` } -type _ApplicationAttributeMapping ApplicationAttributeMapping - // NewApplicationAttributeMapping instantiates a new ApplicationAttributeMapping 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 @@ -514,43 +511,6 @@ func (o ApplicationAttributeMapping) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationAttributeMapping) UnmarshalJSON(bytes []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", - "required", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationAttributeMapping := _ApplicationAttributeMapping{} - - err = json.Unmarshal(bytes, &varApplicationAttributeMapping) - - if err != nil { - return err - } - - *o = ApplicationAttributeMapping(varApplicationAttributeMapping) - - return err -} - type NullableApplicationAttributeMapping struct { value *ApplicationAttributeMapping isSet bool diff --git a/management/model_application_external_link.go b/management/model_application_external_link.go index cbbee312..93995a07 100644 --- a/management/model_application_external_link.go +++ b/management/model_application_external_link.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationExternalLink type satisfies the MappedNullable interface at compile time @@ -47,8 +46,6 @@ type ApplicationExternalLink struct { HomePageUrl string `json:"homePageUrl"` } -type _ApplicationExternalLink ApplicationExternalLink - // NewApplicationExternalLink instantiates a new ApplicationExternalLink 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 @@ -559,45 +556,6 @@ func (o ApplicationExternalLink) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationExternalLink) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - "homePageUrl", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationExternalLink := _ApplicationExternalLink{} - - err = json.Unmarshal(bytes, &varApplicationExternalLink) - - if err != nil { - return err - } - - *o = ApplicationExternalLink(varApplicationExternalLink) - - return err -} - type NullableApplicationExternalLink struct { value *ApplicationExternalLink isSet bool diff --git a/management/model_application_icon.go b/management/model_application_icon.go index 2cb6feef..a5c0169b 100644 --- a/management/model_application_icon.go +++ b/management/model_application_icon.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationIcon type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationIcon struct { Href string `json:"href"` } -type _ApplicationIcon ApplicationIcon - // NewApplicationIcon instantiates a new ApplicationIcon 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 @@ -108,42 +105,6 @@ func (o ApplicationIcon) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationIcon) UnmarshalJSON(bytes []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{ - "id", - "href", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationIcon := _ApplicationIcon{} - - err = json.Unmarshal(bytes, &varApplicationIcon) - - if err != nil { - return err - } - - *o = ApplicationIcon(varApplicationIcon) - - return err -} - type NullableApplicationIcon struct { value *ApplicationIcon isSet bool diff --git a/management/model_application_oidc.go b/management/model_application_oidc.go index 6f79c076..c2a31cae 100644 --- a/management/model_application_oidc.go +++ b/management/model_application_oidc.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationOIDC type satisfies the MappedNullable interface at compile time @@ -90,8 +89,6 @@ type ApplicationOIDC struct { ParTimeout *int32 `json:"parTimeout,omitempty"` } -type _ApplicationOIDC ApplicationOIDC - // NewApplicationOIDC instantiates a new ApplicationOIDC 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 @@ -1420,46 +1417,6 @@ func (o ApplicationOIDC) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationOIDC) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - "grantTypes", - "tokenEndpointAuthMethod", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationOIDC := _ApplicationOIDC{} - - err = json.Unmarshal(bytes, &varApplicationOIDC) - - if err != nil { - return err - } - - *o = ApplicationOIDC(varApplicationOIDC) - - return err -} - type NullableApplicationOIDC struct { value *ApplicationOIDC isSet bool diff --git a/management/model_application_oidc_all_of_kerberos.go b/management/model_application_oidc_all_of_kerberos.go index 932e2ea0..2b474993 100644 --- a/management/model_application_oidc_all_of_kerberos.go +++ b/management/model_application_oidc_all_of_kerberos.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationOIDCAllOfKerberos type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type ApplicationOIDCAllOfKerberos struct { Key ApplicationOIDCAllOfKerberosKey `json:"key"` } -type _ApplicationOIDCAllOfKerberos ApplicationOIDCAllOfKerberos - // NewApplicationOIDCAllOfKerberos instantiates a new ApplicationOIDCAllOfKerberos 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 @@ -81,41 +78,6 @@ func (o ApplicationOIDCAllOfKerberos) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationOIDCAllOfKerberos) UnmarshalJSON(bytes []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{ - "key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationOIDCAllOfKerberos := _ApplicationOIDCAllOfKerberos{} - - err = json.Unmarshal(bytes, &varApplicationOIDCAllOfKerberos) - - if err != nil { - return err - } - - *o = ApplicationOIDCAllOfKerberos(varApplicationOIDCAllOfKerberos) - - return err -} - type NullableApplicationOIDCAllOfKerberos struct { value *ApplicationOIDCAllOfKerberos isSet bool diff --git a/management/model_application_oidc_all_of_kerberos_key.go b/management/model_application_oidc_all_of_kerberos_key.go index ca281aa2..81d5038e 100644 --- a/management/model_application_oidc_all_of_kerberos_key.go +++ b/management/model_application_oidc_all_of_kerberos_key.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationOIDCAllOfKerberosKey type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationOIDCAllOfKerberosKey struct { Id string `json:"id"` } -type _ApplicationOIDCAllOfKerberosKey ApplicationOIDCAllOfKerberosKey - // NewApplicationOIDCAllOfKerberosKey instantiates a new ApplicationOIDCAllOfKerberosKey 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 @@ -82,41 +79,6 @@ func (o ApplicationOIDCAllOfKerberosKey) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ApplicationOIDCAllOfKerberosKey) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationOIDCAllOfKerberosKey := _ApplicationOIDCAllOfKerberosKey{} - - err = json.Unmarshal(bytes, &varApplicationOIDCAllOfKerberosKey) - - if err != nil { - return err - } - - *o = ApplicationOIDCAllOfKerberosKey(varApplicationOIDCAllOfKerberosKey) - - return err -} - type NullableApplicationOIDCAllOfKerberosKey struct { value *ApplicationOIDCAllOfKerberosKey isSet bool diff --git a/management/model_application_oidc_all_of_mobile_passcode_refresh_duration.go b/management/model_application_oidc_all_of_mobile_passcode_refresh_duration.go index 83f7a927..24a1bc90 100644 --- a/management/model_application_oidc_all_of_mobile_passcode_refresh_duration.go +++ b/management/model_application_oidc_all_of_mobile_passcode_refresh_duration.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationOIDCAllOfMobilePasscodeRefreshDuration type satisfies the MappedNullable interface at compile time @@ -25,8 +24,6 @@ type ApplicationOIDCAllOfMobilePasscodeRefreshDuration struct { TimeUnit EnumPasscodeRefreshTimeUnit `json:"timeUnit"` } -type _ApplicationOIDCAllOfMobilePasscodeRefreshDuration ApplicationOIDCAllOfMobilePasscodeRefreshDuration - // NewApplicationOIDCAllOfMobilePasscodeRefreshDuration instantiates a new ApplicationOIDCAllOfMobilePasscodeRefreshDuration 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 @@ -113,42 +110,6 @@ func (o ApplicationOIDCAllOfMobilePasscodeRefreshDuration) ToMap() (map[string]i return toSerialize, nil } -func (o *ApplicationOIDCAllOfMobilePasscodeRefreshDuration) UnmarshalJSON(bytes []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{ - "duration", - "timeUnit", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationOIDCAllOfMobilePasscodeRefreshDuration := _ApplicationOIDCAllOfMobilePasscodeRefreshDuration{} - - err = json.Unmarshal(bytes, &varApplicationOIDCAllOfMobilePasscodeRefreshDuration) - - if err != nil { - return err - } - - *o = ApplicationOIDCAllOfMobilePasscodeRefreshDuration(varApplicationOIDCAllOfMobilePasscodeRefreshDuration) - - return err -} - type NullableApplicationOIDCAllOfMobilePasscodeRefreshDuration struct { value *ApplicationOIDCAllOfMobilePasscodeRefreshDuration isSet bool diff --git a/management/model_application_oidc_internal.go b/management/model_application_oidc_internal.go index 2ab35a13..e661349a 100644 --- a/management/model_application_oidc_internal.go +++ b/management/model_application_oidc_internal.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationOIDCInternal type satisfies the MappedNullable interface at compile time @@ -47,8 +46,6 @@ type ApplicationOIDCInternal struct { TokenEndpointAuthMethod EnumApplicationOIDCTokenAuthMethod `json:"tokenEndpointAuthMethod"` } -type _ApplicationOIDCInternal ApplicationOIDCInternal - // NewApplicationOIDCInternal instantiates a new ApplicationOIDCInternal 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 @@ -594,45 +591,6 @@ func (o ApplicationOIDCInternal) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationOIDCInternal) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - "tokenEndpointAuthMethod", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationOIDCInternal := _ApplicationOIDCInternal{} - - err = json.Unmarshal(bytes, &varApplicationOIDCInternal) - - if err != nil { - return err - } - - *o = ApplicationOIDCInternal(varApplicationOIDCInternal) - - return err -} - type NullableApplicationOIDCInternal struct { value *ApplicationOIDCInternal isSet bool diff --git a/management/model_application_ping_one_portal.go b/management/model_application_ping_one_portal.go index 6bb2f08b..55b7b23c 100644 --- a/management/model_application_ping_one_portal.go +++ b/management/model_application_ping_one_portal.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationPingOnePortal type satisfies the MappedNullable interface at compile time @@ -49,8 +48,6 @@ type ApplicationPingOnePortal struct { ApplyDefaultTheme bool `json:"applyDefaultTheme"` } -type _ApplicationPingOnePortal ApplicationPingOnePortal - // NewApplicationPingOnePortal instantiates a new ApplicationPingOnePortal 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 @@ -622,46 +619,6 @@ func (o ApplicationPingOnePortal) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationPingOnePortal) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - "tokenEndpointAuthMethod", - "applyDefaultTheme", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationPingOnePortal := _ApplicationPingOnePortal{} - - err = json.Unmarshal(bytes, &varApplicationPingOnePortal) - - if err != nil { - return err - } - - *o = ApplicationPingOnePortal(varApplicationPingOnePortal) - - return err -} - type NullableApplicationPingOnePortal struct { value *ApplicationPingOnePortal isSet bool diff --git a/management/model_application_ping_one_self_service.go b/management/model_application_ping_one_self_service.go index 3a2f4406..961f8f8b 100644 --- a/management/model_application_ping_one_self_service.go +++ b/management/model_application_ping_one_self_service.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationPingOneSelfService type satisfies the MappedNullable interface at compile time @@ -51,8 +50,6 @@ type ApplicationPingOneSelfService struct { ApplyDefaultTheme bool `json:"applyDefaultTheme"` } -type _ApplicationPingOneSelfService ApplicationPingOneSelfService - // NewApplicationPingOneSelfService instantiates a new ApplicationPingOneSelfService 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 @@ -659,46 +656,6 @@ func (o ApplicationPingOneSelfService) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationPingOneSelfService) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - "tokenEndpointAuthMethod", - "applyDefaultTheme", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationPingOneSelfService := _ApplicationPingOneSelfService{} - - err = json.Unmarshal(bytes, &varApplicationPingOneSelfService) - - if err != nil { - return err - } - - *o = ApplicationPingOneSelfService(varApplicationPingOneSelfService) - - return err -} - type NullableApplicationPingOneSelfService struct { value *ApplicationPingOneSelfService isSet bool diff --git a/management/model_application_resource_grant.go b/management/model_application_resource_grant.go index f1381227..1718f0e2 100644 --- a/management/model_application_resource_grant.go +++ b/management/model_application_resource_grant.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationResourceGrant type satisfies the MappedNullable interface at compile time @@ -33,8 +32,6 @@ type ApplicationResourceGrant struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -type _ApplicationResourceGrant ApplicationResourceGrant - // NewApplicationResourceGrant instantiates a new ApplicationResourceGrant 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 @@ -292,42 +289,6 @@ func (o ApplicationResourceGrant) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationResourceGrant) UnmarshalJSON(bytes []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{ - "resource", - "scopes", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationResourceGrant := _ApplicationResourceGrant{} - - err = json.Unmarshal(bytes, &varApplicationResourceGrant) - - if err != nil { - return err - } - - *o = ApplicationResourceGrant(varApplicationResourceGrant) - - return err -} - type NullableApplicationResourceGrant struct { value *ApplicationResourceGrant isSet bool diff --git a/management/model_application_resource_grant_resource.go b/management/model_application_resource_grant_resource.go index 5808a142..c7413352 100644 --- a/management/model_application_resource_grant_resource.go +++ b/management/model_application_resource_grant_resource.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationResourceGrantResource type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationResourceGrantResource struct { Id string `json:"id"` } -type _ApplicationResourceGrantResource ApplicationResourceGrantResource - // NewApplicationResourceGrantResource instantiates a new ApplicationResourceGrantResource 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 @@ -82,41 +79,6 @@ func (o ApplicationResourceGrantResource) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *ApplicationResourceGrantResource) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationResourceGrantResource := _ApplicationResourceGrantResource{} - - err = json.Unmarshal(bytes, &varApplicationResourceGrantResource) - - if err != nil { - return err - } - - *o = ApplicationResourceGrantResource(varApplicationResourceGrantResource) - - return err -} - type NullableApplicationResourceGrantResource struct { value *ApplicationResourceGrantResource isSet bool diff --git a/management/model_application_resource_grant_scopes_inner.go b/management/model_application_resource_grant_scopes_inner.go index c207f768..c57df755 100644 --- a/management/model_application_resource_grant_scopes_inner.go +++ b/management/model_application_resource_grant_scopes_inner.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationResourceGrantScopesInner type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationResourceGrantScopesInner struct { Id string `json:"id"` } -type _ApplicationResourceGrantScopesInner ApplicationResourceGrantScopesInner - // NewApplicationResourceGrantScopesInner instantiates a new ApplicationResourceGrantScopesInner 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 @@ -82,41 +79,6 @@ func (o ApplicationResourceGrantScopesInner) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *ApplicationResourceGrantScopesInner) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationResourceGrantScopesInner := _ApplicationResourceGrantScopesInner{} - - err = json.Unmarshal(bytes, &varApplicationResourceGrantScopesInner) - - if err != nil { - return err - } - - *o = ApplicationResourceGrantScopesInner(varApplicationResourceGrantScopesInner) - - return err -} - type NullableApplicationResourceGrantScopesInner struct { value *ApplicationResourceGrantScopesInner isSet bool diff --git a/management/model_application_saml.go b/management/model_application_saml.go index c341e3f7..1da64c1e 100644 --- a/management/model_application_saml.go +++ b/management/model_application_saml.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationSAML type satisfies the MappedNullable interface at compile time @@ -70,8 +69,6 @@ type ApplicationSAML struct { SpVerification *ApplicationSAMLAllOfSpVerification `json:"spVerification,omitempty"` } -type _ApplicationSAML ApplicationSAML - // NewApplicationSAML instantiates a new ApplicationSAML 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 @@ -1031,47 +1028,6 @@ func (o ApplicationSAML) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationSAML) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - "acsUrls", - "assertionDuration", - "spEntityId", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationSAML := _ApplicationSAML{} - - err = json.Unmarshal(bytes, &varApplicationSAML) - - if err != nil { - return err - } - - *o = ApplicationSAML(varApplicationSAML) - - return err -} - type NullableApplicationSAML struct { value *ApplicationSAML isSet bool diff --git a/management/model_application_saml_all_of_idp_signing.go b/management/model_application_saml_all_of_idp_signing.go index 3429765b..b7dc3075 100644 --- a/management/model_application_saml_all_of_idp_signing.go +++ b/management/model_application_saml_all_of_idp_signing.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationSAMLAllOfIdpSigning type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationSAMLAllOfIdpSigning struct { Algorithm *EnumCertificateKeySignagureAlgorithm `json:"algorithm,omitempty"` } -type _ApplicationSAMLAllOfIdpSigning ApplicationSAMLAllOfIdpSigning - // NewApplicationSAMLAllOfIdpSigning instantiates a new ApplicationSAMLAllOfIdpSigning 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 @@ -117,41 +114,6 @@ func (o ApplicationSAMLAllOfIdpSigning) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ApplicationSAMLAllOfIdpSigning) UnmarshalJSON(bytes []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{ - "key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationSAMLAllOfIdpSigning := _ApplicationSAMLAllOfIdpSigning{} - - err = json.Unmarshal(bytes, &varApplicationSAMLAllOfIdpSigning) - - if err != nil { - return err - } - - *o = ApplicationSAMLAllOfIdpSigning(varApplicationSAMLAllOfIdpSigning) - - return err -} - type NullableApplicationSAMLAllOfIdpSigning struct { value *ApplicationSAMLAllOfIdpSigning isSet bool diff --git a/management/model_application_saml_all_of_idp_signing_key.go b/management/model_application_saml_all_of_idp_signing_key.go index 40724f55..292af2a6 100644 --- a/management/model_application_saml_all_of_idp_signing_key.go +++ b/management/model_application_saml_all_of_idp_signing_key.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationSAMLAllOfIdpSigningKey type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationSAMLAllOfIdpSigningKey struct { Id string `json:"id"` } -type _ApplicationSAMLAllOfIdpSigningKey ApplicationSAMLAllOfIdpSigningKey - // NewApplicationSAMLAllOfIdpSigningKey instantiates a new ApplicationSAMLAllOfIdpSigningKey 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 @@ -82,41 +79,6 @@ func (o ApplicationSAMLAllOfIdpSigningKey) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *ApplicationSAMLAllOfIdpSigningKey) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationSAMLAllOfIdpSigningKey := _ApplicationSAMLAllOfIdpSigningKey{} - - err = json.Unmarshal(bytes, &varApplicationSAMLAllOfIdpSigningKey) - - if err != nil { - return err - } - - *o = ApplicationSAMLAllOfIdpSigningKey(varApplicationSAMLAllOfIdpSigningKey) - - return err -} - type NullableApplicationSAMLAllOfIdpSigningKey struct { value *ApplicationSAMLAllOfIdpSigningKey isSet bool diff --git a/management/model_application_saml_all_of_sp_verification.go b/management/model_application_saml_all_of_sp_verification.go index 76040793..9e8e3cf9 100644 --- a/management/model_application_saml_all_of_sp_verification.go +++ b/management/model_application_saml_all_of_sp_verification.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationSAMLAllOfSpVerification type satisfies the MappedNullable interface at compile time @@ -25,8 +24,6 @@ type ApplicationSAMLAllOfSpVerification struct { Certificates []ApplicationSAMLAllOfSpVerificationCertificates `json:"certificates"` } -type _ApplicationSAMLAllOfSpVerification ApplicationSAMLAllOfSpVerification - // NewApplicationSAMLAllOfSpVerification instantiates a new ApplicationSAMLAllOfSpVerification 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 @@ -122,41 +119,6 @@ func (o ApplicationSAMLAllOfSpVerification) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *ApplicationSAMLAllOfSpVerification) UnmarshalJSON(bytes []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{ - "certificates", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationSAMLAllOfSpVerification := _ApplicationSAMLAllOfSpVerification{} - - err = json.Unmarshal(bytes, &varApplicationSAMLAllOfSpVerification) - - if err != nil { - return err - } - - *o = ApplicationSAMLAllOfSpVerification(varApplicationSAMLAllOfSpVerification) - - return err -} - type NullableApplicationSAMLAllOfSpVerification struct { value *ApplicationSAMLAllOfSpVerification isSet bool diff --git a/management/model_application_saml_all_of_sp_verification_certificates.go b/management/model_application_saml_all_of_sp_verification_certificates.go index 4df7a2da..a8ae8881 100644 --- a/management/model_application_saml_all_of_sp_verification_certificates.go +++ b/management/model_application_saml_all_of_sp_verification_certificates.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationSAMLAllOfSpVerificationCertificates type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationSAMLAllOfSpVerificationCertificates struct { Id string `json:"id"` } -type _ApplicationSAMLAllOfSpVerificationCertificates ApplicationSAMLAllOfSpVerificationCertificates - // NewApplicationSAMLAllOfSpVerificationCertificates instantiates a new ApplicationSAMLAllOfSpVerificationCertificates 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 @@ -82,41 +79,6 @@ func (o ApplicationSAMLAllOfSpVerificationCertificates) ToMap() (map[string]inte return toSerialize, nil } -func (o *ApplicationSAMLAllOfSpVerificationCertificates) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationSAMLAllOfSpVerificationCertificates := _ApplicationSAMLAllOfSpVerificationCertificates{} - - err = json.Unmarshal(bytes, &varApplicationSAMLAllOfSpVerificationCertificates) - - if err != nil { - return err - } - - *o = ApplicationSAMLAllOfSpVerificationCertificates(varApplicationSAMLAllOfSpVerificationCertificates) - - return err -} - type NullableApplicationSAMLAllOfSpVerificationCertificates struct { value *ApplicationSAMLAllOfSpVerificationCertificates isSet bool diff --git a/management/model_application_wsfed.go b/management/model_application_wsfed.go index e919f260..052e2712 100644 --- a/management/model_application_wsfed.go +++ b/management/model_application_wsfed.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ApplicationWSFED type satisfies the MappedNullable interface at compile time @@ -55,8 +54,6 @@ type ApplicationWSFED struct { SloEndpoint *string `json:"sloEndpoint,omitempty"` } -type _ApplicationWSFED ApplicationWSFED - // NewApplicationWSFED instantiates a new ApplicationWSFED 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 @@ -728,47 +725,6 @@ func (o ApplicationWSFED) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApplicationWSFED) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "protocol", - "type", - "domainName", - "idpSigning", - "replyUrl", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationWSFED := _ApplicationWSFED{} - - err = json.Unmarshal(bytes, &varApplicationWSFED) - - if err != nil { - return err - } - - *o = ApplicationWSFED(varApplicationWSFED) - - return err -} - type NullableApplicationWSFED struct { value *ApplicationWSFED isSet bool diff --git a/management/model_application_wsfed_all_of_idp_signing.go b/management/model_application_wsfed_all_of_idp_signing.go index 65b2a68c..1098363c 100644 --- a/management/model_application_wsfed_all_of_idp_signing.go +++ b/management/model_application_wsfed_all_of_idp_signing.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationWSFEDAllOfIdpSigning type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationWSFEDAllOfIdpSigning struct { Key ApplicationWSFEDAllOfIdpSigningKey `json:"key"` } -type _ApplicationWSFEDAllOfIdpSigning ApplicationWSFEDAllOfIdpSigning - // NewApplicationWSFEDAllOfIdpSigning instantiates a new ApplicationWSFEDAllOfIdpSigning 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 @@ -108,42 +105,6 @@ func (o ApplicationWSFEDAllOfIdpSigning) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ApplicationWSFEDAllOfIdpSigning) UnmarshalJSON(bytes []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{ - "algorithm", - "key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationWSFEDAllOfIdpSigning := _ApplicationWSFEDAllOfIdpSigning{} - - err = json.Unmarshal(bytes, &varApplicationWSFEDAllOfIdpSigning) - - if err != nil { - return err - } - - *o = ApplicationWSFEDAllOfIdpSigning(varApplicationWSFEDAllOfIdpSigning) - - return err -} - type NullableApplicationWSFEDAllOfIdpSigning struct { value *ApplicationWSFEDAllOfIdpSigning isSet bool diff --git a/management/model_application_wsfed_all_of_idp_signing_key.go b/management/model_application_wsfed_all_of_idp_signing_key.go index 261d9a21..b869d002 100644 --- a/management/model_application_wsfed_all_of_idp_signing_key.go +++ b/management/model_application_wsfed_all_of_idp_signing_key.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationWSFEDAllOfIdpSigningKey type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type ApplicationWSFEDAllOfIdpSigningKey struct { Id string `json:"id"` } -type _ApplicationWSFEDAllOfIdpSigningKey ApplicationWSFEDAllOfIdpSigningKey - // NewApplicationWSFEDAllOfIdpSigningKey instantiates a new ApplicationWSFEDAllOfIdpSigningKey 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 @@ -82,41 +79,6 @@ func (o ApplicationWSFEDAllOfIdpSigningKey) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *ApplicationWSFEDAllOfIdpSigningKey) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationWSFEDAllOfIdpSigningKey := _ApplicationWSFEDAllOfIdpSigningKey{} - - err = json.Unmarshal(bytes, &varApplicationWSFEDAllOfIdpSigningKey) - - if err != nil { - return err - } - - *o = ApplicationWSFEDAllOfIdpSigningKey(varApplicationWSFEDAllOfIdpSigningKey) - - return err -} - type NullableApplicationWSFEDAllOfIdpSigningKey struct { value *ApplicationWSFEDAllOfIdpSigningKey isSet bool diff --git a/management/model_application_wsfed_all_of_kerberos_gateways.go b/management/model_application_wsfed_all_of_kerberos_gateways.go index 220d7436..c3f98f46 100644 --- a/management/model_application_wsfed_all_of_kerberos_gateways.go +++ b/management/model_application_wsfed_all_of_kerberos_gateways.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ApplicationWSFEDAllOfKerberosGateways type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type ApplicationWSFEDAllOfKerberosGateways struct { UserType ApplicationWSFEDAllOfKerberosUserType `json:"userType"` } -type _ApplicationWSFEDAllOfKerberosGateways ApplicationWSFEDAllOfKerberosGateways - // NewApplicationWSFEDAllOfKerberosGateways instantiates a new ApplicationWSFEDAllOfKerberosGateways 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 @@ -136,43 +133,6 @@ func (o ApplicationWSFEDAllOfKerberosGateways) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *ApplicationWSFEDAllOfKerberosGateways) UnmarshalJSON(bytes []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{ - "id", - "type", - "userType", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varApplicationWSFEDAllOfKerberosGateways := _ApplicationWSFEDAllOfKerberosGateways{} - - err = json.Unmarshal(bytes, &varApplicationWSFEDAllOfKerberosGateways) - - if err != nil { - return err - } - - *o = ApplicationWSFEDAllOfKerberosGateways(varApplicationWSFEDAllOfKerberosGateways) - - return err -} - type NullableApplicationWSFEDAllOfKerberosGateways struct { value *ApplicationWSFEDAllOfKerberosGateways isSet bool diff --git a/management/model_bill_of_materials.go b/management/model_bill_of_materials.go index 6f211c76..ff6dbd3c 100644 --- a/management/model_bill_of_materials.go +++ b/management/model_bill_of_materials.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BillOfMaterials type satisfies the MappedNullable interface at compile time @@ -30,8 +29,6 @@ type BillOfMaterials struct { Products []BillOfMaterialsProductsInner `json:"products"` } -type _BillOfMaterials BillOfMaterials - // NewBillOfMaterials instantiates a new BillOfMaterials 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 @@ -228,41 +225,6 @@ func (o BillOfMaterials) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BillOfMaterials) UnmarshalJSON(bytes []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{ - "products", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBillOfMaterials := _BillOfMaterials{} - - err = json.Unmarshal(bytes, &varBillOfMaterials) - - if err != nil { - return err - } - - *o = BillOfMaterials(varBillOfMaterials) - - return err -} - type NullableBillOfMaterials struct { value *BillOfMaterials isSet bool diff --git a/management/model_bill_of_materials_products_inner.go b/management/model_bill_of_materials_products_inner.go index ca5f63e4..e212d665 100644 --- a/management/model_bill_of_materials_products_inner.go +++ b/management/model_bill_of_materials_products_inner.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BillOfMaterialsProductsInner type satisfies the MappedNullable interface at compile time @@ -32,8 +31,6 @@ type BillOfMaterialsProductsInner struct { Bookmarks []BillOfMaterialsProductsInnerBookmarksInner `json:"bookmarks,omitempty"` } -type _BillOfMaterialsProductsInner BillOfMaterialsProductsInner - // NewBillOfMaterialsProductsInner instantiates a new BillOfMaterialsProductsInner 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 @@ -300,41 +297,6 @@ func (o BillOfMaterialsProductsInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BillOfMaterialsProductsInner) UnmarshalJSON(bytes []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{ - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBillOfMaterialsProductsInner := _BillOfMaterialsProductsInner{} - - err = json.Unmarshal(bytes, &varBillOfMaterialsProductsInner) - - if err != nil { - return err - } - - *o = BillOfMaterialsProductsInner(varBillOfMaterialsProductsInner) - - return err -} - type NullableBillOfMaterialsProductsInner struct { value *BillOfMaterialsProductsInner isSet bool diff --git a/management/model_bill_of_materials_products_inner_bookmarks_inner.go b/management/model_bill_of_materials_products_inner_bookmarks_inner.go index 37f871af..df7dfae4 100644 --- a/management/model_bill_of_materials_products_inner_bookmarks_inner.go +++ b/management/model_bill_of_materials_products_inner_bookmarks_inner.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BillOfMaterialsProductsInnerBookmarksInner type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type BillOfMaterialsProductsInnerBookmarksInner struct { Href string `json:"href"` } -type _BillOfMaterialsProductsInnerBookmarksInner BillOfMaterialsProductsInnerBookmarksInner - // NewBillOfMaterialsProductsInnerBookmarksInner instantiates a new BillOfMaterialsProductsInnerBookmarksInner 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 @@ -110,42 +107,6 @@ func (o BillOfMaterialsProductsInnerBookmarksInner) ToMap() (map[string]interfac return toSerialize, nil } -func (o *BillOfMaterialsProductsInnerBookmarksInner) UnmarshalJSON(bytes []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", - "href", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBillOfMaterialsProductsInnerBookmarksInner := _BillOfMaterialsProductsInnerBookmarksInner{} - - err = json.Unmarshal(bytes, &varBillOfMaterialsProductsInnerBookmarksInner) - - if err != nil { - return err - } - - *o = BillOfMaterialsProductsInnerBookmarksInner(varBillOfMaterialsProductsInnerBookmarksInner) - - return err -} - type NullableBillOfMaterialsProductsInnerBookmarksInner struct { value *BillOfMaterialsProductsInnerBookmarksInner isSet bool diff --git a/management/model_bill_of_materials_products_inner_console.go b/management/model_bill_of_materials_products_inner_console.go index eda7cd44..07baef91 100644 --- a/management/model_bill_of_materials_products_inner_console.go +++ b/management/model_bill_of_materials_products_inner_console.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BillOfMaterialsProductsInnerConsole type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type BillOfMaterialsProductsInnerConsole struct { Href string `json:"href"` } -type _BillOfMaterialsProductsInnerConsole BillOfMaterialsProductsInnerConsole - // NewBillOfMaterialsProductsInnerConsole instantiates a new BillOfMaterialsProductsInnerConsole 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 @@ -82,41 +79,6 @@ func (o BillOfMaterialsProductsInnerConsole) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *BillOfMaterialsProductsInnerConsole) UnmarshalJSON(bytes []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{ - "href", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBillOfMaterialsProductsInnerConsole := _BillOfMaterialsProductsInnerConsole{} - - err = json.Unmarshal(bytes, &varBillOfMaterialsProductsInnerConsole) - - if err != nil { - return err - } - - *o = BillOfMaterialsProductsInnerConsole(varBillOfMaterialsProductsInnerConsole) - - return err -} - type NullableBillOfMaterialsProductsInnerConsole struct { value *BillOfMaterialsProductsInnerConsole isSet bool diff --git a/management/model_branding_settings_logo.go b/management/model_branding_settings_logo.go index bf5c24d2..2b3b78c4 100644 --- a/management/model_branding_settings_logo.go +++ b/management/model_branding_settings_logo.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BrandingSettingsLogo type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type BrandingSettingsLogo struct { Id string `json:"id"` } -type _BrandingSettingsLogo BrandingSettingsLogo - // NewBrandingSettingsLogo instantiates a new BrandingSettingsLogo 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 @@ -110,42 +107,6 @@ func (o BrandingSettingsLogo) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BrandingSettingsLogo) UnmarshalJSON(bytes []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{ - "href", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBrandingSettingsLogo := _BrandingSettingsLogo{} - - err = json.Unmarshal(bytes, &varBrandingSettingsLogo) - - if err != nil { - return err - } - - *o = BrandingSettingsLogo(varBrandingSettingsLogo) - - return err -} - type NullableBrandingSettingsLogo struct { value *BrandingSettingsLogo isSet bool diff --git a/management/model_branding_theme.go b/management/model_branding_theme.go index f9b60c0b..1bba7bc1 100644 --- a/management/model_branding_theme.go +++ b/management/model_branding_theme.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BrandingTheme type satisfies the MappedNullable interface at compile time @@ -30,8 +29,6 @@ type BrandingTheme struct { Template EnumBrandingThemeTemplate `json:"template"` } -type _BrandingTheme BrandingTheme - // NewBrandingTheme instantiates a new BrandingTheme 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 @@ -245,43 +242,6 @@ func (o BrandingTheme) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BrandingTheme) UnmarshalJSON(bytes []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{ - "configuration", - "default", - "template", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBrandingTheme := _BrandingTheme{} - - err = json.Unmarshal(bytes, &varBrandingTheme) - - if err != nil { - return err - } - - *o = BrandingTheme(varBrandingTheme) - - return err -} - type NullableBrandingTheme struct { value *BrandingTheme isSet bool diff --git a/management/model_branding_theme_configuration.go b/management/model_branding_theme_configuration.go index 702bf012..e63be01e 100644 --- a/management/model_branding_theme_configuration.go +++ b/management/model_branding_theme_configuration.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BrandingThemeConfiguration type satisfies the MappedNullable interface at compile time @@ -44,8 +43,6 @@ type BrandingThemeConfiguration struct { Name *string `json:"name,omitempty"` } -type _BrandingThemeConfiguration BrandingThemeConfiguration - // NewBrandingThemeConfiguration instantiates a new BrandingThemeConfiguration 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 @@ -459,48 +456,6 @@ func (o BrandingThemeConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BrandingThemeConfiguration) UnmarshalJSON(bytes []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{ - "backgroundType", - "bodyTextColor", - "buttonColor", - "buttonTextColor", - "cardColor", - "headingTextColor", - "linkTextColor", - "logoType", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBrandingThemeConfiguration := _BrandingThemeConfiguration{} - - err = json.Unmarshal(bytes, &varBrandingThemeConfiguration) - - if err != nil { - return err - } - - *o = BrandingThemeConfiguration(varBrandingThemeConfiguration) - - return err -} - type NullableBrandingThemeConfiguration struct { value *BrandingThemeConfiguration isSet bool diff --git a/management/model_branding_theme_configuration_background_image.go b/management/model_branding_theme_configuration_background_image.go index f8a8cbb4..f05b1f0e 100644 --- a/management/model_branding_theme_configuration_background_image.go +++ b/management/model_branding_theme_configuration_background_image.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BrandingThemeConfigurationBackgroundImage type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type BrandingThemeConfigurationBackgroundImage struct { Id string `json:"id"` } -type _BrandingThemeConfigurationBackgroundImage BrandingThemeConfigurationBackgroundImage - // NewBrandingThemeConfigurationBackgroundImage instantiates a new BrandingThemeConfigurationBackgroundImage 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 @@ -110,42 +107,6 @@ func (o BrandingThemeConfigurationBackgroundImage) ToMap() (map[string]interface return toSerialize, nil } -func (o *BrandingThemeConfigurationBackgroundImage) UnmarshalJSON(bytes []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{ - "href", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBrandingThemeConfigurationBackgroundImage := _BrandingThemeConfigurationBackgroundImage{} - - err = json.Unmarshal(bytes, &varBrandingThemeConfigurationBackgroundImage) - - if err != nil { - return err - } - - *o = BrandingThemeConfigurationBackgroundImage(varBrandingThemeConfigurationBackgroundImage) - - return err -} - type NullableBrandingThemeConfigurationBackgroundImage struct { value *BrandingThemeConfigurationBackgroundImage isSet bool diff --git a/management/model_branding_theme_configuration_logo.go b/management/model_branding_theme_configuration_logo.go index 0073440c..8eca9d41 100644 --- a/management/model_branding_theme_configuration_logo.go +++ b/management/model_branding_theme_configuration_logo.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BrandingThemeConfigurationLogo type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type BrandingThemeConfigurationLogo struct { Id string `json:"id"` } -type _BrandingThemeConfigurationLogo BrandingThemeConfigurationLogo - // NewBrandingThemeConfigurationLogo instantiates a new BrandingThemeConfigurationLogo 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 @@ -110,42 +107,6 @@ func (o BrandingThemeConfigurationLogo) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *BrandingThemeConfigurationLogo) UnmarshalJSON(bytes []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{ - "href", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBrandingThemeConfigurationLogo := _BrandingThemeConfigurationLogo{} - - err = json.Unmarshal(bytes, &varBrandingThemeConfigurationLogo) - - if err != nil { - return err - } - - *o = BrandingThemeConfigurationLogo(varBrandingThemeConfigurationLogo) - - return err -} - type NullableBrandingThemeConfigurationLogo struct { value *BrandingThemeConfigurationLogo isSet bool diff --git a/management/model_branding_theme_default.go b/management/model_branding_theme_default.go index a9849488..6096a8fc 100644 --- a/management/model_branding_theme_default.go +++ b/management/model_branding_theme_default.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the BrandingThemeDefault type satisfies the MappedNullable interface at compile time @@ -25,8 +24,6 @@ type BrandingThemeDefault struct { Default bool `json:"default"` } -type _BrandingThemeDefault BrandingThemeDefault - // NewBrandingThemeDefault instantiates a new BrandingThemeDefault 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 @@ -118,41 +115,6 @@ func (o BrandingThemeDefault) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BrandingThemeDefault) UnmarshalJSON(bytes []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{ - "default", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varBrandingThemeDefault := _BrandingThemeDefault{} - - err = json.Unmarshal(bytes, &varBrandingThemeDefault) - - if err != nil { - return err - } - - *o = BrandingThemeDefault(varBrandingThemeDefault) - - return err -} - type NullableBrandingThemeDefault struct { value *BrandingThemeDefault isSet bool diff --git a/management/model_certificate.go b/management/model_certificate.go index f0ec79bb..5bcfa698 100644 --- a/management/model_certificate.go +++ b/management/model_certificate.go @@ -14,7 +14,6 @@ import ( "math/big" "encoding/json" "time" - "fmt" ) // checks if the Certificate type satisfies the MappedNullable interface at compile time @@ -55,8 +54,6 @@ type Certificate struct { CustomCRL *string `json:"customCRL,omitempty"` } -type _Certificate Certificate - // NewCertificate instantiates a new Certificate 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 @@ -689,47 +686,6 @@ func (o Certificate) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Certificate) UnmarshalJSON(bytes []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{ - "algorithm", - "keyLength", - "name", - "signatureAlgorithm", - "subjectDN", - "usageType", - "validityPeriod", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varCertificate := _Certificate{} - - err = json.Unmarshal(bytes, &varCertificate) - - if err != nil { - return err - } - - *o = Certificate(varCertificate) - - return err -} - type NullableCertificate struct { value *Certificate isSet bool diff --git a/management/model_certificate_key_update.go b/management/model_certificate_key_update.go index 5610cdc3..3ff06dbe 100644 --- a/management/model_certificate_key_update.go +++ b/management/model_certificate_key_update.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the CertificateKeyUpdate type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type CertificateKeyUpdate struct { IssuerDN *string `json:"issuerDN,omitempty"` } -type _CertificateKeyUpdate CertificateKeyUpdate - // NewCertificateKeyUpdate instantiates a new CertificateKeyUpdate 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 @@ -146,42 +143,6 @@ func (o CertificateKeyUpdate) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CertificateKeyUpdate) UnmarshalJSON(bytes []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{ - "default", - "usageType", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varCertificateKeyUpdate := _CertificateKeyUpdate{} - - err = json.Unmarshal(bytes, &varCertificateKeyUpdate) - - if err != nil { - return err - } - - *o = CertificateKeyUpdate(varCertificateKeyUpdate) - - return err -} - type NullableCertificateKeyUpdate struct { value *CertificateKeyUpdate isSet bool diff --git a/management/model_custom_domain.go b/management/model_custom_domain.go index 544d0da8..4d819a10 100644 --- a/management/model_custom_domain.go +++ b/management/model_custom_domain.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the CustomDomain type satisfies the MappedNullable interface at compile time @@ -32,8 +31,6 @@ type CustomDomain struct { Status *EnumCustomDomainStatus `json:"status,omitempty"` } -type _CustomDomain CustomDomain - // NewCustomDomain instantiates a new CustomDomain 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 @@ -300,41 +297,6 @@ func (o CustomDomain) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CustomDomain) UnmarshalJSON(bytes []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{ - "domainName", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varCustomDomain := _CustomDomain{} - - err = json.Unmarshal(bytes, &varCustomDomain) - - if err != nil { - return err - } - - *o = CustomDomain(varCustomDomain) - - return err -} - type NullableCustomDomain struct { value *CustomDomain isSet bool diff --git a/management/model_custom_domain_certificate_request.go b/management/model_custom_domain_certificate_request.go index 62f86958..52c04c36 100644 --- a/management/model_custom_domain_certificate_request.go +++ b/management/model_custom_domain_certificate_request.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the CustomDomainCertificateRequest type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type CustomDomainCertificateRequest struct { PrivateKey string `json:"privateKey"` } -type _CustomDomainCertificateRequest CustomDomainCertificateRequest - // NewCustomDomainCertificateRequest instantiates a new CustomDomainCertificateRequest 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 @@ -147,42 +144,6 @@ func (o CustomDomainCertificateRequest) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *CustomDomainCertificateRequest) UnmarshalJSON(bytes []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{ - "certificate", - "privateKey", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varCustomDomainCertificateRequest := _CustomDomainCertificateRequest{} - - err = json.Unmarshal(bytes, &varCustomDomainCertificateRequest) - - if err != nil { - return err - } - - *o = CustomDomainCertificateRequest(varCustomDomainCertificateRequest) - - return err -} - type NullableCustomDomainCertificateRequest struct { value *CustomDomainCertificateRequest isSet bool diff --git a/management/model_email_domain.go b/management/model_email_domain.go index dc988ccc..15562856 100644 --- a/management/model_email_domain.go +++ b/management/model_email_domain.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the EmailDomain type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type EmailDomain struct { Environment *ObjectEnvironment `json:"environment,omitempty"` } -type _EmailDomain EmailDomain - // NewEmailDomain instantiates a new EmailDomain 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 @@ -191,41 +188,6 @@ func (o EmailDomain) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EmailDomain) UnmarshalJSON(bytes []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{ - "domainName", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varEmailDomain := _EmailDomain{} - - err = json.Unmarshal(bytes, &varEmailDomain) - - if err != nil { - return err - } - - *o = EmailDomain(varEmailDomain) - - return err -} - type NullableEmailDomain struct { value *EmailDomain isSet bool diff --git a/management/model_email_domain_trusted_email.go b/management/model_email_domain_trusted_email.go index 113f3b4e..f52cb7a4 100644 --- a/management/model_email_domain_trusted_email.go +++ b/management/model_email_domain_trusted_email.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the EmailDomainTrustedEmail type satisfies the MappedNullable interface at compile time @@ -31,8 +30,6 @@ type EmailDomainTrustedEmail struct { DomainId *string `json:"domainId,omitempty"` } -type _EmailDomainTrustedEmail EmailDomainTrustedEmail - // NewEmailDomainTrustedEmail instantiates a new EmailDomainTrustedEmail 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 @@ -264,41 +261,6 @@ func (o EmailDomainTrustedEmail) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EmailDomainTrustedEmail) UnmarshalJSON(bytes []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{ - "emailAddress", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varEmailDomainTrustedEmail := _EmailDomainTrustedEmail{} - - err = json.Unmarshal(bytes, &varEmailDomainTrustedEmail) - - if err != nil { - return err - } - - *o = EmailDomainTrustedEmail(varEmailDomainTrustedEmail) - - return err -} - type NullableEmailDomainTrustedEmail struct { value *EmailDomainTrustedEmail isSet bool diff --git a/management/model_environment.go b/management/model_environment.go index 54edd217..ac1e1fd6 100644 --- a/management/model_environment.go +++ b/management/model_environment.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the Environment type satisfies the MappedNullable interface at compile time @@ -38,8 +37,6 @@ type Environment struct { UpdatedAt *string `json:"updatedAt,omitempty"` } -type _Environment Environment - // NewEnvironment instantiates a new Environment 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 @@ -419,44 +416,6 @@ func (o Environment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Environment) UnmarshalJSON(bytes []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{ - "license", - "name", - "region", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varEnvironment := _Environment{} - - err = json.Unmarshal(bytes, &varEnvironment) - - if err != nil { - return err - } - - *o = Environment(varEnvironment) - - return err -} - type NullableEnvironment struct { value *Environment isSet bool diff --git a/management/model_environment_license.go b/management/model_environment_license.go index 016cc0a4..b17b737f 100644 --- a/management/model_environment_license.go +++ b/management/model_environment_license.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the EnvironmentLicense type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type EnvironmentLicense struct { Id string `json:"id"` } -type _EnvironmentLicense EnvironmentLicense - // NewEnvironmentLicense instantiates a new EnvironmentLicense 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 @@ -82,41 +79,6 @@ func (o EnvironmentLicense) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EnvironmentLicense) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varEnvironmentLicense := _EnvironmentLicense{} - - err = json.Unmarshal(bytes, &varEnvironmentLicense) - - if err != nil { - return err - } - - *o = EnvironmentLicense(varEnvironmentLicense) - - return err -} - type NullableEnvironmentLicense struct { value *EnvironmentLicense isSet bool diff --git a/management/model_flow_policy_assignment.go b/management/model_flow_policy_assignment.go index 8b79d245..438b6b57 100644 --- a/management/model_flow_policy_assignment.go +++ b/management/model_flow_policy_assignment.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FlowPolicyAssignment type satisfies the MappedNullable interface at compile time @@ -30,8 +29,6 @@ type FlowPolicyAssignment struct { Priority int32 `json:"priority"` } -type _FlowPolicyAssignment FlowPolicyAssignment - // NewFlowPolicyAssignment instantiates a new FlowPolicyAssignment 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 @@ -254,42 +251,6 @@ func (o FlowPolicyAssignment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FlowPolicyAssignment) UnmarshalJSON(bytes []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{ - "flowPolicy", - "priority", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFlowPolicyAssignment := _FlowPolicyAssignment{} - - err = json.Unmarshal(bytes, &varFlowPolicyAssignment) - - if err != nil { - return err - } - - *o = FlowPolicyAssignment(varFlowPolicyAssignment) - - return err -} - type NullableFlowPolicyAssignment struct { value *FlowPolicyAssignment isSet bool diff --git a/management/model_flow_policy_assignment_flow_policy.go b/management/model_flow_policy_assignment_flow_policy.go index 2a30a922..1c7162f7 100644 --- a/management/model_flow_policy_assignment_flow_policy.go +++ b/management/model_flow_policy_assignment_flow_policy.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FlowPolicyAssignmentFlowPolicy type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type FlowPolicyAssignmentFlowPolicy struct { Id string `json:"id"` } -type _FlowPolicyAssignmentFlowPolicy FlowPolicyAssignmentFlowPolicy - // NewFlowPolicyAssignmentFlowPolicy instantiates a new FlowPolicyAssignmentFlowPolicy 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 @@ -82,41 +79,6 @@ func (o FlowPolicyAssignmentFlowPolicy) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *FlowPolicyAssignmentFlowPolicy) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFlowPolicyAssignmentFlowPolicy := _FlowPolicyAssignmentFlowPolicy{} - - err = json.Unmarshal(bytes, &varFlowPolicyAssignmentFlowPolicy) - - if err != nil { - return err - } - - *o = FlowPolicyAssignmentFlowPolicy(varFlowPolicyAssignmentFlowPolicy) - - return err -} - type NullableFlowPolicyAssignmentFlowPolicy struct { value *FlowPolicyAssignmentFlowPolicy isSet bool diff --git a/management/model_form.go b/management/model_form.go index 0d6c6f45..0fb8623d 100644 --- a/management/model_form.go +++ b/management/model_form.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the Form type satisfies the MappedNullable interface at compile time @@ -48,8 +47,6 @@ type Form struct { Modified *time.Time `json:"modified,omitempty"` } -type _Form Form - // NewForm instantiates a new Form 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 @@ -560,45 +557,6 @@ func (o Form) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Form) UnmarshalJSON(bytes []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", - "category", - "components", - "markOptional", - "markRequired", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varForm := _Form{} - - err = json.Unmarshal(bytes, &varForm) - - if err != nil { - return err - } - - *o = Form(varForm) - - return err -} - type NullableForm struct { value *Form isSet bool diff --git a/management/model_form_components.go b/management/model_form_components.go index 82fef16b..87ceb7a7 100644 --- a/management/model_form_components.go +++ b/management/model_form_components.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormComponents type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type FormComponents struct { Fields []FormField `json:"fields"` } -type _FormComponents FormComponents - // NewFormComponents instantiates a new FormComponents 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 @@ -81,41 +78,6 @@ func (o FormComponents) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormComponents) UnmarshalJSON(bytes []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{ - "fields", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormComponents := _FormComponents{} - - err = json.Unmarshal(bytes, &varFormComponents) - - if err != nil { - return err - } - - *o = FormComponents(varFormComponents) - - return err -} - type NullableFormComponents struct { value *FormComponents isSet bool diff --git a/management/model_form_element.go b/management/model_form_element.go index fff750a8..acd36739 100644 --- a/management/model_form_element.go +++ b/management/model_form_element.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormElement type satisfies the MappedNullable interface at compile time @@ -41,8 +40,6 @@ type FormElement struct { OtherOptionAttributeDisabled *bool `json:"otherOptionAttributeDisabled,omitempty"` } -type _FormElement FormElement - // NewFormElement instantiates a new FormElement 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 @@ -405,42 +402,6 @@ func (o FormElement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormElement) UnmarshalJSON(bytes []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{ - "key", - "required", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormElement := _FormElement{} - - err = json.Unmarshal(bytes, &varFormElement) - - if err != nil { - return err - } - - *o = FormElement(varFormElement) - - return err -} - type NullableFormElement struct { value *FormElement isSet bool diff --git a/management/model_form_element_option.go b/management/model_form_element_option.go index 4967884c..4aa9e7cf 100644 --- a/management/model_form_element_option.go +++ b/management/model_form_element_option.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormElementOption type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type FormElementOption struct { Value string `json:"value"` } -type _FormElementOption FormElementOption - // NewFormElementOption instantiates a new FormElementOption 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 @@ -110,42 +107,6 @@ func (o FormElementOption) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormElementOption) UnmarshalJSON(bytes []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{ - "label", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormElementOption := _FormElementOption{} - - err = json.Unmarshal(bytes, &varFormElementOption) - - if err != nil { - return err - } - - *o = FormElementOption(varFormElementOption) - - return err -} - type NullableFormElementOption struct { value *FormElementOption isSet bool diff --git a/management/model_form_field_checkbox.go b/management/model_form_field_checkbox.go index e6f59a92..af0bf7b0 100644 --- a/management/model_form_field_checkbox.go +++ b/management/model_form_field_checkbox.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldCheckbox type satisfies the MappedNullable interface at compile time @@ -47,8 +46,6 @@ type FormFieldCheckbox struct { Validation *FormElementValidation `json:"validation,omitempty"` } -type _FormFieldCheckbox FormFieldCheckbox - // NewFormFieldCheckbox instantiates a new FormFieldCheckbox 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 @@ -550,46 +547,6 @@ func (o FormFieldCheckbox) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldCheckbox) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "required", - "layout", - "options", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldCheckbox := _FormFieldCheckbox{} - - err = json.Unmarshal(bytes, &varFormFieldCheckbox) - - if err != nil { - return err - } - - *o = FormFieldCheckbox(varFormFieldCheckbox) - - return err -} - type NullableFormFieldCheckbox struct { value *FormFieldCheckbox isSet bool diff --git a/management/model_form_field_combobox.go b/management/model_form_field_combobox.go index 0fcec8ec..990e0e4a 100644 --- a/management/model_form_field_combobox.go +++ b/management/model_form_field_combobox.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldCombobox type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type FormFieldCombobox struct { Value string `json:"value"` } -type _FormFieldCombobox FormFieldCombobox - // NewFormFieldCombobox instantiates a new FormFieldCombobox 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 @@ -164,44 +161,6 @@ func (o FormFieldCombobox) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldCombobox) UnmarshalJSON(bytes []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{ - "type", - "position", - "label", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldCombobox := _FormFieldCombobox{} - - err = json.Unmarshal(bytes, &varFormFieldCombobox) - - if err != nil { - return err - } - - *o = FormFieldCombobox(varFormFieldCombobox) - - return err -} - type NullableFormFieldCombobox struct { value *FormFieldCombobox isSet bool diff --git a/management/model_form_field_common.go b/management/model_form_field_common.go index 046223d8..9930e7c6 100644 --- a/management/model_form_field_common.go +++ b/management/model_form_field_common.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldCommon type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type FormFieldCommon struct { Position FormFieldCommonPosition `json:"position"` } -type _FormFieldCommon FormFieldCommon - // NewFormFieldCommon instantiates a new FormFieldCommon 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 @@ -108,42 +105,6 @@ func (o FormFieldCommon) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldCommon) UnmarshalJSON(bytes []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{ - "type", - "position", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldCommon := _FormFieldCommon{} - - err = json.Unmarshal(bytes, &varFormFieldCommon) - - if err != nil { - return err - } - - *o = FormFieldCommon(varFormFieldCommon) - - return err -} - type NullableFormFieldCommon struct { value *FormFieldCommon isSet bool diff --git a/management/model_form_field_common_position.go b/management/model_form_field_common_position.go index 4cc43f5b..1e32d07c 100644 --- a/management/model_form_field_common_position.go +++ b/management/model_form_field_common_position.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldCommonPosition type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type FormFieldCommonPosition struct { Width *int32 `json:"width,omitempty"` } -type _FormFieldCommonPosition FormFieldCommonPosition - // NewFormFieldCommonPosition instantiates a new FormFieldCommonPosition 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 @@ -147,42 +144,6 @@ func (o FormFieldCommonPosition) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldCommonPosition) UnmarshalJSON(bytes []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{ - "row", - "col", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldCommonPosition := _FormFieldCommonPosition{} - - err = json.Unmarshal(bytes, &varFormFieldCommonPosition) - - if err != nil { - return err - } - - *o = FormFieldCommonPosition(varFormFieldCommonPosition) - - return err -} - type NullableFormFieldCommonPosition struct { value *FormFieldCommonPosition isSet bool diff --git a/management/model_form_field_divider.go b/management/model_form_field_divider.go index 5a06db27..68410a92 100644 --- a/management/model_form_field_divider.go +++ b/management/model_form_field_divider.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldDivider type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type FormFieldDivider struct { Content *string `json:"content,omitempty"` } -type _FormFieldDivider FormFieldDivider - // NewFormFieldDivider instantiates a new FormFieldDivider 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 @@ -145,42 +142,6 @@ func (o FormFieldDivider) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldDivider) UnmarshalJSON(bytes []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{ - "type", - "position", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldDivider := _FormFieldDivider{} - - err = json.Unmarshal(bytes, &varFormFieldDivider) - - if err != nil { - return err - } - - *o = FormFieldDivider(varFormFieldDivider) - - return err -} - type NullableFormFieldDivider struct { value *FormFieldDivider isSet bool diff --git a/management/model_form_field_dropdown.go b/management/model_form_field_dropdown.go index aed1f902..b3e11fbf 100644 --- a/management/model_form_field_dropdown.go +++ b/management/model_form_field_dropdown.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldDropdown type satisfies the MappedNullable interface at compile time @@ -47,8 +46,6 @@ type FormFieldDropdown struct { Validation *FormElementValidation `json:"validation,omitempty"` } -type _FormFieldDropdown FormFieldDropdown - // NewFormFieldDropdown instantiates a new FormFieldDropdown 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 @@ -559,45 +556,6 @@ func (o FormFieldDropdown) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldDropdown) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "required", - "options", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldDropdown := _FormFieldDropdown{} - - err = json.Unmarshal(bytes, &varFormFieldDropdown) - - if err != nil { - return err - } - - *o = FormFieldDropdown(varFormFieldDropdown) - - return err -} - type NullableFormFieldDropdown struct { value *FormFieldDropdown isSet bool diff --git a/management/model_form_field_empty_field.go b/management/model_form_field_empty_field.go index 1e7c0e50..a3576a6b 100644 --- a/management/model_form_field_empty_field.go +++ b/management/model_form_field_empty_field.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldEmptyField type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type FormFieldEmptyField struct { Content *string `json:"content,omitempty"` } -type _FormFieldEmptyField FormFieldEmptyField - // NewFormFieldEmptyField instantiates a new FormFieldEmptyField 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 @@ -145,42 +142,6 @@ func (o FormFieldEmptyField) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldEmptyField) UnmarshalJSON(bytes []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{ - "type", - "position", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldEmptyField := _FormFieldEmptyField{} - - err = json.Unmarshal(bytes, &varFormFieldEmptyField) - - if err != nil { - return err - } - - *o = FormFieldEmptyField(varFormFieldEmptyField) - - return err -} - type NullableFormFieldEmptyField struct { value *FormFieldEmptyField isSet bool diff --git a/management/model_form_field_error_display.go b/management/model_form_field_error_display.go index 3dd6008d..c808479a 100644 --- a/management/model_form_field_error_display.go +++ b/management/model_form_field_error_display.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldErrorDisplay type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type FormFieldErrorDisplay struct { Content *string `json:"content,omitempty"` } -type _FormFieldErrorDisplay FormFieldErrorDisplay - // NewFormFieldErrorDisplay instantiates a new FormFieldErrorDisplay 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 @@ -145,42 +142,6 @@ func (o FormFieldErrorDisplay) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldErrorDisplay) UnmarshalJSON(bytes []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{ - "type", - "position", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldErrorDisplay := _FormFieldErrorDisplay{} - - err = json.Unmarshal(bytes, &varFormFieldErrorDisplay) - - if err != nil { - return err - } - - *o = FormFieldErrorDisplay(varFormFieldErrorDisplay) - - return err -} - type NullableFormFieldErrorDisplay struct { value *FormFieldErrorDisplay isSet bool diff --git a/management/model_form_field_flow_button.go b/management/model_form_field_flow_button.go index b5c252f1..2c213e96 100644 --- a/management/model_form_field_flow_button.go +++ b/management/model_form_field_flow_button.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldFlowButton type satisfies the MappedNullable interface at compile time @@ -29,8 +28,6 @@ type FormFieldFlowButton struct { Styles *FormFlowButtonStyles `json:"styles,omitempty"` } -type _FormFieldFlowButton FormFieldFlowButton - // NewFormFieldFlowButton instantiates a new FormFieldFlowButton 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 @@ -200,44 +197,6 @@ func (o FormFieldFlowButton) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldFlowButton) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "label", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldFlowButton := _FormFieldFlowButton{} - - err = json.Unmarshal(bytes, &varFormFieldFlowButton) - - if err != nil { - return err - } - - *o = FormFieldFlowButton(varFormFieldFlowButton) - - return err -} - type NullableFormFieldFlowButton struct { value *FormFieldFlowButton isSet bool diff --git a/management/model_form_field_flow_link.go b/management/model_form_field_flow_link.go index c0a857f2..c5948e2a 100644 --- a/management/model_form_field_flow_link.go +++ b/management/model_form_field_flow_link.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldFlowLink type satisfies the MappedNullable interface at compile time @@ -29,8 +28,6 @@ type FormFieldFlowLink struct { Styles *FormFlowLinkStyles `json:"styles,omitempty"` } -type _FormFieldFlowLink FormFieldFlowLink - // NewFormFieldFlowLink instantiates a new FormFieldFlowLink 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 @@ -200,44 +197,6 @@ func (o FormFieldFlowLink) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldFlowLink) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "label", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldFlowLink := _FormFieldFlowLink{} - - err = json.Unmarshal(bytes, &varFormFieldFlowLink) - - if err != nil { - return err - } - - *o = FormFieldFlowLink(varFormFieldFlowLink) - - return err -} - type NullableFormFieldFlowLink struct { value *FormFieldFlowLink isSet bool diff --git a/management/model_form_field_password.go b/management/model_form_field_password.go index 302aef76..03418d86 100644 --- a/management/model_form_field_password.go +++ b/management/model_form_field_password.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldPassword type satisfies the MappedNullable interface at compile time @@ -47,8 +46,6 @@ type FormFieldPassword struct { Validation *FormElementValidation `json:"validation,omitempty"` } -type _FormFieldPassword FormFieldPassword - // NewFormFieldPassword instantiates a new FormFieldPassword 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 @@ -568,44 +565,6 @@ func (o FormFieldPassword) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldPassword) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "required", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldPassword := _FormFieldPassword{} - - err = json.Unmarshal(bytes, &varFormFieldPassword) - - if err != nil { - return err - } - - *o = FormFieldPassword(varFormFieldPassword) - - return err -} - type NullableFormFieldPassword struct { value *FormFieldPassword isSet bool diff --git a/management/model_form_field_password_verify.go b/management/model_form_field_password_verify.go index 727e3304..76bc97ee 100644 --- a/management/model_form_field_password_verify.go +++ b/management/model_form_field_password_verify.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldPasswordVerify type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type FormFieldPasswordVerify struct { LabelPasswordVerify *string `json:"labelPasswordVerify,omitempty"` } -type _FormFieldPasswordVerify FormFieldPasswordVerify - // NewFormFieldPasswordVerify instantiates a new FormFieldPasswordVerify 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 @@ -145,42 +142,6 @@ func (o FormFieldPasswordVerify) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldPasswordVerify) UnmarshalJSON(bytes []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{ - "type", - "position", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldPasswordVerify := _FormFieldPasswordVerify{} - - err = json.Unmarshal(bytes, &varFormFieldPasswordVerify) - - if err != nil { - return err - } - - *o = FormFieldPasswordVerify(varFormFieldPasswordVerify) - - return err -} - type NullableFormFieldPasswordVerify struct { value *FormFieldPasswordVerify isSet bool diff --git a/management/model_form_field_qr_code.go b/management/model_form_field_qr_code.go index 72858830..6f2dd81f 100644 --- a/management/model_form_field_qr_code.go +++ b/management/model_form_field_qr_code.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldQrCode type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type FormFieldQrCode struct { ShowBorder bool `json:"showBorder"` } -type _FormFieldQrCode FormFieldQrCode - // NewFormFieldQrCode instantiates a new FormFieldQrCode 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 @@ -190,45 +187,6 @@ func (o FormFieldQrCode) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldQrCode) UnmarshalJSON(bytes []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{ - "type", - "position", - "QrCodeType", - "alignment", - "showBorder", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldQrCode := _FormFieldQrCode{} - - err = json.Unmarshal(bytes, &varFormFieldQrCode) - - if err != nil { - return err - } - - *o = FormFieldQrCode(varFormFieldQrCode) - - return err -} - type NullableFormFieldQrCode struct { value *FormFieldQrCode isSet bool diff --git a/management/model_form_field_radio.go b/management/model_form_field_radio.go index 9c0e7358..e38ee7f2 100644 --- a/management/model_form_field_radio.go +++ b/management/model_form_field_radio.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldRadio type satisfies the MappedNullable interface at compile time @@ -47,8 +46,6 @@ type FormFieldRadio struct { Validation *FormElementValidation `json:"validation,omitempty"` } -type _FormFieldRadio FormFieldRadio - // NewFormFieldRadio instantiates a new FormFieldRadio 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 @@ -550,46 +547,6 @@ func (o FormFieldRadio) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldRadio) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "required", - "layout", - "options", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldRadio := _FormFieldRadio{} - - err = json.Unmarshal(bytes, &varFormFieldRadio) - - if err != nil { - return err - } - - *o = FormFieldRadio(varFormFieldRadio) - - return err -} - type NullableFormFieldRadio struct { value *FormFieldRadio isSet bool diff --git a/management/model_form_field_recaptcha_v2.go b/management/model_form_field_recaptcha_v2.go index d1f6b087..198e7ba0 100644 --- a/management/model_form_field_recaptcha_v2.go +++ b/management/model_form_field_recaptcha_v2.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldRecaptchaV2 type satisfies the MappedNullable interface at compile time @@ -29,8 +28,6 @@ type FormFieldRecaptchaV2 struct { Alignment EnumFormItemAlignment `json:"alignment"` } -type _FormFieldRecaptchaV2 FormFieldRecaptchaV2 - // NewFormFieldRecaptchaV2 instantiates a new FormFieldRecaptchaV2 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 @@ -217,46 +214,6 @@ func (o FormFieldRecaptchaV2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldRecaptchaV2) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "size", - "theme", - "alignment", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldRecaptchaV2 := _FormFieldRecaptchaV2{} - - err = json.Unmarshal(bytes, &varFormFieldRecaptchaV2) - - if err != nil { - return err - } - - *o = FormFieldRecaptchaV2(varFormFieldRecaptchaV2) - - return err -} - type NullableFormFieldRecaptchaV2 struct { value *FormFieldRecaptchaV2 isSet bool diff --git a/management/model_form_field_slate_textblob.go b/management/model_form_field_slate_textblob.go index 0cc0ac63..f7ce19ee 100644 --- a/management/model_form_field_slate_textblob.go +++ b/management/model_form_field_slate_textblob.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldSlateTextblob type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type FormFieldSlateTextblob struct { Content *string `json:"content,omitempty"` } -type _FormFieldSlateTextblob FormFieldSlateTextblob - // NewFormFieldSlateTextblob instantiates a new FormFieldSlateTextblob 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 @@ -145,42 +142,6 @@ func (o FormFieldSlateTextblob) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldSlateTextblob) UnmarshalJSON(bytes []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{ - "type", - "position", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldSlateTextblob := _FormFieldSlateTextblob{} - - err = json.Unmarshal(bytes, &varFormFieldSlateTextblob) - - if err != nil { - return err - } - - *o = FormFieldSlateTextblob(varFormFieldSlateTextblob) - - return err -} - type NullableFormFieldSlateTextblob struct { value *FormFieldSlateTextblob isSet bool diff --git a/management/model_form_field_social_login_button.go b/management/model_form_field_social_login_button.go index 0abaaa6f..7a6d9fcd 100644 --- a/management/model_form_field_social_login_button.go +++ b/management/model_form_field_social_login_button.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldSocialLoginButton type satisfies the MappedNullable interface at compile time @@ -38,8 +37,6 @@ type FormFieldSocialLoginButton struct { Width *int32 `json:"width,omitempty"` } -type _FormFieldSocialLoginButton FormFieldSocialLoginButton - // NewFormFieldSocialLoginButton instantiates a new FormFieldSocialLoginButton 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 @@ -348,48 +345,6 @@ func (o FormFieldSocialLoginButton) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldSocialLoginButton) UnmarshalJSON(bytes []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{ - "type", - "position", - "label", - "idpType", - "idpName", - "idpId", - "idpEnabled", - "iconSrc", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldSocialLoginButton := _FormFieldSocialLoginButton{} - - err = json.Unmarshal(bytes, &varFormFieldSocialLoginButton) - - if err != nil { - return err - } - - *o = FormFieldSocialLoginButton(varFormFieldSocialLoginButton) - - return err -} - type NullableFormFieldSocialLoginButton struct { value *FormFieldSocialLoginButton isSet bool diff --git a/management/model_form_field_submit_button.go b/management/model_form_field_submit_button.go index 6295f97b..922e8c95 100644 --- a/management/model_form_field_submit_button.go +++ b/management/model_form_field_submit_button.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldSubmitButton type satisfies the MappedNullable interface at compile time @@ -29,8 +28,6 @@ type FormFieldSubmitButton struct { Styles *FormFlowButtonStyles `json:"styles,omitempty"` } -type _FormFieldSubmitButton FormFieldSubmitButton - // NewFormFieldSubmitButton instantiates a new FormFieldSubmitButton 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 @@ -200,44 +197,6 @@ func (o FormFieldSubmitButton) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldSubmitButton) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "label", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldSubmitButton := _FormFieldSubmitButton{} - - err = json.Unmarshal(bytes, &varFormFieldSubmitButton) - - if err != nil { - return err - } - - *o = FormFieldSubmitButton(varFormFieldSubmitButton) - - return err -} - type NullableFormFieldSubmitButton struct { value *FormFieldSubmitButton isSet bool diff --git a/management/model_form_field_text.go b/management/model_form_field_text.go index 8328de1a..8bc0d715 100644 --- a/management/model_form_field_text.go +++ b/management/model_form_field_text.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFieldText type satisfies the MappedNullable interface at compile time @@ -47,8 +46,6 @@ type FormFieldText struct { Validation FormElementValidation `json:"validation"` } -type _FormFieldText FormFieldText - // NewFormFieldText instantiates a new FormFieldText 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 @@ -559,45 +556,6 @@ func (o FormFieldText) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFieldText) UnmarshalJSON(bytes []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{ - "type", - "position", - "key", - "required", - "validation", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFieldText := _FormFieldText{} - - err = json.Unmarshal(bytes, &varFormFieldText) - - if err != nil { - return err - } - - *o = FormFieldText(varFormFieldText) - - return err -} - type NullableFormFieldText struct { value *FormFieldText isSet bool diff --git a/management/model_form_flow_button.go b/management/model_form_flow_button.go index 982d9dcd..def37296 100644 --- a/management/model_form_flow_button.go +++ b/management/model_form_flow_button.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFlowButton type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type FormFlowButton struct { Styles *FormFlowButtonStyles `json:"styles,omitempty"` } -type _FormFlowButton FormFlowButton - // NewFormFlowButton instantiates a new FormFlowButton 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 @@ -146,42 +143,6 @@ func (o FormFlowButton) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFlowButton) UnmarshalJSON(bytes []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{ - "key", - "label", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFlowButton := _FormFlowButton{} - - err = json.Unmarshal(bytes, &varFormFlowButton) - - if err != nil { - return err - } - - *o = FormFlowButton(varFormFlowButton) - - return err -} - type NullableFormFlowButton struct { value *FormFlowButton isSet bool diff --git a/management/model_form_flow_link.go b/management/model_form_flow_link.go index 35843eb2..35f0f560 100644 --- a/management/model_form_flow_link.go +++ b/management/model_form_flow_link.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormFlowLink type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type FormFlowLink struct { Styles *FormFlowLinkStyles `json:"styles,omitempty"` } -type _FormFlowLink FormFlowLink - // NewFormFlowLink instantiates a new FormFlowLink 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 @@ -146,42 +143,6 @@ func (o FormFlowLink) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormFlowLink) UnmarshalJSON(bytes []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{ - "key", - "label", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormFlowLink := _FormFlowLink{} - - err = json.Unmarshal(bytes, &varFormFlowLink) - - if err != nil { - return err - } - - *o = FormFlowLink(varFormFlowLink) - - return err -} - type NullableFormFlowLink struct { value *FormFlowLink isSet bool diff --git a/management/model_form_qr_code.go b/management/model_form_qr_code.go index 109ac4bd..91b0f1cd 100644 --- a/management/model_form_qr_code.go +++ b/management/model_form_qr_code.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormQrCode type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type FormQrCode struct { ShowBorder bool `json:"showBorder"` } -type _FormQrCode FormQrCode - // NewFormQrCode instantiates a new FormQrCode 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 @@ -136,43 +133,6 @@ func (o FormQrCode) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormQrCode) UnmarshalJSON(bytes []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{ - "QrCodeType", - "alignment", - "showBorder", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormQrCode := _FormQrCode{} - - err = json.Unmarshal(bytes, &varFormQrCode) - - if err != nil { - return err - } - - *o = FormQrCode(varFormQrCode) - - return err -} - type NullableFormQrCode struct { value *FormQrCode isSet bool diff --git a/management/model_form_recaptcha_v2.go b/management/model_form_recaptcha_v2.go index bb1ff3d9..aec5eaf8 100644 --- a/management/model_form_recaptcha_v2.go +++ b/management/model_form_recaptcha_v2.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormRecaptchaV2 type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type FormRecaptchaV2 struct { Alignment EnumFormItemAlignment `json:"alignment"` } -type _FormRecaptchaV2 FormRecaptchaV2 - // NewFormRecaptchaV2 instantiates a new FormRecaptchaV2 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 @@ -163,44 +160,6 @@ func (o FormRecaptchaV2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormRecaptchaV2) UnmarshalJSON(bytes []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{ - "key", - "size", - "theme", - "alignment", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormRecaptchaV2 := _FormRecaptchaV2{} - - err = json.Unmarshal(bytes, &varFormRecaptchaV2) - - if err != nil { - return err - } - - *o = FormRecaptchaV2(varFormRecaptchaV2) - - return err -} - type NullableFormRecaptchaV2 struct { value *FormRecaptchaV2 isSet bool diff --git a/management/model_form_social_login_button.go b/management/model_form_social_login_button.go index 7ab85170..309602ee 100644 --- a/management/model_form_social_login_button.go +++ b/management/model_form_social_login_button.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormSocialLoginButton type satisfies the MappedNullable interface at compile time @@ -36,8 +35,6 @@ type FormSocialLoginButton struct { Width *int32 `json:"width,omitempty"` } -type _FormSocialLoginButton FormSocialLoginButton - // NewFormSocialLoginButton instantiates a new FormSocialLoginButton 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 @@ -294,46 +291,6 @@ func (o FormSocialLoginButton) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormSocialLoginButton) UnmarshalJSON(bytes []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{ - "label", - "idpType", - "idpName", - "idpId", - "idpEnabled", - "iconSrc", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormSocialLoginButton := _FormSocialLoginButton{} - - err = json.Unmarshal(bytes, &varFormSocialLoginButton) - - if err != nil { - return err - } - - *o = FormSocialLoginButton(varFormSocialLoginButton) - - return err -} - type NullableFormSocialLoginButton struct { value *FormSocialLoginButton isSet bool diff --git a/management/model_form_submit.go b/management/model_form_submit.go index 29de11a3..96a4cb12 100644 --- a/management/model_form_submit.go +++ b/management/model_form_submit.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the FormSubmit type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type FormSubmit struct { Styles *FormFlowButtonStyles `json:"styles,omitempty"` } -type _FormSubmit FormSubmit - // NewFormSubmit instantiates a new FormSubmit 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 @@ -146,42 +143,6 @@ func (o FormSubmit) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormSubmit) UnmarshalJSON(bytes []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{ - "key", - "label", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varFormSubmit := _FormSubmit{} - - err = json.Unmarshal(bytes, &varFormSubmit) - - if err != nil { - return err - } - - *o = FormSubmit(varFormSubmit) - - return err -} - type NullableFormSubmit struct { value *FormSubmit isSet bool diff --git a/management/model_gateway.go b/management/model_gateway.go index 0deb445e..25e1d4cf 100644 --- a/management/model_gateway.go +++ b/management/model_gateway.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the Gateway type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type Gateway struct { CurrentAlerts []map[string]interface{} `json:"currentAlerts,omitempty"` } -type _Gateway Gateway - // NewGateway instantiates a new Gateway 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 @@ -392,43 +389,6 @@ func (o Gateway) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Gateway) UnmarshalJSON(bytes []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", - "type", - "enabled", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGateway := _Gateway{} - - err = json.Unmarshal(bytes, &varGateway) - - if err != nil { - return err - } - - *o = Gateway(varGateway) - - return err -} - type NullableGateway struct { value *Gateway isSet bool diff --git a/management/model_gateway_type_ldap.go b/management/model_gateway_type_ldap.go index ac6c3205..dc5ac722 100644 --- a/management/model_gateway_type_ldap.go +++ b/management/model_gateway_type_ldap.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeLDAP type satisfies the MappedNullable interface at compile time @@ -51,8 +50,6 @@ type GatewayTypeLDAP struct { FollowReferrals *bool `json:"followReferrals,omitempty"` } -type _GatewayTypeLDAP GatewayTypeLDAP - // NewGatewayTypeLDAP instantiates a new GatewayTypeLDAP 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 @@ -689,47 +686,6 @@ func (o GatewayTypeLDAP) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GatewayTypeLDAP) UnmarshalJSON(bytes []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", - "type", - "enabled", - "bindDN", - "bindPassword", - "serversHostAndPort", - "vendor", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeLDAP := _GatewayTypeLDAP{} - - err = json.Unmarshal(bytes, &varGatewayTypeLDAP) - - if err != nil { - return err - } - - *o = GatewayTypeLDAP(varGatewayTypeLDAP) - - return err -} - type NullableGatewayTypeLDAP struct { value *GatewayTypeLDAP isSet bool diff --git a/management/model_gateway_type_ldap_all_of_kerberos.go b/management/model_gateway_type_ldap_all_of_kerberos.go index b9f9d64f..9aa2e30e 100644 --- a/management/model_gateway_type_ldap_all_of_kerberos.go +++ b/management/model_gateway_type_ldap_all_of_kerberos.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeLDAPAllOfKerberos type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type GatewayTypeLDAPAllOfKerberos struct { MinutesToRetainPreviousCredentials *int32 `json:"minutesToRetainPreviousCredentials,omitempty"` } -type _GatewayTypeLDAPAllOfKerberos GatewayTypeLDAPAllOfKerberos - // NewGatewayTypeLDAPAllOfKerberos instantiates a new GatewayTypeLDAPAllOfKerberos 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 @@ -156,41 +153,6 @@ func (o GatewayTypeLDAPAllOfKerberos) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GatewayTypeLDAPAllOfKerberos) UnmarshalJSON(bytes []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{ - "serviceAccountUserPrincipalName", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeLDAPAllOfKerberos := _GatewayTypeLDAPAllOfKerberos{} - - err = json.Unmarshal(bytes, &varGatewayTypeLDAPAllOfKerberos) - - if err != nil { - return err - } - - *o = GatewayTypeLDAPAllOfKerberos(varGatewayTypeLDAPAllOfKerberos) - - return err -} - type NullableGatewayTypeLDAPAllOfKerberos struct { value *GatewayTypeLDAPAllOfKerberos isSet bool diff --git a/management/model_gateway_type_ldap_all_of_new_user_lookup.go b/management/model_gateway_type_ldap_all_of_new_user_lookup.go index d09e04a0..743d0406 100644 --- a/management/model_gateway_type_ldap_all_of_new_user_lookup.go +++ b/management/model_gateway_type_ldap_all_of_new_user_lookup.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeLDAPAllOfNewUserLookup type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type GatewayTypeLDAPAllOfNewUserLookup struct { Population GatewayTypeLDAPAllOfNewUserLookupPopulation `json:"population"` } -type _GatewayTypeLDAPAllOfNewUserLookup GatewayTypeLDAPAllOfNewUserLookup - // NewGatewayTypeLDAPAllOfNewUserLookup instantiates a new GatewayTypeLDAPAllOfNewUserLookup 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 @@ -137,43 +134,6 @@ func (o GatewayTypeLDAPAllOfNewUserLookup) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *GatewayTypeLDAPAllOfNewUserLookup) UnmarshalJSON(bytes []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{ - "attributeMappings", - "ldapFilterPattern", - "population", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeLDAPAllOfNewUserLookup := _GatewayTypeLDAPAllOfNewUserLookup{} - - err = json.Unmarshal(bytes, &varGatewayTypeLDAPAllOfNewUserLookup) - - if err != nil { - return err - } - - *o = GatewayTypeLDAPAllOfNewUserLookup(varGatewayTypeLDAPAllOfNewUserLookup) - - return err -} - type NullableGatewayTypeLDAPAllOfNewUserLookup struct { value *GatewayTypeLDAPAllOfNewUserLookup isSet bool diff --git a/management/model_gateway_type_ldap_all_of_new_user_lookup_attribute_mappings.go b/management/model_gateway_type_ldap_all_of_new_user_lookup_attribute_mappings.go index 43ecb969..22ada6e4 100644 --- a/management/model_gateway_type_ldap_all_of_new_user_lookup_attribute_mappings.go +++ b/management/model_gateway_type_ldap_all_of_new_user_lookup_attribute_mappings.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeLDAPAllOfNewUserLookupAttributeMappings type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type GatewayTypeLDAPAllOfNewUserLookupAttributeMappings struct { Value string `json:"value"` } -type _GatewayTypeLDAPAllOfNewUserLookupAttributeMappings GatewayTypeLDAPAllOfNewUserLookupAttributeMappings - // NewGatewayTypeLDAPAllOfNewUserLookupAttributeMappings instantiates a new GatewayTypeLDAPAllOfNewUserLookupAttributeMappings 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 @@ -110,42 +107,6 @@ func (o GatewayTypeLDAPAllOfNewUserLookupAttributeMappings) ToMap() (map[string] return toSerialize, nil } -func (o *GatewayTypeLDAPAllOfNewUserLookupAttributeMappings) UnmarshalJSON(bytes []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", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeLDAPAllOfNewUserLookupAttributeMappings := _GatewayTypeLDAPAllOfNewUserLookupAttributeMappings{} - - err = json.Unmarshal(bytes, &varGatewayTypeLDAPAllOfNewUserLookupAttributeMappings) - - if err != nil { - return err - } - - *o = GatewayTypeLDAPAllOfNewUserLookupAttributeMappings(varGatewayTypeLDAPAllOfNewUserLookupAttributeMappings) - - return err -} - type NullableGatewayTypeLDAPAllOfNewUserLookupAttributeMappings struct { value *GatewayTypeLDAPAllOfNewUserLookupAttributeMappings isSet bool diff --git a/management/model_gateway_type_ldap_all_of_new_user_lookup_population.go b/management/model_gateway_type_ldap_all_of_new_user_lookup_population.go index bb3e8f81..a4b30516 100644 --- a/management/model_gateway_type_ldap_all_of_new_user_lookup_population.go +++ b/management/model_gateway_type_ldap_all_of_new_user_lookup_population.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeLDAPAllOfNewUserLookupPopulation type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type GatewayTypeLDAPAllOfNewUserLookupPopulation struct { Id string `json:"id"` } -type _GatewayTypeLDAPAllOfNewUserLookupPopulation GatewayTypeLDAPAllOfNewUserLookupPopulation - // NewGatewayTypeLDAPAllOfNewUserLookupPopulation instantiates a new GatewayTypeLDAPAllOfNewUserLookupPopulation 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 @@ -82,41 +79,6 @@ func (o GatewayTypeLDAPAllOfNewUserLookupPopulation) ToMap() (map[string]interfa return toSerialize, nil } -func (o *GatewayTypeLDAPAllOfNewUserLookupPopulation) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeLDAPAllOfNewUserLookupPopulation := _GatewayTypeLDAPAllOfNewUserLookupPopulation{} - - err = json.Unmarshal(bytes, &varGatewayTypeLDAPAllOfNewUserLookupPopulation) - - if err != nil { - return err - } - - *o = GatewayTypeLDAPAllOfNewUserLookupPopulation(varGatewayTypeLDAPAllOfNewUserLookupPopulation) - - return err -} - type NullableGatewayTypeLDAPAllOfNewUserLookupPopulation struct { value *GatewayTypeLDAPAllOfNewUserLookupPopulation isSet bool diff --git a/management/model_gateway_type_ldap_all_of_user_types.go b/management/model_gateway_type_ldap_all_of_user_types.go index 4ceb77a1..92ee4bc8 100644 --- a/management/model_gateway_type_ldap_all_of_user_types.go +++ b/management/model_gateway_type_ldap_all_of_user_types.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeLDAPAllOfUserTypes type satisfies the MappedNullable interface at compile time @@ -34,8 +33,6 @@ type GatewayTypeLDAPAllOfUserTypes struct { SearchBaseDn string `json:"searchBaseDn"` } -type _GatewayTypeLDAPAllOfUserTypes GatewayTypeLDAPAllOfUserTypes - // NewGatewayTypeLDAPAllOfUserTypes instantiates a new GatewayTypeLDAPAllOfUserTypes 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 @@ -275,44 +272,6 @@ func (o GatewayTypeLDAPAllOfUserTypes) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GatewayTypeLDAPAllOfUserTypes) UnmarshalJSON(bytes []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", - "orderedCorrelationAttributes", - "passwordAuthority", - "searchBaseDn", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeLDAPAllOfUserTypes := _GatewayTypeLDAPAllOfUserTypes{} - - err = json.Unmarshal(bytes, &varGatewayTypeLDAPAllOfUserTypes) - - if err != nil { - return err - } - - *o = GatewayTypeLDAPAllOfUserTypes(varGatewayTypeLDAPAllOfUserTypes) - - return err -} - type NullableGatewayTypeLDAPAllOfUserTypes struct { value *GatewayTypeLDAPAllOfUserTypes isSet bool diff --git a/management/model_gateway_type_radius.go b/management/model_gateway_type_radius.go index ecd5aa3c..c06a9ee4 100644 --- a/management/model_gateway_type_radius.go +++ b/management/model_gateway_type_radius.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeRADIUS type satisfies the MappedNullable interface at compile time @@ -42,8 +41,6 @@ type GatewayTypeRADIUS struct { RadiusClients []GatewayTypeRADIUSAllOfRadiusClients `json:"radiusClients"` } -type _GatewayTypeRADIUS GatewayTypeRADIUS - // NewGatewayTypeRADIUS instantiates a new GatewayTypeRADIUS 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 @@ -484,45 +481,6 @@ func (o GatewayTypeRADIUS) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GatewayTypeRADIUS) UnmarshalJSON(bytes []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", - "type", - "enabled", - "davinci", - "radiusClients", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeRADIUS := _GatewayTypeRADIUS{} - - err = json.Unmarshal(bytes, &varGatewayTypeRADIUS) - - if err != nil { - return err - } - - *o = GatewayTypeRADIUS(varGatewayTypeRADIUS) - - return err -} - type NullableGatewayTypeRADIUS struct { value *GatewayTypeRADIUS isSet bool diff --git a/management/model_gateway_type_radius_all_of_davinci.go b/management/model_gateway_type_radius_all_of_davinci.go index 7d4dbcf8..0be94045 100644 --- a/management/model_gateway_type_radius_all_of_davinci.go +++ b/management/model_gateway_type_radius_all_of_davinci.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeRADIUSAllOfDavinci type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type GatewayTypeRADIUSAllOfDavinci struct { Policy GatewayTypeRADIUSAllOfDavinciPolicy `json:"policy"` } -type _GatewayTypeRADIUSAllOfDavinci GatewayTypeRADIUSAllOfDavinci - // NewGatewayTypeRADIUSAllOfDavinci instantiates a new GatewayTypeRADIUSAllOfDavinci 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 @@ -81,41 +78,6 @@ func (o GatewayTypeRADIUSAllOfDavinci) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GatewayTypeRADIUSAllOfDavinci) UnmarshalJSON(bytes []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{ - "policy", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeRADIUSAllOfDavinci := _GatewayTypeRADIUSAllOfDavinci{} - - err = json.Unmarshal(bytes, &varGatewayTypeRADIUSAllOfDavinci) - - if err != nil { - return err - } - - *o = GatewayTypeRADIUSAllOfDavinci(varGatewayTypeRADIUSAllOfDavinci) - - return err -} - type NullableGatewayTypeRADIUSAllOfDavinci struct { value *GatewayTypeRADIUSAllOfDavinci isSet bool diff --git a/management/model_gateway_type_radius_all_of_davinci_policy.go b/management/model_gateway_type_radius_all_of_davinci_policy.go index a2d292ee..cbd2ac9d 100644 --- a/management/model_gateway_type_radius_all_of_davinci_policy.go +++ b/management/model_gateway_type_radius_all_of_davinci_policy.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeRADIUSAllOfDavinciPolicy type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type GatewayTypeRADIUSAllOfDavinciPolicy struct { Id string `json:"id"` } -type _GatewayTypeRADIUSAllOfDavinciPolicy GatewayTypeRADIUSAllOfDavinciPolicy - // NewGatewayTypeRADIUSAllOfDavinciPolicy instantiates a new GatewayTypeRADIUSAllOfDavinciPolicy 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 @@ -82,41 +79,6 @@ func (o GatewayTypeRADIUSAllOfDavinciPolicy) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *GatewayTypeRADIUSAllOfDavinciPolicy) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeRADIUSAllOfDavinciPolicy := _GatewayTypeRADIUSAllOfDavinciPolicy{} - - err = json.Unmarshal(bytes, &varGatewayTypeRADIUSAllOfDavinciPolicy) - - if err != nil { - return err - } - - *o = GatewayTypeRADIUSAllOfDavinciPolicy(varGatewayTypeRADIUSAllOfDavinciPolicy) - - return err -} - type NullableGatewayTypeRADIUSAllOfDavinciPolicy struct { value *GatewayTypeRADIUSAllOfDavinciPolicy isSet bool diff --git a/management/model_gateway_type_radius_all_of_radius_clients.go b/management/model_gateway_type_radius_all_of_radius_clients.go index 23673b22..3c695f23 100644 --- a/management/model_gateway_type_radius_all_of_radius_clients.go +++ b/management/model_gateway_type_radius_all_of_radius_clients.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GatewayTypeRADIUSAllOfRadiusClients type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type GatewayTypeRADIUSAllOfRadiusClients struct { SharedSecret *string `json:"sharedSecret,omitempty"` } -type _GatewayTypeRADIUSAllOfRadiusClients GatewayTypeRADIUSAllOfRadiusClients - // NewGatewayTypeRADIUSAllOfRadiusClients instantiates a new GatewayTypeRADIUSAllOfRadiusClients 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 @@ -119,41 +116,6 @@ func (o GatewayTypeRADIUSAllOfRadiusClients) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *GatewayTypeRADIUSAllOfRadiusClients) UnmarshalJSON(bytes []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{ - "ip", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGatewayTypeRADIUSAllOfRadiusClients := _GatewayTypeRADIUSAllOfRadiusClients{} - - err = json.Unmarshal(bytes, &varGatewayTypeRADIUSAllOfRadiusClients) - - if err != nil { - return err - } - - *o = GatewayTypeRADIUSAllOfRadiusClients(varGatewayTypeRADIUSAllOfRadiusClients) - - return err -} - type NullableGatewayTypeRADIUSAllOfRadiusClients struct { value *GatewayTypeRADIUSAllOfRadiusClients isSet bool diff --git a/management/model_group.go b/management/model_group.go index bc0e7013..dc3a8a7a 100644 --- a/management/model_group.go +++ b/management/model_group.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the Group type satisfies the MappedNullable interface at compile time @@ -44,8 +43,6 @@ type Group struct { TotalMemberCounts *GroupTotalMemberCounts `json:"totalMemberCounts,omitempty"` } -type _Group Group - // NewGroup instantiates a new Group 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 @@ -557,41 +554,6 @@ func (o Group) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Group) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGroup := _Group{} - - err = json.Unmarshal(bytes, &varGroup) - - if err != nil { - return err - } - - *o = Group(varGroup) - - return err -} - type NullableGroup struct { value *Group isSet bool diff --git a/management/model_group_membership.go b/management/model_group_membership.go index 72ad7dba..6e12369d 100644 --- a/management/model_group_membership.go +++ b/management/model_group_membership.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GroupMembership type satisfies the MappedNullable interface at compile time @@ -30,8 +29,6 @@ type GroupMembership struct { Type *EnumGroupMembershipType `json:"type,omitempty"` } -type _GroupMembership GroupMembership - // NewGroupMembership instantiates a new GroupMembership 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 @@ -263,41 +260,6 @@ func (o GroupMembership) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GroupMembership) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGroupMembership := _GroupMembership{} - - err = json.Unmarshal(bytes, &varGroupMembership) - - if err != nil { - return err - } - - *o = GroupMembership(varGroupMembership) - - return err -} - type NullableGroupMembership struct { value *GroupMembership isSet bool diff --git a/management/model_group_nesting.go b/management/model_group_nesting.go index f285edd3..d06b5946 100644 --- a/management/model_group_nesting.go +++ b/management/model_group_nesting.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GroupNesting type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type GroupNesting struct { Type *string `json:"type,omitempty"` } -type _GroupNesting GroupNesting - // NewGroupNesting instantiates a new GroupNesting 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 @@ -155,41 +152,6 @@ func (o GroupNesting) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GroupNesting) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGroupNesting := _GroupNesting{} - - err = json.Unmarshal(bytes, &varGroupNesting) - - if err != nil { - return err - } - - *o = GroupNesting(varGroupNesting) - - return err -} - type NullableGroupNesting struct { value *GroupNesting isSet bool diff --git a/management/model_group_population.go b/management/model_group_population.go index 662e19c5..1c1a743a 100644 --- a/management/model_group_population.go +++ b/management/model_group_population.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the GroupPopulation type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type GroupPopulation struct { Id string `json:"id"` } -type _GroupPopulation GroupPopulation - // NewGroupPopulation instantiates a new GroupPopulation 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 @@ -82,41 +79,6 @@ func (o GroupPopulation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GroupPopulation) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varGroupPopulation := _GroupPopulation{} - - err = json.Unmarshal(bytes, &varGroupPopulation) - - if err != nil { - return err - } - - *o = GroupPopulation(varGroupPopulation) - - return err -} - type NullableGroupPopulation struct { value *GroupPopulation isSet bool diff --git a/management/model_identity_provider_apple.go b/management/model_identity_provider_apple.go index 91fb5719..0c9c4a3b 100644 --- a/management/model_identity_provider_apple.go +++ b/management/model_identity_provider_apple.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderApple type satisfies the MappedNullable interface at compile time @@ -48,8 +47,6 @@ type IdentityProviderApple struct { TeamId string `json:"teamId"` } -type _IdentityProviderApple IdentityProviderApple - // NewIdentityProviderApple instantiates a new IdentityProviderApple 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 @@ -577,47 +574,6 @@ func (o IdentityProviderApple) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProviderApple) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - "clientId", - "clientSecretSigningKey", - "keyId", - "teamId", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderApple := _IdentityProviderApple{} - - err = json.Unmarshal(bytes, &varIdentityProviderApple) - - if err != nil { - return err - } - - *o = IdentityProviderApple(varIdentityProviderApple) - - return err -} - type NullableIdentityProviderApple struct { value *IdentityProviderApple isSet bool diff --git a/management/model_identity_provider_attribute.go b/management/model_identity_provider_attribute.go index 652ee3ad..f119d5b6 100644 --- a/management/model_identity_provider_attribute.go +++ b/management/model_identity_provider_attribute.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderAttribute type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type IdentityProviderAttribute struct { UpdatedAt *string `json:"updatedAt,omitempty"` } -type _IdentityProviderAttribute IdentityProviderAttribute - // NewIdentityProviderAttribute instantiates a new IdentityProviderAttribute 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 @@ -392,43 +389,6 @@ func (o IdentityProviderAttribute) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProviderAttribute) UnmarshalJSON(bytes []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", - "value", - "update", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderAttribute := _IdentityProviderAttribute{} - - err = json.Unmarshal(bytes, &varIdentityProviderAttribute) - - if err != nil { - return err - } - - *o = IdentityProviderAttribute(varIdentityProviderAttribute) - - return err -} - type NullableIdentityProviderAttribute struct { value *IdentityProviderAttribute isSet bool diff --git a/management/model_identity_provider_client_id_client_secret.go b/management/model_identity_provider_client_id_client_secret.go index f11f1b56..48e709b7 100644 --- a/management/model_identity_provider_client_id_client_secret.go +++ b/management/model_identity_provider_client_id_client_secret.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderClientIDClientSecret type satisfies the MappedNullable interface at compile time @@ -44,8 +43,6 @@ type IdentityProviderClientIDClientSecret struct { ClientSecret string `json:"clientSecret"` } -type _IdentityProviderClientIDClientSecret IdentityProviderClientIDClientSecret - // NewIdentityProviderClientIDClientSecret instantiates a new IdentityProviderClientIDClientSecret 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 @@ -521,45 +518,6 @@ func (o IdentityProviderClientIDClientSecret) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *IdentityProviderClientIDClientSecret) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - "clientId", - "clientSecret", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderClientIDClientSecret := _IdentityProviderClientIDClientSecret{} - - err = json.Unmarshal(bytes, &varIdentityProviderClientIDClientSecret) - - if err != nil { - return err - } - - *o = IdentityProviderClientIDClientSecret(varIdentityProviderClientIDClientSecret) - - return err -} - type NullableIdentityProviderClientIDClientSecret struct { value *IdentityProviderClientIDClientSecret isSet bool diff --git a/management/model_identity_provider_common.go b/management/model_identity_provider_common.go index 8ba01d39..2cf6b5b6 100644 --- a/management/model_identity_provider_common.go +++ b/management/model_identity_provider_common.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderCommon type satisfies the MappedNullable interface at compile time @@ -40,8 +39,6 @@ type IdentityProviderCommon struct { UpdatedAt *string `json:"updatedAt,omitempty"` } -type _IdentityProviderCommon IdentityProviderCommon - // NewIdentityProviderCommon instantiates a new IdentityProviderCommon 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 @@ -465,43 +462,6 @@ func (o IdentityProviderCommon) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProviderCommon) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderCommon := _IdentityProviderCommon{} - - err = json.Unmarshal(bytes, &varIdentityProviderCommon) - - if err != nil { - return err - } - - *o = IdentityProviderCommon(varIdentityProviderCommon) - - return err -} - type NullableIdentityProviderCommon struct { value *IdentityProviderCommon isSet bool diff --git a/management/model_identity_provider_facebook.go b/management/model_identity_provider_facebook.go index e200c105..6427090d 100644 --- a/management/model_identity_provider_facebook.go +++ b/management/model_identity_provider_facebook.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderFacebook type satisfies the MappedNullable interface at compile time @@ -44,8 +43,6 @@ type IdentityProviderFacebook struct { AppSecret string `json:"appSecret"` } -type _IdentityProviderFacebook IdentityProviderFacebook - // NewIdentityProviderFacebook instantiates a new IdentityProviderFacebook 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 @@ -521,45 +518,6 @@ func (o IdentityProviderFacebook) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProviderFacebook) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - "appId", - "appSecret", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderFacebook := _IdentityProviderFacebook{} - - err = json.Unmarshal(bytes, &varIdentityProviderFacebook) - - if err != nil { - return err - } - - *o = IdentityProviderFacebook(varIdentityProviderFacebook) - - return err -} - type NullableIdentityProviderFacebook struct { value *IdentityProviderFacebook isSet bool diff --git a/management/model_identity_provider_oidc.go b/management/model_identity_provider_oidc.go index 63b6f29f..ac76dfae 100644 --- a/management/model_identity_provider_oidc.go +++ b/management/model_identity_provider_oidc.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderOIDC type satisfies the MappedNullable interface at compile time @@ -59,8 +58,6 @@ type IdentityProviderOIDC struct { UserInfoEndpoint *string `json:"userInfoEndpoint,omitempty"` } -type _IdentityProviderOIDC IdentityProviderOIDC - // NewIdentityProviderOIDC instantiates a new IdentityProviderOIDC 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 @@ -764,51 +761,6 @@ func (o IdentityProviderOIDC) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProviderOIDC) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - "authorizationEndpoint", - "clientId", - "clientSecret", - "issuer", - "jwksEndpoint", - "scopes", - "tokenEndpoint", - "tokenEndpointAuthMethod", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderOIDC := _IdentityProviderOIDC{} - - err = json.Unmarshal(bytes, &varIdentityProviderOIDC) - - if err != nil { - return err - } - - *o = IdentityProviderOIDC(varIdentityProviderOIDC) - - return err -} - type NullableIdentityProviderOIDC struct { value *IdentityProviderOIDC isSet bool diff --git a/management/model_identity_provider_paypal.go b/management/model_identity_provider_paypal.go index 118c1ea7..30b9165d 100644 --- a/management/model_identity_provider_paypal.go +++ b/management/model_identity_provider_paypal.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderPaypal type satisfies the MappedNullable interface at compile time @@ -46,8 +45,6 @@ type IdentityProviderPaypal struct { ClientEnvironment string `json:"clientEnvironment"` } -type _IdentityProviderPaypal IdentityProviderPaypal - // NewIdentityProviderPaypal instantiates a new IdentityProviderPaypal 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 @@ -549,46 +546,6 @@ func (o IdentityProviderPaypal) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProviderPaypal) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - "clientId", - "clientSecret", - "clientEnvironment", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderPaypal := _IdentityProviderPaypal{} - - err = json.Unmarshal(bytes, &varIdentityProviderPaypal) - - if err != nil { - return err - } - - *o = IdentityProviderPaypal(varIdentityProviderPaypal) - - return err -} - type NullableIdentityProviderPaypal struct { value *IdentityProviderPaypal isSet bool diff --git a/management/model_identity_provider_saml.go b/management/model_identity_provider_saml.go index 651fa34f..04101d1e 100644 --- a/management/model_identity_provider_saml.go +++ b/management/model_identity_provider_saml.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderSAML type satisfies the MappedNullable interface at compile time @@ -58,8 +57,6 @@ type IdentityProviderSAML struct { SloWindow *int32 `json:"sloWindow,omitempty"` } -type _IdentityProviderSAML IdentityProviderSAML - // NewIdentityProviderSAML instantiates a new IdentityProviderSAML 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 @@ -827,48 +824,6 @@ func (o IdentityProviderSAML) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProviderSAML) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - "idpEntityId", - "idpVerification", - "spEntityId", - "ssoBinding", - "ssoEndpoint", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderSAML := _IdentityProviderSAML{} - - err = json.Unmarshal(bytes, &varIdentityProviderSAML) - - if err != nil { - return err - } - - *o = IdentityProviderSAML(varIdentityProviderSAML) - - return err -} - type NullableIdentityProviderSAML struct { value *IdentityProviderSAML isSet bool diff --git a/management/model_identity_provider_saml_all_of_idp_verification.go b/management/model_identity_provider_saml_all_of_idp_verification.go index dfe4368a..f7be20d7 100644 --- a/management/model_identity_provider_saml_all_of_idp_verification.go +++ b/management/model_identity_provider_saml_all_of_idp_verification.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderSAMLAllOfIdpVerification type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type IdentityProviderSAMLAllOfIdpVerification struct { Certificates []IdentityProviderSAMLAllOfIdpVerificationCertificates `json:"certificates"` } -type _IdentityProviderSAMLAllOfIdpVerification IdentityProviderSAMLAllOfIdpVerification - // NewIdentityProviderSAMLAllOfIdpVerification instantiates a new IdentityProviderSAMLAllOfIdpVerification 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 @@ -82,41 +79,6 @@ func (o IdentityProviderSAMLAllOfIdpVerification) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *IdentityProviderSAMLAllOfIdpVerification) UnmarshalJSON(bytes []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{ - "certificates", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderSAMLAllOfIdpVerification := _IdentityProviderSAMLAllOfIdpVerification{} - - err = json.Unmarshal(bytes, &varIdentityProviderSAMLAllOfIdpVerification) - - if err != nil { - return err - } - - *o = IdentityProviderSAMLAllOfIdpVerification(varIdentityProviderSAMLAllOfIdpVerification) - - return err -} - type NullableIdentityProviderSAMLAllOfIdpVerification struct { value *IdentityProviderSAMLAllOfIdpVerification isSet bool diff --git a/management/model_identity_provider_saml_all_of_idp_verification_certificates.go b/management/model_identity_provider_saml_all_of_idp_verification_certificates.go index 288b9a9d..498ac26c 100644 --- a/management/model_identity_provider_saml_all_of_idp_verification_certificates.go +++ b/management/model_identity_provider_saml_all_of_idp_verification_certificates.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderSAMLAllOfIdpVerificationCertificates type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type IdentityProviderSAMLAllOfIdpVerificationCertificates struct { Id string `json:"id"` } -type _IdentityProviderSAMLAllOfIdpVerificationCertificates IdentityProviderSAMLAllOfIdpVerificationCertificates - // NewIdentityProviderSAMLAllOfIdpVerificationCertificates instantiates a new IdentityProviderSAMLAllOfIdpVerificationCertificates 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 @@ -81,41 +78,6 @@ func (o IdentityProviderSAMLAllOfIdpVerificationCertificates) ToMap() (map[strin return toSerialize, nil } -func (o *IdentityProviderSAMLAllOfIdpVerificationCertificates) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderSAMLAllOfIdpVerificationCertificates := _IdentityProviderSAMLAllOfIdpVerificationCertificates{} - - err = json.Unmarshal(bytes, &varIdentityProviderSAMLAllOfIdpVerificationCertificates) - - if err != nil { - return err - } - - *o = IdentityProviderSAMLAllOfIdpVerificationCertificates(varIdentityProviderSAMLAllOfIdpVerificationCertificates) - - return err -} - type NullableIdentityProviderSAMLAllOfIdpVerificationCertificates struct { value *IdentityProviderSAMLAllOfIdpVerificationCertificates isSet bool diff --git a/management/model_identity_provider_saml_all_of_sp_signing.go b/management/model_identity_provider_saml_all_of_sp_signing.go index d89d9ac8..6b2ccae2 100644 --- a/management/model_identity_provider_saml_all_of_sp_signing.go +++ b/management/model_identity_provider_saml_all_of_sp_signing.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderSAMLAllOfSpSigning type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type IdentityProviderSAMLAllOfSpSigning struct { Key IdentityProviderSAMLAllOfSpSigningKey `json:"key"` } -type _IdentityProviderSAMLAllOfSpSigning IdentityProviderSAMLAllOfSpSigning - // NewIdentityProviderSAMLAllOfSpSigning instantiates a new IdentityProviderSAMLAllOfSpSigning 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 @@ -117,41 +114,6 @@ func (o IdentityProviderSAMLAllOfSpSigning) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *IdentityProviderSAMLAllOfSpSigning) UnmarshalJSON(bytes []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{ - "key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderSAMLAllOfSpSigning := _IdentityProviderSAMLAllOfSpSigning{} - - err = json.Unmarshal(bytes, &varIdentityProviderSAMLAllOfSpSigning) - - if err != nil { - return err - } - - *o = IdentityProviderSAMLAllOfSpSigning(varIdentityProviderSAMLAllOfSpSigning) - - return err -} - type NullableIdentityProviderSAMLAllOfSpSigning struct { value *IdentityProviderSAMLAllOfSpSigning isSet bool diff --git a/management/model_identity_provider_saml_all_of_sp_signing_key.go b/management/model_identity_provider_saml_all_of_sp_signing_key.go index d15e0c44..f9f60f66 100644 --- a/management/model_identity_provider_saml_all_of_sp_signing_key.go +++ b/management/model_identity_provider_saml_all_of_sp_signing_key.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the IdentityProviderSAMLAllOfSpSigningKey type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type IdentityProviderSAMLAllOfSpSigningKey struct { Id string `json:"id"` } -type _IdentityProviderSAMLAllOfSpSigningKey IdentityProviderSAMLAllOfSpSigningKey - // NewIdentityProviderSAMLAllOfSpSigningKey instantiates a new IdentityProviderSAMLAllOfSpSigningKey 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 @@ -82,41 +79,6 @@ func (o IdentityProviderSAMLAllOfSpSigningKey) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *IdentityProviderSAMLAllOfSpSigningKey) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varIdentityProviderSAMLAllOfSpSigningKey := _IdentityProviderSAMLAllOfSpSigningKey{} - - err = json.Unmarshal(bytes, &varIdentityProviderSAMLAllOfSpSigningKey) - - if err != nil { - return err - } - - *o = IdentityProviderSAMLAllOfSpSigningKey(varIdentityProviderSAMLAllOfSpSigningKey) - - return err -} - type NullableIdentityProviderSAMLAllOfSpSigningKey struct { value *IdentityProviderSAMLAllOfSpSigningKey isSet bool diff --git a/management/model_key_rotation_policy.go b/management/model_key_rotation_policy.go index 1652b10b..d0fe3300 100644 --- a/management/model_key_rotation_policy.go +++ b/management/model_key_rotation_policy.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the KeyRotationPolicy type satisfies the MappedNullable interface at compile time @@ -46,8 +45,6 @@ type KeyRotationPolicy struct { ValidityPeriod *int32 `json:"validityPeriod,omitempty"` } -type _KeyRotationPolicy KeyRotationPolicy - // NewKeyRotationPolicy instantiates a new KeyRotationPolicy 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 @@ -522,46 +519,6 @@ func (o KeyRotationPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *KeyRotationPolicy) UnmarshalJSON(bytes []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{ - "algorithm", - "dn", - "keyLength", - "name", - "signatureAlgorithm", - "usageType", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varKeyRotationPolicy := _KeyRotationPolicy{} - - err = json.Unmarshal(bytes, &varKeyRotationPolicy) - - if err != nil { - return err - } - - *o = KeyRotationPolicy(varKeyRotationPolicy) - - return err -} - type NullableKeyRotationPolicy struct { value *KeyRotationPolicy isSet bool diff --git a/management/model_language.go b/management/model_language.go index a88bb4dc..a08d102d 100644 --- a/management/model_language.go +++ b/management/model_language.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the Language type satisfies the MappedNullable interface at compile time @@ -41,8 +40,6 @@ type Language struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -type _Language Language - // NewLanguage instantiates a new Language 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 @@ -396,43 +393,6 @@ func (o Language) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Language) UnmarshalJSON(bytes []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{ - "default", - "enabled", - "locale", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varLanguage := _Language{} - - err = json.Unmarshal(bytes, &varLanguage) - - if err != nil { - return err - } - - *o = Language(varLanguage) - - return err -} - type NullableLanguage struct { value *Language isSet bool diff --git a/management/model_language_localization_status.go b/management/model_language_localization_status.go index eaaa8b8c..5f519f7e 100644 --- a/management/model_language_localization_status.go +++ b/management/model_language_localization_status.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the LanguageLocalizationStatus type satisfies the MappedNullable interface at compile time @@ -36,8 +35,6 @@ type LanguageLocalizationStatus struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -type _LanguageLocalizationStatus LanguageLocalizationStatus - // NewLanguageLocalizationStatus instantiates a new LanguageLocalizationStatus 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 @@ -374,41 +371,6 @@ func (o LanguageLocalizationStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *LanguageLocalizationStatus) UnmarshalJSON(bytes []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{ - "service", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varLanguageLocalizationStatus := _LanguageLocalizationStatus{} - - err = json.Unmarshal(bytes, &varLanguageLocalizationStatus) - - if err != nil { - return err - } - - *o = LanguageLocalizationStatus(varLanguageLocalizationStatus) - - return err -} - type NullableLanguageLocalizationStatus struct { value *LanguageLocalizationStatus isSet bool diff --git a/management/model_license.go b/management/model_license.go index 69fb21d4..c7380dfa 100644 --- a/management/model_license.go +++ b/management/model_license.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the License type satisfies the MappedNullable interface at compile time @@ -53,8 +52,6 @@ type License struct { Verify *LicenseVerify `json:"verify,omitempty"` } -type _License License - // NewLicense instantiates a new License 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 @@ -881,41 +878,6 @@ func (o License) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *License) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varLicense := _License{} - - err = json.Unmarshal(bytes, &varLicense) - - if err != nil { - return err - } - - *o = License(varLicense) - - return err -} - type NullableLicense struct { value *License isSet bool diff --git a/management/model_license_name.go b/management/model_license_name.go index aa49b307..f6ebd0bd 100644 --- a/management/model_license_name.go +++ b/management/model_license_name.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the LicenseName type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type LicenseName struct { Name string `json:"name"` } -type _LicenseName LicenseName - // NewLicenseName instantiates a new LicenseName 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 @@ -82,41 +79,6 @@ func (o LicenseName) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *LicenseName) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varLicenseName := _LicenseName{} - - err = json.Unmarshal(bytes, &varLicenseName) - - if err != nil { - return err - } - - *o = LicenseName(varLicenseName) - - return err -} - type NullableLicenseName struct { value *LicenseName isSet bool diff --git a/management/model_notifications_policy.go b/management/model_notifications_policy.go index 9d967e9b..a0122848 100644 --- a/management/model_notifications_policy.go +++ b/management/model_notifications_policy.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the NotificationsPolicy type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type NotificationsPolicy struct { Quotas []NotificationsPolicyQuotasInner `json:"quotas"` } -type _NotificationsPolicy NotificationsPolicy - // NewNotificationsPolicy instantiates a new NotificationsPolicy 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 @@ -335,42 +332,6 @@ func (o NotificationsPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NotificationsPolicy) UnmarshalJSON(bytes []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", - "quotas", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsPolicy := _NotificationsPolicy{} - - err = json.Unmarshal(bytes, &varNotificationsPolicy) - - if err != nil { - return err - } - - *o = NotificationsPolicy(varNotificationsPolicy) - - return err -} - type NullableNotificationsPolicy struct { value *NotificationsPolicy isSet bool diff --git a/management/model_notifications_policy_country_limit.go b/management/model_notifications_policy_country_limit.go index 8a55e41d..4ddc8760 100644 --- a/management/model_notifications_policy_country_limit.go +++ b/management/model_notifications_policy_country_limit.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsPolicyCountryLimit type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type NotificationsPolicyCountryLimit struct { Countries []string `json:"countries"` } -type _NotificationsPolicyCountryLimit NotificationsPolicyCountryLimit - // NewNotificationsPolicyCountryLimit instantiates a new NotificationsPolicyCountryLimit 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 @@ -146,42 +143,6 @@ func (o NotificationsPolicyCountryLimit) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *NotificationsPolicyCountryLimit) UnmarshalJSON(bytes []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{ - "type", - "countries", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsPolicyCountryLimit := _NotificationsPolicyCountryLimit{} - - err = json.Unmarshal(bytes, &varNotificationsPolicyCountryLimit) - - if err != nil { - return err - } - - *o = NotificationsPolicyCountryLimit(varNotificationsPolicyCountryLimit) - - return err -} - type NullableNotificationsPolicyCountryLimit struct { value *NotificationsPolicyCountryLimit isSet bool diff --git a/management/model_notifications_policy_quotas_inner.go b/management/model_notifications_policy_quotas_inner.go index 4f9cfda1..a0cca831 100644 --- a/management/model_notifications_policy_quotas_inner.go +++ b/management/model_notifications_policy_quotas_inner.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsPolicyQuotasInner type satisfies the MappedNullable interface at compile time @@ -31,8 +30,6 @@ type NotificationsPolicyQuotasInner struct { Unclaimed *int32 `json:"unclaimed,omitempty"` } -type _NotificationsPolicyQuotasInner NotificationsPolicyQuotasInner - // NewNotificationsPolicyQuotasInner instantiates a new NotificationsPolicyQuotasInner 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 @@ -220,42 +217,6 @@ func (o NotificationsPolicyQuotasInner) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *NotificationsPolicyQuotasInner) UnmarshalJSON(bytes []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{ - "type", - "deliveryMethods", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsPolicyQuotasInner := _NotificationsPolicyQuotasInner{} - - err = json.Unmarshal(bytes, &varNotificationsPolicyQuotasInner) - - if err != nil { - return err - } - - *o = NotificationsPolicyQuotasInner(varNotificationsPolicyQuotasInner) - - return err -} - type NullableNotificationsPolicyQuotasInner struct { value *NotificationsPolicyQuotasInner isSet bool diff --git a/management/model_notifications_settings_email_delivery_settings_from.go b/management/model_notifications_settings_email_delivery_settings_from.go index b18147d5..16d4ec62 100644 --- a/management/model_notifications_settings_email_delivery_settings_from.go +++ b/management/model_notifications_settings_email_delivery_settings_from.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsSettingsEmailDeliverySettingsFrom type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type NotificationsSettingsEmailDeliverySettingsFrom struct { Address string `json:"address"` } -type _NotificationsSettingsEmailDeliverySettingsFrom NotificationsSettingsEmailDeliverySettingsFrom - // NewNotificationsSettingsEmailDeliverySettingsFrom instantiates a new NotificationsSettingsEmailDeliverySettingsFrom 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 @@ -119,41 +116,6 @@ func (o NotificationsSettingsEmailDeliverySettingsFrom) ToMap() (map[string]inte return toSerialize, nil } -func (o *NotificationsSettingsEmailDeliverySettingsFrom) UnmarshalJSON(bytes []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{ - "address", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsEmailDeliverySettingsFrom := _NotificationsSettingsEmailDeliverySettingsFrom{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsEmailDeliverySettingsFrom) - - if err != nil { - return err - } - - *o = NotificationsSettingsEmailDeliverySettingsFrom(varNotificationsSettingsEmailDeliverySettingsFrom) - - return err -} - type NullableNotificationsSettingsEmailDeliverySettingsFrom struct { value *NotificationsSettingsEmailDeliverySettingsFrom isSet bool diff --git a/management/model_notifications_settings_phone_delivery_settings_common.go b/management/model_notifications_settings_phone_delivery_settings_common.go index 4e543991..7754c79a 100644 --- a/management/model_notifications_settings_phone_delivery_settings_common.go +++ b/management/model_notifications_settings_phone_delivery_settings_common.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the NotificationsSettingsPhoneDeliverySettingsCommon type satisfies the MappedNullable interface at compile time @@ -32,8 +31,6 @@ type NotificationsSettingsPhoneDeliverySettingsCommon struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -type _NotificationsSettingsPhoneDeliverySettingsCommon NotificationsSettingsPhoneDeliverySettingsCommon - // NewNotificationsSettingsPhoneDeliverySettingsCommon instantiates a new NotificationsSettingsPhoneDeliverySettingsCommon 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 @@ -265,41 +262,6 @@ func (o NotificationsSettingsPhoneDeliverySettingsCommon) ToMap() (map[string]in return toSerialize, nil } -func (o *NotificationsSettingsPhoneDeliverySettingsCommon) UnmarshalJSON(bytes []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{ - "provider", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsPhoneDeliverySettingsCommon := _NotificationsSettingsPhoneDeliverySettingsCommon{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsPhoneDeliverySettingsCommon) - - if err != nil { - return err - } - - *o = NotificationsSettingsPhoneDeliverySettingsCommon(varNotificationsSettingsPhoneDeliverySettingsCommon) - - return err -} - type NullableNotificationsSettingsPhoneDeliverySettingsCommon struct { value *NotificationsSettingsPhoneDeliverySettingsCommon isSet bool diff --git a/management/model_notifications_settings_phone_delivery_settings_custom.go b/management/model_notifications_settings_phone_delivery_settings_custom.go index dfd43c9f..b4a1e554 100644 --- a/management/model_notifications_settings_phone_delivery_settings_custom.go +++ b/management/model_notifications_settings_phone_delivery_settings_custom.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the NotificationsSettingsPhoneDeliverySettingsCustom type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type NotificationsSettingsPhoneDeliverySettingsCustom struct { Numbers []NotificationsSettingsPhoneDeliverySettingsCustomNumbers `json:"numbers,omitempty"` } -type _NotificationsSettingsPhoneDeliverySettingsCustom NotificationsSettingsPhoneDeliverySettingsCustom - // NewNotificationsSettingsPhoneDeliverySettingsCustom instantiates a new NotificationsSettingsPhoneDeliverySettingsCustom 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 @@ -383,44 +380,6 @@ func (o NotificationsSettingsPhoneDeliverySettingsCustom) ToMap() (map[string]in return toSerialize, nil } -func (o *NotificationsSettingsPhoneDeliverySettingsCustom) UnmarshalJSON(bytes []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{ - "provider", - "name", - "requests", - "authentication", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsPhoneDeliverySettingsCustom := _NotificationsSettingsPhoneDeliverySettingsCustom{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsPhoneDeliverySettingsCustom) - - if err != nil { - return err - } - - *o = NotificationsSettingsPhoneDeliverySettingsCustom(varNotificationsSettingsPhoneDeliverySettingsCustom) - - return err -} - type NullableNotificationsSettingsPhoneDeliverySettingsCustom struct { value *NotificationsSettingsPhoneDeliverySettingsCustom isSet bool diff --git a/management/model_notifications_settings_phone_delivery_settings_custom_all_of_authentication.go b/management/model_notifications_settings_phone_delivery_settings_custom_all_of_authentication.go index b964e12d..ab16fc8d 100644 --- a/management/model_notifications_settings_phone_delivery_settings_custom_all_of_authentication.go +++ b/management/model_notifications_settings_phone_delivery_settings_custom_all_of_authentication.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication type satisfies the MappedNullable interface at compile time @@ -29,8 +28,6 @@ type NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication struct AuthToken *string `json:"authToken,omitempty"` } -type _NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication - // NewNotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication instantiates a new NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication 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 @@ -192,41 +189,6 @@ func (o NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication) ToM return toSerialize, nil } -func (o *NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication) UnmarshalJSON(bytes []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{ - "method", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication := _NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication) - - if err != nil { - return err - } - - *o = NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication(varNotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication) - - return err -} - type NullableNotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication struct { value *NotificationsSettingsPhoneDeliverySettingsCustomAllOfAuthentication isSet bool diff --git a/management/model_notifications_settings_phone_delivery_settings_custom_numbers.go b/management/model_notifications_settings_phone_delivery_settings_custom_numbers.go index 0d0f1054..4f77aba7 100644 --- a/management/model_notifications_settings_phone_delivery_settings_custom_numbers.go +++ b/management/model_notifications_settings_phone_delivery_settings_custom_numbers.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsSettingsPhoneDeliverySettingsCustomNumbers type satisfies the MappedNullable interface at compile time @@ -33,8 +32,6 @@ type NotificationsSettingsPhoneDeliverySettingsCustomNumbers struct { SupportedCountries []string `json:"supportedCountries,omitempty"` } -type _NotificationsSettingsPhoneDeliverySettingsCustomNumbers NotificationsSettingsPhoneDeliverySettingsCustomNumbers - // NewNotificationsSettingsPhoneDeliverySettingsCustomNumbers instantiates a new NotificationsSettingsPhoneDeliverySettingsCustomNumbers 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 @@ -257,42 +254,6 @@ func (o NotificationsSettingsPhoneDeliverySettingsCustomNumbers) ToMap() (map[st return toSerialize, nil } -func (o *NotificationsSettingsPhoneDeliverySettingsCustomNumbers) UnmarshalJSON(bytes []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{ - "number", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsPhoneDeliverySettingsCustomNumbers := _NotificationsSettingsPhoneDeliverySettingsCustomNumbers{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsPhoneDeliverySettingsCustomNumbers) - - if err != nil { - return err - } - - *o = NotificationsSettingsPhoneDeliverySettingsCustomNumbers(varNotificationsSettingsPhoneDeliverySettingsCustomNumbers) - - return err -} - type NullableNotificationsSettingsPhoneDeliverySettingsCustomNumbers struct { value *NotificationsSettingsPhoneDeliverySettingsCustomNumbers isSet bool diff --git a/management/model_notifications_settings_phone_delivery_settings_custom_request.go b/management/model_notifications_settings_phone_delivery_settings_custom_request.go index eaae0ec5..c648a9f2 100644 --- a/management/model_notifications_settings_phone_delivery_settings_custom_request.go +++ b/management/model_notifications_settings_phone_delivery_settings_custom_request.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsSettingsPhoneDeliverySettingsCustomRequest type satisfies the MappedNullable interface at compile time @@ -35,8 +34,6 @@ type NotificationsSettingsPhoneDeliverySettingsCustomRequest struct { AfterTag *string `json:"afterTag,omitempty"` } -type _NotificationsSettingsPhoneDeliverySettingsCustomRequest NotificationsSettingsPhoneDeliverySettingsCustomRequest - // NewNotificationsSettingsPhoneDeliverySettingsCustomRequest instantiates a new NotificationsSettingsPhoneDeliverySettingsCustomRequest 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 @@ -313,44 +310,6 @@ func (o NotificationsSettingsPhoneDeliverySettingsCustomRequest) ToMap() (map[st return toSerialize, nil } -func (o *NotificationsSettingsPhoneDeliverySettingsCustomRequest) UnmarshalJSON(bytes []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{ - "deliveryMethod", - "url", - "method", - "phoneNumberFormat", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsPhoneDeliverySettingsCustomRequest := _NotificationsSettingsPhoneDeliverySettingsCustomRequest{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsPhoneDeliverySettingsCustomRequest) - - if err != nil { - return err - } - - *o = NotificationsSettingsPhoneDeliverySettingsCustomRequest(varNotificationsSettingsPhoneDeliverySettingsCustomRequest) - - return err -} - type NullableNotificationsSettingsPhoneDeliverySettingsCustomRequest struct { value *NotificationsSettingsPhoneDeliverySettingsCustomRequest isSet bool diff --git a/management/model_notifications_settings_phone_delivery_settings_twilio_syniverse.go b/management/model_notifications_settings_phone_delivery_settings_twilio_syniverse.go index 08500a23..83f6573b 100644 --- a/management/model_notifications_settings_phone_delivery_settings_twilio_syniverse.go +++ b/management/model_notifications_settings_phone_delivery_settings_twilio_syniverse.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse struct { Numbers []NotificationsSettingsPhoneDeliverySettingsCustomNumbers `json:"numbers,omitempty"` } -type _NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse - // NewNotificationsSettingsPhoneDeliverySettingsTwilioSyniverse instantiates a new NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse 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 @@ -357,43 +354,6 @@ func (o NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse) ToMap() (map[ return toSerialize, nil } -func (o *NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse) UnmarshalJSON(bytes []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{ - "provider", - "sid", - "authToken", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsPhoneDeliverySettingsTwilioSyniverse := _NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsPhoneDeliverySettingsTwilioSyniverse) - - if err != nil { - return err - } - - *o = NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse(varNotificationsSettingsPhoneDeliverySettingsTwilioSyniverse) - - return err -} - type NullableNotificationsSettingsPhoneDeliverySettingsTwilioSyniverse struct { value *NotificationsSettingsPhoneDeliverySettingsTwilioSyniverse isSet bool diff --git a/management/model_notifications_settings_restrictions.go b/management/model_notifications_settings_restrictions.go index ba565bd4..9542d744 100644 --- a/management/model_notifications_settings_restrictions.go +++ b/management/model_notifications_settings_restrictions.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsSettingsRestrictions type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type NotificationsSettingsRestrictions struct { SmsVoiceQuota NotificationsSettingsRestrictionsSmsVoiceQuota `json:"smsVoiceQuota"` } -type _NotificationsSettingsRestrictions NotificationsSettingsRestrictions - // NewNotificationsSettingsRestrictions instantiates a new NotificationsSettingsRestrictions 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 @@ -81,41 +78,6 @@ func (o NotificationsSettingsRestrictions) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *NotificationsSettingsRestrictions) UnmarshalJSON(bytes []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{ - "smsVoiceQuota", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsRestrictions := _NotificationsSettingsRestrictions{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsRestrictions) - - if err != nil { - return err - } - - *o = NotificationsSettingsRestrictions(varNotificationsSettingsRestrictions) - - return err -} - type NullableNotificationsSettingsRestrictions struct { value *NotificationsSettingsRestrictions isSet bool diff --git a/management/model_notifications_settings_restrictions_sms_voice_quota.go b/management/model_notifications_settings_restrictions_sms_voice_quota.go index 598a2f5b..eaf61440 100644 --- a/management/model_notifications_settings_restrictions_sms_voice_quota.go +++ b/management/model_notifications_settings_restrictions_sms_voice_quota.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the NotificationsSettingsRestrictionsSmsVoiceQuota type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type NotificationsSettingsRestrictionsSmsVoiceQuota struct { Daily int32 `json:"daily"` } -type _NotificationsSettingsRestrictionsSmsVoiceQuota NotificationsSettingsRestrictionsSmsVoiceQuota - // NewNotificationsSettingsRestrictionsSmsVoiceQuota instantiates a new NotificationsSettingsRestrictionsSmsVoiceQuota 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 @@ -82,41 +79,6 @@ func (o NotificationsSettingsRestrictionsSmsVoiceQuota) ToMap() (map[string]inte return toSerialize, nil } -func (o *NotificationsSettingsRestrictionsSmsVoiceQuota) UnmarshalJSON(bytes []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{ - "daily", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varNotificationsSettingsRestrictionsSmsVoiceQuota := _NotificationsSettingsRestrictionsSmsVoiceQuota{} - - err = json.Unmarshal(bytes, &varNotificationsSettingsRestrictionsSmsVoiceQuota) - - if err != nil { - return err - } - - *o = NotificationsSettingsRestrictionsSmsVoiceQuota(varNotificationsSettingsRestrictionsSmsVoiceQuota) - - return err -} - type NullableNotificationsSettingsRestrictionsSmsVoiceQuota struct { value *NotificationsSettingsRestrictionsSmsVoiceQuota isSet bool diff --git a/management/model_password_policy.go b/management/model_password_policy.go index 1336b55b..558b75bb 100644 --- a/management/model_password_policy.go +++ b/management/model_password_policy.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PasswordPolicy type satisfies the MappedNullable interface at compile time @@ -64,8 +63,6 @@ type PasswordPolicy struct { UpdatedAt *string `json:"updatedAt,omitempty"` } -type _PasswordPolicy PasswordPolicy - // NewPasswordPolicy instantiates a new PasswordPolicy 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 @@ -904,44 +901,6 @@ func (o PasswordPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordPolicy) UnmarshalJSON(bytes []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{ - "excludesCommonlyUsed", - "excludesProfileData", - "name", - "notSimilarToCurrent", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPasswordPolicy := _PasswordPolicy{} - - err = json.Unmarshal(bytes, &varPasswordPolicy) - - if err != nil { - return err - } - - *o = PasswordPolicy(varPasswordPolicy) - - return err -} - type NullablePasswordPolicy struct { value *PasswordPolicy isSet bool diff --git a/management/model_password_policy_min_characters.go b/management/model_password_policy_min_characters.go index 437a6d1f..1f15c380 100644 --- a/management/model_password_policy_min_characters.go +++ b/management/model_password_policy_min_characters.go @@ -26,7 +26,7 @@ type PasswordPolicyMinCharacters struct { // Count of numeric characters (`0123456789`) that should feature in the user's password. Var0123456789 *int32 `json:"0123456789,omitempty"` // Count of special characters (`~!@#$%^&*()-_=+[]{}\\\\|;:,.<>/?`) that should feature in the user's password. - SpecialChar *int32 `json:"~!@#$%^&*()-_=+[]{}|;:,.<>/?,omitempty"` + SpecialChar *int32 `json:"specialchar,omitempty"` } // NewPasswordPolicyMinCharacters instantiates a new PasswordPolicyMinCharacters object diff --git a/management/model_population.go b/management/model_population.go index a4be1430..18053fb0 100644 --- a/management/model_population.go +++ b/management/model_population.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the Population type satisfies the MappedNullable interface at compile time @@ -39,8 +38,6 @@ type Population struct { UserCount *int32 `json:"userCount,omitempty"` } -type _Population Population - // NewPopulation instantiates a new Population 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 @@ -412,41 +409,6 @@ func (o Population) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Population) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPopulation := _Population{} - - err = json.Unmarshal(bytes, &varPopulation) - - if err != nil { - return err - } - - *o = Population(varPopulation) - - return err -} - type NullablePopulation struct { value *Population isSet bool diff --git a/management/model_population_password_policy.go b/management/model_population_password_policy.go index 0620d670..45fcf596 100644 --- a/management/model_population_password_policy.go +++ b/management/model_population_password_policy.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PopulationPasswordPolicy type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type PopulationPasswordPolicy struct { Id string `json:"id"` } -type _PopulationPasswordPolicy PopulationPasswordPolicy - // NewPopulationPasswordPolicy instantiates a new PopulationPasswordPolicy 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 @@ -82,41 +79,6 @@ func (o PopulationPasswordPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PopulationPasswordPolicy) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPopulationPasswordPolicy := _PopulationPasswordPolicy{} - - err = json.Unmarshal(bytes, &varPopulationPasswordPolicy) - - if err != nil { - return err - } - - *o = PopulationPasswordPolicy(varPopulationPasswordPolicy) - - return err -} - type NullablePopulationPasswordPolicy struct { value *PopulationPasswordPolicy isSet bool diff --git a/management/model_propagation_store.go b/management/model_propagation_store.go index 4bbd0a6a..ad56b0e8 100644 --- a/management/model_propagation_store.go +++ b/management/model_propagation_store.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStore type satisfies the MappedNullable interface at compile time @@ -38,8 +37,6 @@ type PropagationStore struct { Type EnumPropagationStoreType `json:"type"` } -type _PropagationStore PropagationStore - // NewPropagationStore instantiates a new PropagationStore 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 @@ -428,43 +425,6 @@ func (o PropagationStore) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PropagationStore) UnmarshalJSON(bytes []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{ - "configuration", - "name", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStore := _PropagationStore{} - - err = json.Unmarshal(bytes, &varPropagationStore) - - if err != nil { - return err - } - - *o = PropagationStore(varPropagationStore) - - return err -} - type NullablePropagationStore struct { value *PropagationStore isSet bool diff --git a/management/model_propagation_store_configuration_aquera.go b/management/model_propagation_store_configuration_aquera.go index 0a8e7f50..01cc00a5 100644 --- a/management/model_propagation_store_configuration_aquera.go +++ b/management/model_propagation_store_configuration_aquera.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationAquera type satisfies the MappedNullable interface at compile time @@ -39,8 +38,6 @@ type PropagationStoreConfigurationAquera struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationAquera PropagationStoreConfigurationAquera - // NewPropagationStoreConfigurationAquera instantiates a new PropagationStoreConfigurationAquera 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 @@ -385,44 +382,6 @@ func (o PropagationStoreConfigurationAquera) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *PropagationStoreConfigurationAquera) UnmarshalJSON(bytes []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{ - "AUTHENTICATION_METHOD", - "BASIC_AUTH_PASSWORD", - "BASIC_AUTH_USER", - "SCIM_URL", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationAquera := _PropagationStoreConfigurationAquera{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationAquera) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationAquera(varPropagationStoreConfigurationAquera) - - return err -} - type NullablePropagationStoreConfigurationAquera struct { value *PropagationStoreConfigurationAquera isSet bool diff --git a/management/model_propagation_store_configuration_azure_adsamlv2.go b/management/model_propagation_store_configuration_azure_adsamlv2.go index 9d69bbc2..434546a7 100644 --- a/management/model_propagation_store_configuration_azure_adsamlv2.go +++ b/management/model_propagation_store_configuration_azure_adsamlv2.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationAzureADSAMLV2 type satisfies the MappedNullable interface at compile time @@ -41,8 +40,6 @@ type PropagationStoreConfigurationAzureADSAMLV2 struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationAzureADSAMLV2 PropagationStoreConfigurationAzureADSAMLV2 - // NewPropagationStoreConfigurationAzureADSAMLV2 instantiates a new PropagationStoreConfigurationAzureADSAMLV2 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 @@ -391,44 +388,6 @@ func (o PropagationStoreConfigurationAzureADSAMLV2) ToMap() (map[string]interfac return toSerialize, nil } -func (o *PropagationStoreConfigurationAzureADSAMLV2) UnmarshalJSON(bytes []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{ - "ClientId", - "ClientSecret", - "RemoveLicensesWhenSkuIdEmpty", - "TenantDomain", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationAzureADSAMLV2 := _PropagationStoreConfigurationAzureADSAMLV2{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationAzureADSAMLV2) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationAzureADSAMLV2(varPropagationStoreConfigurationAzureADSAMLV2) - - return err -} - type NullablePropagationStoreConfigurationAzureADSAMLV2 struct { value *PropagationStoreConfigurationAzureADSAMLV2 isSet bool diff --git a/management/model_propagation_store_configuration_github_emu.go b/management/model_propagation_store_configuration_github_emu.go index d342f321..53bf4a77 100644 --- a/management/model_propagation_store_configuration_github_emu.go +++ b/management/model_propagation_store_configuration_github_emu.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationGithubEMU type satisfies the MappedNullable interface at compile time @@ -33,8 +32,6 @@ type PropagationStoreConfigurationGithubEMU struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationGithubEMU PropagationStoreConfigurationGithubEMU - // NewPropagationStoreConfigurationGithubEMU instantiates a new PropagationStoreConfigurationGithubEMU 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 @@ -257,42 +254,6 @@ func (o PropagationStoreConfigurationGithubEMU) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *PropagationStoreConfigurationGithubEMU) UnmarshalJSON(bytes []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{ - "BASE_URL", - "OAUTH_ACCESS_TOKEN", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationGithubEMU := _PropagationStoreConfigurationGithubEMU{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationGithubEMU) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationGithubEMU(varPropagationStoreConfigurationGithubEMU) - - return err -} - type NullablePropagationStoreConfigurationGithubEMU struct { value *PropagationStoreConfigurationGithubEMU isSet bool diff --git a/management/model_propagation_store_configuration_google_apps.go b/management/model_propagation_store_configuration_google_apps.go index f5643fa5..6703598b 100644 --- a/management/model_propagation_store_configuration_google_apps.go +++ b/management/model_propagation_store_configuration_google_apps.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationGoogleApps type satisfies the MappedNullable interface at compile time @@ -45,8 +44,6 @@ type PropagationStoreConfigurationGoogleApps struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationGoogleApps PropagationStoreConfigurationGoogleApps - // NewPropagationStoreConfigurationGoogleApps instantiates a new PropagationStoreConfigurationGoogleApps 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 @@ -447,46 +444,6 @@ func (o PropagationStoreConfigurationGoogleApps) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *PropagationStoreConfigurationGoogleApps) UnmarshalJSON(bytes []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{ - "APPLICATION_NAME", - "DOMAIN", - "OAUTH_ACCESS_TOKEN", - "OAUTH_CLIENT_ID", - "OAUTH_CLIENT_SECRET", - "OAUTH_REFRESH_TOKEN", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationGoogleApps := _PropagationStoreConfigurationGoogleApps{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationGoogleApps) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationGoogleApps(varPropagationStoreConfigurationGoogleApps) - - return err -} - type NullablePropagationStoreConfigurationGoogleApps struct { value *PropagationStoreConfigurationGoogleApps isSet bool diff --git a/management/model_propagation_store_configuration_ldap_gateway.go b/management/model_propagation_store_configuration_ldap_gateway.go index bfc75de0..fe026b72 100644 --- a/management/model_propagation_store_configuration_ldap_gateway.go +++ b/management/model_propagation_store_configuration_ldap_gateway.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationLDAPGateway type satisfies the MappedNullable interface at compile time @@ -43,8 +42,6 @@ type PropagationStoreConfigurationLDAPGateway struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationLDAPGateway PropagationStoreConfigurationLDAPGateway - // NewPropagationStoreConfigurationLDAPGateway instantiates a new PropagationStoreConfigurationLDAPGateway 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 @@ -397,47 +394,6 @@ func (o PropagationStoreConfigurationLDAPGateway) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *PropagationStoreConfigurationLDAPGateway) UnmarshalJSON(bytes []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{ - "CLIENT_ID", - "CLIENT_SECRET", - "ENVIRONMENT_ID", - "GATEWAY_BASE_URL", - "GATEWAY_ID", - "LDAP_TYPE", - "OAUTH_URL", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationLDAPGateway := _PropagationStoreConfigurationLDAPGateway{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationLDAPGateway) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationLDAPGateway(varPropagationStoreConfigurationLDAPGateway) - - return err -} - type NullablePropagationStoreConfigurationLDAPGateway struct { value *PropagationStoreConfigurationLDAPGateway isSet bool diff --git a/management/model_propagation_store_configuration_ping_one.go b/management/model_propagation_store_configuration_ping_one.go index 846c3242..60c29f31 100644 --- a/management/model_propagation_store_configuration_ping_one.go +++ b/management/model_propagation_store_configuration_ping_one.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationPingOne type satisfies the MappedNullable interface at compile time @@ -41,8 +40,6 @@ type PropagationStoreConfigurationPingOne struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationPingOne PropagationStoreConfigurationPingOne - // NewPropagationStoreConfigurationPingOne instantiates a new PropagationStoreConfigurationPingOne 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 @@ -440,42 +437,6 @@ func (o PropagationStoreConfigurationPingOne) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *PropagationStoreConfigurationPingOne) UnmarshalJSON(bytes []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{ - "ENVIRONMENT_ID", - "REGION", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationPingOne := _PropagationStoreConfigurationPingOne{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationPingOne) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationPingOne(varPropagationStoreConfigurationPingOne) - - return err -} - type NullablePropagationStoreConfigurationPingOne struct { value *PropagationStoreConfigurationPingOne isSet bool diff --git a/management/model_propagation_store_configuration_salesforce.go b/management/model_propagation_store_configuration_salesforce.go index 0b94e80d..a69c6a28 100644 --- a/management/model_propagation_store_configuration_salesforce.go +++ b/management/model_propagation_store_configuration_salesforce.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationSalesforce type satisfies the MappedNullable interface at compile time @@ -50,8 +49,6 @@ type PropagationStoreConfigurationSalesforce struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationSalesforce PropagationStoreConfigurationSalesforce - // NewPropagationStoreConfigurationSalesforce instantiates a new PropagationStoreConfigurationSalesforce 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 @@ -500,48 +497,6 @@ func (o PropagationStoreConfigurationSalesforce) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *PropagationStoreConfigurationSalesforce) UnmarshalJSON(bytes []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{ - "CLIENT_ID", - "CLIENT_SECRET", - "ENABLE_COMMUNITIES", - "FREEZE_USER_FLAG", - "OAUTH_ACCESS_TOKEN", - "OAUTH_REFRESH_TOKEN", - "PERMISSION_SET_MANAGEMENT", - "SALESFORCE_DOMAIN", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationSalesforce := _PropagationStoreConfigurationSalesforce{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationSalesforce) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationSalesforce(varPropagationStoreConfigurationSalesforce) - - return err -} - type NullablePropagationStoreConfigurationSalesforce struct { value *PropagationStoreConfigurationSalesforce isSet bool diff --git a/management/model_propagation_store_configuration_salesforce_contacts.go b/management/model_propagation_store_configuration_salesforce_contacts.go index ed4aaf48..aee81e9d 100644 --- a/management/model_propagation_store_configuration_salesforce_contacts.go +++ b/management/model_propagation_store_configuration_salesforce_contacts.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationSalesforceContacts type satisfies the MappedNullable interface at compile time @@ -51,8 +50,6 @@ type PropagationStoreConfigurationSalesforceContacts struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationSalesforceContacts PropagationStoreConfigurationSalesforceContacts - // NewPropagationStoreConfigurationSalesforceContacts instantiates a new PropagationStoreConfigurationSalesforceContacts 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 @@ -554,46 +551,6 @@ func (o PropagationStoreConfigurationSalesforceContacts) ToMap() (map[string]int return toSerialize, nil } -func (o *PropagationStoreConfigurationSalesforceContacts) UnmarshalJSON(bytes []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{ - "CLIENT_ID", - "CLIENT_SECRET", - "OAUTH_ACCESS_TOKEN", - "OAUTH_REFRESH_TOKEN", - "RECORD_TYPE", - "SALESFORCE_DOMAIN", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationSalesforceContacts := _PropagationStoreConfigurationSalesforceContacts{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationSalesforceContacts) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationSalesforceContacts(varPropagationStoreConfigurationSalesforceContacts) - - return err -} - type NullablePropagationStoreConfigurationSalesforceContacts struct { value *PropagationStoreConfigurationSalesforceContacts isSet bool diff --git a/management/model_propagation_store_configuration_scim.go b/management/model_propagation_store_configuration_scim.go index 6ea90f7b..0451231e 100644 --- a/management/model_propagation_store_configuration_scim.go +++ b/management/model_propagation_store_configuration_scim.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationSCIM type satisfies the MappedNullable interface at compile time @@ -56,8 +55,6 @@ type PropagationStoreConfigurationSCIM struct { USERS_RESOURCE string `json:"USERS_RESOURCE"` } -type _PropagationStoreConfigurationSCIM PropagationStoreConfigurationSCIM - // NewPropagationStoreConfigurationSCIM instantiates a new PropagationStoreConfigurationSCIM 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 @@ -690,47 +687,6 @@ func (o PropagationStoreConfigurationSCIM) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *PropagationStoreConfigurationSCIM) UnmarshalJSON(bytes []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{ - "AUTHENTICATION_METHOD", - "AUTHORIZATION_TYPE", - "SCIM_URL", - "SCIM_VERSION", - "UNIQUE_USER_IDENTIFIER", - "USER_FILTER", - "USERS_RESOURCE", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationSCIM := _PropagationStoreConfigurationSCIM{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationSCIM) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationSCIM(varPropagationStoreConfigurationSCIM) - - return err -} - type NullablePropagationStoreConfigurationSCIM struct { value *PropagationStoreConfigurationSCIM isSet bool diff --git a/management/model_propagation_store_configuration_service_now.go b/management/model_propagation_store_configuration_service_now.go index 6f472b44..f1a050f4 100644 --- a/management/model_propagation_store_configuration_service_now.go +++ b/management/model_propagation_store_configuration_service_now.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationServiceNow type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type PropagationStoreConfigurationServiceNow struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationServiceNow PropagationStoreConfigurationServiceNow - // NewPropagationStoreConfigurationServiceNow instantiates a new PropagationStoreConfigurationServiceNow 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 @@ -322,43 +319,6 @@ func (o PropagationStoreConfigurationServiceNow) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *PropagationStoreConfigurationServiceNow) UnmarshalJSON(bytes []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{ - "Administrator_Password", - "Administrator_Username", - "ServiceNow_Url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationServiceNow := _PropagationStoreConfigurationServiceNow{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationServiceNow) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationServiceNow(varPropagationStoreConfigurationServiceNow) - - return err -} - type NullablePropagationStoreConfigurationServiceNow struct { value *PropagationStoreConfigurationServiceNow isSet bool diff --git a/management/model_propagation_store_configuration_slack.go b/management/model_propagation_store_configuration_slack.go index 6cff44c9..27f815ab 100644 --- a/management/model_propagation_store_configuration_slack.go +++ b/management/model_propagation_store_configuration_slack.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationSlack type satisfies the MappedNullable interface at compile time @@ -34,8 +33,6 @@ type PropagationStoreConfigurationSlack struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationSlack PropagationStoreConfigurationSlack - // NewPropagationStoreConfigurationSlack instantiates a new PropagationStoreConfigurationSlack 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 @@ -293,42 +290,6 @@ func (o PropagationStoreConfigurationSlack) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *PropagationStoreConfigurationSlack) UnmarshalJSON(bytes []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{ - "OAUTH_ACCESS_TOKEN", - "UNIQUE_USER_IDENTIFIER", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationSlack := _PropagationStoreConfigurationSlack{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationSlack) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationSlack(varPropagationStoreConfigurationSlack) - - return err -} - type NullablePropagationStoreConfigurationSlack struct { value *PropagationStoreConfigurationSlack isSet bool diff --git a/management/model_propagation_store_configuration_workday.go b/management/model_propagation_store_configuration_workday.go index 3d67c863..c052decc 100644 --- a/management/model_propagation_store_configuration_workday.go +++ b/management/model_propagation_store_configuration_workday.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationWorkday type satisfies the MappedNullable interface at compile time @@ -36,8 +35,6 @@ type PropagationStoreConfigurationWorkday struct { Username string `json:"username"` } -type _PropagationStoreConfigurationWorkday PropagationStoreConfigurationWorkday - // NewPropagationStoreConfigurationWorkday instantiates a new PropagationStoreConfigurationWorkday 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 @@ -286,43 +283,6 @@ func (o PropagationStoreConfigurationWorkday) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *PropagationStoreConfigurationWorkday) UnmarshalJSON(bytes []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{ - "password", - "tenantId", - "username", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationWorkday := _PropagationStoreConfigurationWorkday{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationWorkday) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationWorkday(varPropagationStoreConfigurationWorkday) - - return err -} - type NullablePropagationStoreConfigurationWorkday struct { value *PropagationStoreConfigurationWorkday isSet bool diff --git a/management/model_propagation_store_configuration_zoom.go b/management/model_propagation_store_configuration_zoom.go index 1a462566..03ddfd5f 100644 --- a/management/model_propagation_store_configuration_zoom.go +++ b/management/model_propagation_store_configuration_zoom.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the PropagationStoreConfigurationZoom type satisfies the MappedNullable interface at compile time @@ -46,8 +45,6 @@ type PropagationStoreConfigurationZoom struct { UPDATE_USERS *bool `json:"UPDATE_USERS,omitempty"` } -type _PropagationStoreConfigurationZoom PropagationStoreConfigurationZoom - // NewPropagationStoreConfigurationZoom instantiates a new PropagationStoreConfigurationZoom 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 @@ -528,41 +525,6 @@ func (o PropagationStoreConfigurationZoom) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *PropagationStoreConfigurationZoom) UnmarshalJSON(bytes []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{ - "SCIM_URL", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varPropagationStoreConfigurationZoom := _PropagationStoreConfigurationZoom{} - - err = json.Unmarshal(bytes, &varPropagationStoreConfigurationZoom) - - if err != nil { - return err - } - - *o = PropagationStoreConfigurationZoom(varPropagationStoreConfigurationZoom) - - return err -} - type NullablePropagationStoreConfigurationZoom struct { value *PropagationStoreConfigurationZoom isSet bool diff --git a/management/model_recaptcha_configuration.go b/management/model_recaptcha_configuration.go index dccd603c..a66ecc30 100644 --- a/management/model_recaptcha_configuration.go +++ b/management/model_recaptcha_configuration.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the RecaptchaConfiguration type satisfies the MappedNullable interface at compile time @@ -32,8 +31,6 @@ type RecaptchaConfiguration struct { SecretKey string `json:"secretKey"` } -type _RecaptchaConfiguration RecaptchaConfiguration - // NewRecaptchaConfiguration instantiates a new RecaptchaConfiguration 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 @@ -221,42 +218,6 @@ func (o RecaptchaConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RecaptchaConfiguration) UnmarshalJSON(bytes []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{ - "siteKey", - "secretKey", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varRecaptchaConfiguration := _RecaptchaConfiguration{} - - err = json.Unmarshal(bytes, &varRecaptchaConfiguration) - - if err != nil { - return err - } - - *o = RecaptchaConfiguration(varRecaptchaConfiguration) - - return err -} - type NullableRecaptchaConfiguration struct { value *RecaptchaConfiguration isSet bool diff --git a/management/model_resource.go b/management/model_resource.go index 4b1ef880..d45ee2ad 100644 --- a/management/model_resource.go +++ b/management/model_resource.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the Resource type satisfies the MappedNullable interface at compile time @@ -42,8 +41,6 @@ type Resource struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -type _Resource Resource - // NewResource instantiates a new Resource 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 @@ -485,41 +482,6 @@ func (o Resource) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Resource) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varResource := _Resource{} - - err = json.Unmarshal(bytes, &varResource) - - if err != nil { - return err - } - - *o = Resource(varResource) - - return err -} - type NullableResource struct { value *Resource isSet bool diff --git a/management/model_resource_attribute.go b/management/model_resource_attribute.go index 804a2947..4f04b83c 100644 --- a/management/model_resource_attribute.go +++ b/management/model_resource_attribute.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the ResourceAttribute type satisfies the MappedNullable interface at compile time @@ -36,8 +35,6 @@ type ResourceAttribute struct { UserInfo *bool `json:"userInfo,omitempty"` } -type _ResourceAttribute ResourceAttribute - // NewResourceAttribute instantiates a new ResourceAttribute 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 @@ -365,42 +362,6 @@ func (o ResourceAttribute) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ResourceAttribute) UnmarshalJSON(bytes []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", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varResourceAttribute := _ResourceAttribute{} - - err = json.Unmarshal(bytes, &varResourceAttribute) - - if err != nil { - return err - } - - *o = ResourceAttribute(varResourceAttribute) - - return err -} - type NullableResourceAttribute struct { value *ResourceAttribute isSet bool diff --git a/management/model_resource_scope.go b/management/model_resource_scope.go index 2362f10b..83249d7f 100644 --- a/management/model_resource_scope.go +++ b/management/model_resource_scope.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the ResourceScope type satisfies the MappedNullable interface at compile time @@ -40,8 +39,6 @@ type ResourceScope struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -type _ResourceScope ResourceScope - // NewResourceScope instantiates a new ResourceScope 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 @@ -413,41 +410,6 @@ func (o ResourceScope) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ResourceScope) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varResourceScope := _ResourceScope{} - - err = json.Unmarshal(bytes, &varResourceScope) - - if err != nil { - return err - } - - *o = ResourceScope(varResourceScope) - - return err -} - type NullableResourceScope struct { value *ResourceScope isSet bool diff --git a/management/model_role_assignment.go b/management/model_role_assignment.go index 831ffaf2..7611caa7 100644 --- a/management/model_role_assignment.go +++ b/management/model_role_assignment.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the RoleAssignment type satisfies the MappedNullable interface at compile time @@ -32,8 +31,6 @@ type RoleAssignment struct { Scope RoleAssignmentScope `json:"scope"` } -type _RoleAssignment RoleAssignment - // NewRoleAssignment instantiates a new RoleAssignment 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 @@ -326,42 +323,6 @@ func (o RoleAssignment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleAssignment) UnmarshalJSON(bytes []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{ - "role", - "scope", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varRoleAssignment := _RoleAssignment{} - - err = json.Unmarshal(bytes, &varRoleAssignment) - - if err != nil { - return err - } - - *o = RoleAssignment(varRoleAssignment) - - return err -} - type NullableRoleAssignment struct { value *RoleAssignment isSet bool diff --git a/management/model_role_assignment_role.go b/management/model_role_assignment_role.go index 2bd7da7d..a624afde 100644 --- a/management/model_role_assignment_role.go +++ b/management/model_role_assignment_role.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the RoleAssignmentRole type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type RoleAssignmentRole struct { Id string `json:"id"` } -type _RoleAssignmentRole RoleAssignmentRole - // NewRoleAssignmentRole instantiates a new RoleAssignmentRole 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 @@ -82,41 +79,6 @@ func (o RoleAssignmentRole) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleAssignmentRole) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varRoleAssignmentRole := _RoleAssignmentRole{} - - err = json.Unmarshal(bytes, &varRoleAssignmentRole) - - if err != nil { - return err - } - - *o = RoleAssignmentRole(varRoleAssignmentRole) - - return err -} - type NullableRoleAssignmentRole struct { value *RoleAssignmentRole isSet bool diff --git a/management/model_role_assignment_scope.go b/management/model_role_assignment_scope.go index d18667d6..45244d5e 100644 --- a/management/model_role_assignment_scope.go +++ b/management/model_role_assignment_scope.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the RoleAssignmentScope type satisfies the MappedNullable interface at compile time @@ -25,8 +24,6 @@ type RoleAssignmentScope struct { Type EnumRoleAssignmentScopeType `json:"type"` } -type _RoleAssignmentScope RoleAssignmentScope - // NewRoleAssignmentScope instantiates a new RoleAssignmentScope 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 @@ -109,42 +106,6 @@ func (o RoleAssignmentScope) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleAssignmentScope) UnmarshalJSON(bytes []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{ - "id", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varRoleAssignmentScope := _RoleAssignmentScope{} - - err = json.Unmarshal(bytes, &varRoleAssignmentScope) - - if err != nil { - return err - } - - *o = RoleAssignmentScope(varRoleAssignmentScope) - - return err -} - type NullableRoleAssignmentScope struct { value *RoleAssignmentScope isSet bool diff --git a/management/model_schema_attribute.go b/management/model_schema_attribute.go index 48262d63..d7eaa922 100644 --- a/management/model_schema_attribute.go +++ b/management/model_schema_attribute.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SchemaAttribute type satisfies the MappedNullable interface at compile time @@ -49,8 +48,6 @@ type SchemaAttribute struct { RegexValidation *SchemaAttributeRegexValidation `json:"regexValidation,omitempty"` } -type _SchemaAttribute SchemaAttribute - // NewSchemaAttribute instantiates a new SchemaAttribute 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 @@ -651,43 +648,6 @@ func (o SchemaAttribute) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SchemaAttribute) UnmarshalJSON(bytes []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{ - "enabled", - "name", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSchemaAttribute := _SchemaAttribute{} - - err = json.Unmarshal(bytes, &varSchemaAttribute) - - if err != nil { - return err - } - - *o = SchemaAttribute(varSchemaAttribute) - - return err -} - type NullableSchemaAttribute struct { value *SchemaAttribute isSet bool diff --git a/management/model_schema_attribute_enumerated_values_inner.go b/management/model_schema_attribute_enumerated_values_inner.go index 8af0ca81..13249118 100644 --- a/management/model_schema_attribute_enumerated_values_inner.go +++ b/management/model_schema_attribute_enumerated_values_inner.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SchemaAttributeEnumeratedValuesInner type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type SchemaAttributeEnumeratedValuesInner struct { Description *string `json:"description,omitempty"` } -type _SchemaAttributeEnumeratedValuesInner SchemaAttributeEnumeratedValuesInner - // NewSchemaAttributeEnumeratedValuesInner instantiates a new SchemaAttributeEnumeratedValuesInner 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 @@ -156,41 +153,6 @@ func (o SchemaAttributeEnumeratedValuesInner) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *SchemaAttributeEnumeratedValuesInner) UnmarshalJSON(bytes []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{ - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSchemaAttributeEnumeratedValuesInner := _SchemaAttributeEnumeratedValuesInner{} - - err = json.Unmarshal(bytes, &varSchemaAttributeEnumeratedValuesInner) - - if err != nil { - return err - } - - *o = SchemaAttributeEnumeratedValuesInner(varSchemaAttributeEnumeratedValuesInner) - - return err -} - type NullableSchemaAttributeEnumeratedValuesInner struct { value *SchemaAttributeEnumeratedValuesInner isSet bool diff --git a/management/model_schema_attribute_regex_validation.go b/management/model_schema_attribute_regex_validation.go index 7759a5a4..65bc1db6 100644 --- a/management/model_schema_attribute_regex_validation.go +++ b/management/model_schema_attribute_regex_validation.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SchemaAttributeRegexValidation type satisfies the MappedNullable interface at compile time @@ -30,8 +29,6 @@ type SchemaAttributeRegexValidation struct { ValuesPatternShouldNotMatch []string `json:"valuesPatternShouldNotMatch,omitempty"` } -type _SchemaAttributeRegexValidation SchemaAttributeRegexValidation - // NewSchemaAttributeRegexValidation instantiates a new SchemaAttributeRegexValidation 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 @@ -184,42 +181,6 @@ func (o SchemaAttributeRegexValidation) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *SchemaAttributeRegexValidation) UnmarshalJSON(bytes []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{ - "pattern", - "requirements", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSchemaAttributeRegexValidation := _SchemaAttributeRegexValidation{} - - err = json.Unmarshal(bytes, &varSchemaAttributeRegexValidation) - - if err != nil { - return err - } - - *o = SchemaAttributeRegexValidation(varSchemaAttributeRegexValidation) - - return err -} - type NullableSchemaAttributeRegexValidation struct { value *SchemaAttributeRegexValidation isSet bool diff --git a/management/model_sign_on_policy.go b/management/model_sign_on_policy.go index 192668a8..d52c2887 100644 --- a/management/model_sign_on_policy.go +++ b/management/model_sign_on_policy.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicy type satisfies the MappedNullable interface at compile time @@ -36,8 +35,6 @@ type SignOnPolicy struct { UpdatedAt *string `json:"updatedAt,omitempty"` } -type _SignOnPolicy SignOnPolicy - // NewSignOnPolicy instantiates a new SignOnPolicy 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 @@ -343,41 +340,6 @@ func (o SignOnPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicy) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicy := _SignOnPolicy{} - - err = json.Unmarshal(bytes, &varSignOnPolicy) - - if err != nil { - return err - } - - *o = SignOnPolicy(varSignOnPolicy) - - return err -} - type NullableSignOnPolicy struct { value *SignOnPolicy isSet bool diff --git a/management/model_sign_on_policy_action_agreement.go b/management/model_sign_on_policy_action_agreement.go index e83b5c20..4b336c27 100644 --- a/management/model_sign_on_policy_action_agreement.go +++ b/management/model_sign_on_policy_action_agreement.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionAgreement type satisfies the MappedNullable interface at compile time @@ -34,8 +33,6 @@ type SignOnPolicyActionAgreement struct { DisableDeclineOption *bool `json:"disableDeclineOption,omitempty"` } -type _SignOnPolicyActionAgreement SignOnPolicyActionAgreement - // NewSignOnPolicyActionAgreement instantiates a new SignOnPolicyActionAgreement 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 @@ -354,43 +351,6 @@ func (o SignOnPolicyActionAgreement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicyActionAgreement) UnmarshalJSON(bytes []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{ - "priority", - "type", - "agreement", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionAgreement := _SignOnPolicyActionAgreement{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionAgreement) - - if err != nil { - return err - } - - *o = SignOnPolicyActionAgreement(varSignOnPolicyActionAgreement) - - return err -} - type NullableSignOnPolicyActionAgreement struct { value *SignOnPolicyActionAgreement isSet bool diff --git a/management/model_sign_on_policy_action_agreement_all_of_agreement.go b/management/model_sign_on_policy_action_agreement_all_of_agreement.go index bf4bf558..e8d6a030 100644 --- a/management/model_sign_on_policy_action_agreement_all_of_agreement.go +++ b/management/model_sign_on_policy_action_agreement_all_of_agreement.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionAgreementAllOfAgreement type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionAgreementAllOfAgreement struct { Id string `json:"id"` } -type _SignOnPolicyActionAgreementAllOfAgreement SignOnPolicyActionAgreementAllOfAgreement - // NewSignOnPolicyActionAgreementAllOfAgreement instantiates a new SignOnPolicyActionAgreementAllOfAgreement 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionAgreementAllOfAgreement) ToMap() (map[string]interface return toSerialize, nil } -func (o *SignOnPolicyActionAgreementAllOfAgreement) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionAgreementAllOfAgreement := _SignOnPolicyActionAgreementAllOfAgreement{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionAgreementAllOfAgreement) - - if err != nil { - return err - } - - *o = SignOnPolicyActionAgreementAllOfAgreement(varSignOnPolicyActionAgreementAllOfAgreement) - - return err -} - type NullableSignOnPolicyActionAgreementAllOfAgreement struct { value *SignOnPolicyActionAgreementAllOfAgreement isSet bool diff --git a/management/model_sign_on_policy_action_common.go b/management/model_sign_on_policy_action_common.go index d29ee6f0..08109cfe 100644 --- a/management/model_sign_on_policy_action_common.go +++ b/management/model_sign_on_policy_action_common.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommon type satisfies the MappedNullable interface at compile time @@ -31,8 +30,6 @@ type SignOnPolicyActionCommon struct { Type EnumSignOnPolicyType `json:"type"` } -type _SignOnPolicyActionCommon SignOnPolicyActionCommon - // NewSignOnPolicyActionCommon instantiates a new SignOnPolicyActionCommon 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 @@ -290,42 +287,6 @@ func (o SignOnPolicyActionCommon) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicyActionCommon) UnmarshalJSON(bytes []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{ - "priority", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommon := _SignOnPolicyActionCommon{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommon) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommon(varSignOnPolicyActionCommon) - - return err -} - type NullableSignOnPolicyActionCommon struct { value *SignOnPolicyActionCommon isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_anonymous_network.go b/management/model_sign_on_policy_action_common_condition_anonymous_network.go index 0ef0ba78..3c38659e 100644 --- a/management/model_sign_on_policy_action_common_condition_anonymous_network.go +++ b/management/model_sign_on_policy_action_common_condition_anonymous_network.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionAnonymousNetwork type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonConditionAnonymousNetwork struct { Valid string `json:"valid"` } -type _SignOnPolicyActionCommonConditionAnonymousNetwork SignOnPolicyActionCommonConditionAnonymousNetwork - // NewSignOnPolicyActionCommonConditionAnonymousNetwork instantiates a new SignOnPolicyActionCommonConditionAnonymousNetwork 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionCommonConditionAnonymousNetwork) ToMap() (map[string]i return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionAnonymousNetwork) UnmarshalJSON(bytes []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{ - "anonymousNetwork", - "valid", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionAnonymousNetwork := _SignOnPolicyActionCommonConditionAnonymousNetwork{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionAnonymousNetwork) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionAnonymousNetwork(varSignOnPolicyActionCommonConditionAnonymousNetwork) - - return err -} - type NullableSignOnPolicyActionCommonConditionAnonymousNetwork struct { value *SignOnPolicyActionCommonConditionAnonymousNetwork isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_equals.go b/management/model_sign_on_policy_action_common_condition_equals.go index 62c982ab..5e0bd45f 100644 --- a/management/model_sign_on_policy_action_common_condition_equals.go +++ b/management/model_sign_on_policy_action_common_condition_equals.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionEquals type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonConditionEquals struct { Equals SignOnPolicyActionCommonConditionEqualsEquals `json:"equals"` } -type _SignOnPolicyActionCommonConditionEquals SignOnPolicyActionCommonConditionEquals - // NewSignOnPolicyActionCommonConditionEquals instantiates a new SignOnPolicyActionCommonConditionEquals 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionCommonConditionEquals) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionEquals) UnmarshalJSON(bytes []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{ - "value", - "equals", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionEquals := _SignOnPolicyActionCommonConditionEquals{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionEquals) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionEquals(varSignOnPolicyActionCommonConditionEquals) - - return err -} - type NullableSignOnPolicyActionCommonConditionEquals struct { value *SignOnPolicyActionCommonConditionEquals isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_geovelocity.go b/management/model_sign_on_policy_action_common_condition_geovelocity.go index 26aa6d4e..50005a01 100644 --- a/management/model_sign_on_policy_action_common_condition_geovelocity.go +++ b/management/model_sign_on_policy_action_common_condition_geovelocity.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionGeovelocity type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonConditionGeovelocity struct { Valid SignOnPolicyActionCommonConditionGeovelocityValid `json:"valid"` } -type _SignOnPolicyActionCommonConditionGeovelocity SignOnPolicyActionCommonConditionGeovelocity - // NewSignOnPolicyActionCommonConditionGeovelocity instantiates a new SignOnPolicyActionCommonConditionGeovelocity 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionCommonConditionGeovelocity) ToMap() (map[string]interf return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionGeovelocity) UnmarshalJSON(bytes []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{ - "geoVelocity", - "valid", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionGeovelocity := _SignOnPolicyActionCommonConditionGeovelocity{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionGeovelocity) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionGeovelocity(varSignOnPolicyActionCommonConditionGeovelocity) - - return err -} - type NullableSignOnPolicyActionCommonConditionGeovelocity struct { value *SignOnPolicyActionCommonConditionGeovelocity isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_geovelocity_valid.go b/management/model_sign_on_policy_action_common_condition_geovelocity_valid.go index 866400e6..9d0b7ff5 100644 --- a/management/model_sign_on_policy_action_common_condition_geovelocity_valid.go +++ b/management/model_sign_on_policy_action_common_condition_geovelocity_valid.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionGeovelocityValid type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonConditionGeovelocityValid struct { PreviousSuccessfulAuthenticationTime string `json:"previousSuccessfulAuthenticationTime"` } -type _SignOnPolicyActionCommonConditionGeovelocityValid SignOnPolicyActionCommonConditionGeovelocityValid - // NewSignOnPolicyActionCommonConditionGeovelocityValid instantiates a new SignOnPolicyActionCommonConditionGeovelocityValid 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionCommonConditionGeovelocityValid) ToMap() (map[string]i return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionGeovelocityValid) UnmarshalJSON(bytes []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{ - "previousSuccessfulAuthenticationIp", - "previousSuccessfulAuthenticationTime", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionGeovelocityValid := _SignOnPolicyActionCommonConditionGeovelocityValid{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionGeovelocityValid) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionGeovelocityValid(varSignOnPolicyActionCommonConditionGeovelocityValid) - - return err -} - type NullableSignOnPolicyActionCommonConditionGeovelocityValid struct { value *SignOnPolicyActionCommonConditionGeovelocityValid isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_greater.go b/management/model_sign_on_policy_action_common_condition_greater.go index 0fcbd6f3..3ee3282f 100644 --- a/management/model_sign_on_policy_action_common_condition_greater.go +++ b/management/model_sign_on_policy_action_common_condition_greater.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionGreater type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type SignOnPolicyActionCommonConditionGreater struct { SecondsSince string `json:"secondsSince"` } -type _SignOnPolicyActionCommonConditionGreater SignOnPolicyActionCommonConditionGreater - // NewSignOnPolicyActionCommonConditionGreater instantiates a new SignOnPolicyActionCommonConditionGreater 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 @@ -110,42 +107,6 @@ func (o SignOnPolicyActionCommonConditionGreater) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionGreater) UnmarshalJSON(bytes []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{ - "greater", - "secondsSince", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionGreater := _SignOnPolicyActionCommonConditionGreater{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionGreater) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionGreater(varSignOnPolicyActionCommonConditionGreater) - - return err -} - type NullableSignOnPolicyActionCommonConditionGreater struct { value *SignOnPolicyActionCommonConditionGreater isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_ip_range.go b/management/model_sign_on_policy_action_common_condition_ip_range.go index 67ef8a31..1ba09360 100644 --- a/management/model_sign_on_policy_action_common_condition_ip_range.go +++ b/management/model_sign_on_policy_action_common_condition_ip_range.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionIPRange type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonConditionIPRange struct { IpRange []string `json:"ipRange"` } -type _SignOnPolicyActionCommonConditionIPRange SignOnPolicyActionCommonConditionIPRange - // NewSignOnPolicyActionCommonConditionIPRange instantiates a new SignOnPolicyActionCommonConditionIPRange 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionCommonConditionIPRange) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionIPRange) UnmarshalJSON(bytes []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{ - "contains", - "ipRange", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionIPRange := _SignOnPolicyActionCommonConditionIPRange{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionIPRange) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionIPRange(varSignOnPolicyActionCommonConditionIPRange) - - return err -} - type NullableSignOnPolicyActionCommonConditionIPRange struct { value *SignOnPolicyActionCommonConditionIPRange isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_ip_risk.go b/management/model_sign_on_policy_action_common_condition_ip_risk.go index 5c201edb..2be50806 100644 --- a/management/model_sign_on_policy_action_common_condition_ip_risk.go +++ b/management/model_sign_on_policy_action_common_condition_ip_risk.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionIPRisk type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonConditionIPRisk struct { Valid string `json:"valid"` } -type _SignOnPolicyActionCommonConditionIPRisk SignOnPolicyActionCommonConditionIPRisk - // NewSignOnPolicyActionCommonConditionIPRisk instantiates a new SignOnPolicyActionCommonConditionIPRisk 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionCommonConditionIPRisk) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionIPRisk) UnmarshalJSON(bytes []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{ - "ipRisk", - "valid", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionIPRisk := _SignOnPolicyActionCommonConditionIPRisk{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionIPRisk) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionIPRisk(varSignOnPolicyActionCommonConditionIPRisk) - - return err -} - type NullableSignOnPolicyActionCommonConditionIPRisk struct { value *SignOnPolicyActionCommonConditionIPRisk isSet bool diff --git a/management/model_sign_on_policy_action_common_condition_ip_risk_ip_risk.go b/management/model_sign_on_policy_action_common_condition_ip_risk_ip_risk.go index 99c9ab58..e86bf1d8 100644 --- a/management/model_sign_on_policy_action_common_condition_ip_risk_ip_risk.go +++ b/management/model_sign_on_policy_action_common_condition_ip_risk_ip_risk.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonConditionIPRiskIpRisk type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonConditionIPRiskIpRisk struct { MaxScore int32 `json:"maxScore"` } -type _SignOnPolicyActionCommonConditionIPRiskIpRisk SignOnPolicyActionCommonConditionIPRiskIpRisk - // NewSignOnPolicyActionCommonConditionIPRiskIpRisk instantiates a new SignOnPolicyActionCommonConditionIPRiskIpRisk 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionCommonConditionIPRiskIpRisk) ToMap() (map[string]inter return toSerialize, nil } -func (o *SignOnPolicyActionCommonConditionIPRiskIpRisk) UnmarshalJSON(bytes []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{ - "minScore", - "maxScore", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonConditionIPRiskIpRisk := _SignOnPolicyActionCommonConditionIPRiskIpRisk{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonConditionIPRiskIpRisk) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonConditionIPRiskIpRisk(varSignOnPolicyActionCommonConditionIPRiskIpRisk) - - return err -} - type NullableSignOnPolicyActionCommonConditionIPRiskIpRisk struct { value *SignOnPolicyActionCommonConditionIPRiskIpRisk isSet bool diff --git a/management/model_sign_on_policy_action_common_sign_on_policy.go b/management/model_sign_on_policy_action_common_sign_on_policy.go index dbfe504d..3957b46c 100644 --- a/management/model_sign_on_policy_action_common_sign_on_policy.go +++ b/management/model_sign_on_policy_action_common_sign_on_policy.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionCommonSignOnPolicy type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionCommonSignOnPolicy struct { Id string `json:"id"` } -type _SignOnPolicyActionCommonSignOnPolicy SignOnPolicyActionCommonSignOnPolicy - // NewSignOnPolicyActionCommonSignOnPolicy instantiates a new SignOnPolicyActionCommonSignOnPolicy 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionCommonSignOnPolicy) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *SignOnPolicyActionCommonSignOnPolicy) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionCommonSignOnPolicy := _SignOnPolicyActionCommonSignOnPolicy{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionCommonSignOnPolicy) - - if err != nil { - return err - } - - *o = SignOnPolicyActionCommonSignOnPolicy(varSignOnPolicyActionCommonSignOnPolicy) - - return err -} - type NullableSignOnPolicyActionCommonSignOnPolicy struct { value *SignOnPolicyActionCommonSignOnPolicy isSet bool diff --git a/management/model_sign_on_policy_action_id_first.go b/management/model_sign_on_policy_action_id_first.go index d66433e4..0771bf25 100644 --- a/management/model_sign_on_policy_action_id_first.go +++ b/management/model_sign_on_policy_action_id_first.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionIDFirst type satisfies the MappedNullable interface at compile time @@ -39,8 +38,6 @@ type SignOnPolicyActionIDFirst struct { SocialProviders []SignOnPolicyActionLoginAllOfSocialProviders `json:"socialProviders,omitempty"` } -type _SignOnPolicyActionIDFirst SignOnPolicyActionIDFirst - // NewSignOnPolicyActionIDFirst instantiates a new SignOnPolicyActionIDFirst 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 @@ -473,42 +470,6 @@ func (o SignOnPolicyActionIDFirst) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicyActionIDFirst) UnmarshalJSON(bytes []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{ - "priority", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionIDFirst := _SignOnPolicyActionIDFirst{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionIDFirst) - - if err != nil { - return err - } - - *o = SignOnPolicyActionIDFirst(varSignOnPolicyActionIDFirst) - - return err -} - type NullableSignOnPolicyActionIDFirst struct { value *SignOnPolicyActionIDFirst isSet bool diff --git a/management/model_sign_on_policy_action_id_first_all_of_condition.go b/management/model_sign_on_policy_action_id_first_all_of_condition.go index fba8b3db..579bffd2 100644 --- a/management/model_sign_on_policy_action_id_first_all_of_condition.go +++ b/management/model_sign_on_policy_action_id_first_all_of_condition.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionIDFirstAllOfCondition type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionIDFirstAllOfCondition struct { Value string `json:"value"` } -type _SignOnPolicyActionIDFirstAllOfCondition SignOnPolicyActionIDFirstAllOfCondition - // NewSignOnPolicyActionIDFirstAllOfCondition instantiates a new SignOnPolicyActionIDFirstAllOfCondition 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionIDFirstAllOfCondition) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *SignOnPolicyActionIDFirstAllOfCondition) UnmarshalJSON(bytes []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{ - "contains", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionIDFirstAllOfCondition := _SignOnPolicyActionIDFirstAllOfCondition{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionIDFirstAllOfCondition) - - if err != nil { - return err - } - - *o = SignOnPolicyActionIDFirstAllOfCondition(varSignOnPolicyActionIDFirstAllOfCondition) - - return err -} - type NullableSignOnPolicyActionIDFirstAllOfCondition struct { value *SignOnPolicyActionIDFirstAllOfCondition isSet bool diff --git a/management/model_sign_on_policy_action_id_first_all_of_discovery_rules.go b/management/model_sign_on_policy_action_id_first_all_of_discovery_rules.go index ec046d7b..baf73ae6 100644 --- a/management/model_sign_on_policy_action_id_first_all_of_discovery_rules.go +++ b/management/model_sign_on_policy_action_id_first_all_of_discovery_rules.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionIDFirstAllOfDiscoveryRules type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionIDFirstAllOfDiscoveryRules struct { IdentityProvider SignOnPolicyActionIDFirstAllOfIdentityProvider `json:"identityProvider"` } -type _SignOnPolicyActionIDFirstAllOfDiscoveryRules SignOnPolicyActionIDFirstAllOfDiscoveryRules - // NewSignOnPolicyActionIDFirstAllOfDiscoveryRules instantiates a new SignOnPolicyActionIDFirstAllOfDiscoveryRules 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 @@ -108,42 +105,6 @@ func (o SignOnPolicyActionIDFirstAllOfDiscoveryRules) ToMap() (map[string]interf return toSerialize, nil } -func (o *SignOnPolicyActionIDFirstAllOfDiscoveryRules) UnmarshalJSON(bytes []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{ - "condition", - "identityProvider", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionIDFirstAllOfDiscoveryRules := _SignOnPolicyActionIDFirstAllOfDiscoveryRules{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionIDFirstAllOfDiscoveryRules) - - if err != nil { - return err - } - - *o = SignOnPolicyActionIDFirstAllOfDiscoveryRules(varSignOnPolicyActionIDFirstAllOfDiscoveryRules) - - return err -} - type NullableSignOnPolicyActionIDFirstAllOfDiscoveryRules struct { value *SignOnPolicyActionIDFirstAllOfDiscoveryRules isSet bool diff --git a/management/model_sign_on_policy_action_id_first_all_of_identity_provider.go b/management/model_sign_on_policy_action_id_first_all_of_identity_provider.go index cc1b27fb..a3640ec7 100644 --- a/management/model_sign_on_policy_action_id_first_all_of_identity_provider.go +++ b/management/model_sign_on_policy_action_id_first_all_of_identity_provider.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionIDFirstAllOfIdentityProvider type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionIDFirstAllOfIdentityProvider struct { Id string `json:"id"` } -type _SignOnPolicyActionIDFirstAllOfIdentityProvider SignOnPolicyActionIDFirstAllOfIdentityProvider - // NewSignOnPolicyActionIDFirstAllOfIdentityProvider instantiates a new SignOnPolicyActionIDFirstAllOfIdentityProvider 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionIDFirstAllOfIdentityProvider) ToMap() (map[string]inte return toSerialize, nil } -func (o *SignOnPolicyActionIDFirstAllOfIdentityProvider) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionIDFirstAllOfIdentityProvider := _SignOnPolicyActionIDFirstAllOfIdentityProvider{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionIDFirstAllOfIdentityProvider) - - if err != nil { - return err - } - - *o = SignOnPolicyActionIDFirstAllOfIdentityProvider(varSignOnPolicyActionIDFirstAllOfIdentityProvider) - - return err -} - type NullableSignOnPolicyActionIDFirstAllOfIdentityProvider struct { value *SignOnPolicyActionIDFirstAllOfIdentityProvider isSet bool diff --git a/management/model_sign_on_policy_action_idp.go b/management/model_sign_on_policy_action_idp.go index 7e46c80d..7ae2f4aa 100644 --- a/management/model_sign_on_policy_action_idp.go +++ b/management/model_sign_on_policy_action_idp.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionIDP type satisfies the MappedNullable interface at compile time @@ -37,8 +36,6 @@ type SignOnPolicyActionIDP struct { Registration *SignOnPolicyActionIDPAllOfRegistration `json:"registration,omitempty"` } -type _SignOnPolicyActionIDP SignOnPolicyActionIDP - // NewSignOnPolicyActionIDP instantiates a new SignOnPolicyActionIDP 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 @@ -427,43 +424,6 @@ func (o SignOnPolicyActionIDP) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicyActionIDP) UnmarshalJSON(bytes []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{ - "priority", - "type", - "identityProvider", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionIDP := _SignOnPolicyActionIDP{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionIDP) - - if err != nil { - return err - } - - *o = SignOnPolicyActionIDP(varSignOnPolicyActionIDP) - - return err -} - type NullableSignOnPolicyActionIDP struct { value *SignOnPolicyActionIDP isSet bool diff --git a/management/model_sign_on_policy_action_idp_all_of_identity_provider.go b/management/model_sign_on_policy_action_idp_all_of_identity_provider.go index ecf72c35..ad70d02d 100644 --- a/management/model_sign_on_policy_action_idp_all_of_identity_provider.go +++ b/management/model_sign_on_policy_action_idp_all_of_identity_provider.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionIDPAllOfIdentityProvider type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionIDPAllOfIdentityProvider struct { Id string `json:"id"` } -type _SignOnPolicyActionIDPAllOfIdentityProvider SignOnPolicyActionIDPAllOfIdentityProvider - // NewSignOnPolicyActionIDPAllOfIdentityProvider instantiates a new SignOnPolicyActionIDPAllOfIdentityProvider 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionIDPAllOfIdentityProvider) ToMap() (map[string]interfac return toSerialize, nil } -func (o *SignOnPolicyActionIDPAllOfIdentityProvider) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionIDPAllOfIdentityProvider := _SignOnPolicyActionIDPAllOfIdentityProvider{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionIDPAllOfIdentityProvider) - - if err != nil { - return err - } - - *o = SignOnPolicyActionIDPAllOfIdentityProvider(varSignOnPolicyActionIDPAllOfIdentityProvider) - - return err -} - type NullableSignOnPolicyActionIDPAllOfIdentityProvider struct { value *SignOnPolicyActionIDPAllOfIdentityProvider isSet bool diff --git a/management/model_sign_on_policy_action_idp_all_of_registration.go b/management/model_sign_on_policy_action_idp_all_of_registration.go index cedcabfc..05cc8087 100644 --- a/management/model_sign_on_policy_action_idp_all_of_registration.go +++ b/management/model_sign_on_policy_action_idp_all_of_registration.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionIDPAllOfRegistration type satisfies the MappedNullable interface at compile time @@ -27,8 +26,6 @@ type SignOnPolicyActionIDPAllOfRegistration struct { Population *SignOnPolicyActionLoginAllOfRegistrationPopulation `json:"population,omitempty"` } -type _SignOnPolicyActionIDPAllOfRegistration SignOnPolicyActionIDPAllOfRegistration - // NewSignOnPolicyActionIDPAllOfRegistration instantiates a new SignOnPolicyActionIDPAllOfRegistration 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 @@ -159,41 +156,6 @@ func (o SignOnPolicyActionIDPAllOfRegistration) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *SignOnPolicyActionIDPAllOfRegistration) UnmarshalJSON(bytes []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{ - "enabled", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionIDPAllOfRegistration := _SignOnPolicyActionIDPAllOfRegistration{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionIDPAllOfRegistration) - - if err != nil { - return err - } - - *o = SignOnPolicyActionIDPAllOfRegistration(varSignOnPolicyActionIDPAllOfRegistration) - - return err -} - type NullableSignOnPolicyActionIDPAllOfRegistration struct { value *SignOnPolicyActionIDPAllOfRegistration isSet bool diff --git a/management/model_sign_on_policy_action_login.go b/management/model_sign_on_policy_action_login.go index c4b152d0..2214248e 100644 --- a/management/model_sign_on_policy_action_login.go +++ b/management/model_sign_on_policy_action_login.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLogin type satisfies the MappedNullable interface at compile time @@ -38,8 +37,6 @@ type SignOnPolicyActionLogin struct { SocialProviders []SignOnPolicyActionLoginAllOfSocialProviders `json:"socialProviders,omitempty"` } -type _SignOnPolicyActionLogin SignOnPolicyActionLogin - // NewSignOnPolicyActionLogin instantiates a new SignOnPolicyActionLogin 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 @@ -472,42 +469,6 @@ func (o SignOnPolicyActionLogin) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicyActionLogin) UnmarshalJSON(bytes []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{ - "priority", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLogin := _SignOnPolicyActionLogin{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLogin) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLogin(varSignOnPolicyActionLogin) - - return err -} - type NullableSignOnPolicyActionLogin struct { value *SignOnPolicyActionLogin isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_new_user_provisioning.go b/management/model_sign_on_policy_action_login_all_of_new_user_provisioning.go index 715ba25b..0157b422 100644 --- a/management/model_sign_on_policy_action_login_all_of_new_user_provisioning.go +++ b/management/model_sign_on_policy_action_login_all_of_new_user_provisioning.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfNewUserProvisioning type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionLoginAllOfNewUserProvisioning struct { Gateways []SignOnPolicyActionLoginAllOfNewUserProvisioningGateways `json:"gateways"` } -type _SignOnPolicyActionLoginAllOfNewUserProvisioning SignOnPolicyActionLoginAllOfNewUserProvisioning - // NewSignOnPolicyActionLoginAllOfNewUserProvisioning instantiates a new SignOnPolicyActionLoginAllOfNewUserProvisioning 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionLoginAllOfNewUserProvisioning) ToMap() (map[string]int return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfNewUserProvisioning) UnmarshalJSON(bytes []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{ - "gateways", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfNewUserProvisioning := _SignOnPolicyActionLoginAllOfNewUserProvisioning{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfNewUserProvisioning) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfNewUserProvisioning(varSignOnPolicyActionLoginAllOfNewUserProvisioning) - - return err -} - type NullableSignOnPolicyActionLoginAllOfNewUserProvisioning struct { value *SignOnPolicyActionLoginAllOfNewUserProvisioning isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_gateways.go b/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_gateways.go index 33d8d24b..68549f4e 100644 --- a/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_gateways.go +++ b/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_gateways.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfNewUserProvisioningGateways type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type SignOnPolicyActionLoginAllOfNewUserProvisioningGateways struct { UserType SignOnPolicyActionLoginAllOfNewUserProvisioningUserType `json:"userType"` } -type _SignOnPolicyActionLoginAllOfNewUserProvisioningGateways SignOnPolicyActionLoginAllOfNewUserProvisioningGateways - // NewSignOnPolicyActionLoginAllOfNewUserProvisioningGateways instantiates a new SignOnPolicyActionLoginAllOfNewUserProvisioningGateways 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 @@ -136,43 +133,6 @@ func (o SignOnPolicyActionLoginAllOfNewUserProvisioningGateways) ToMap() (map[st return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfNewUserProvisioningGateways) UnmarshalJSON(bytes []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{ - "id", - "type", - "userType", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfNewUserProvisioningGateways := _SignOnPolicyActionLoginAllOfNewUserProvisioningGateways{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfNewUserProvisioningGateways) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfNewUserProvisioningGateways(varSignOnPolicyActionLoginAllOfNewUserProvisioningGateways) - - return err -} - type NullableSignOnPolicyActionLoginAllOfNewUserProvisioningGateways struct { value *SignOnPolicyActionLoginAllOfNewUserProvisioningGateways isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_user_type.go b/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_user_type.go index 8e180e9a..8728491d 100644 --- a/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_user_type.go +++ b/management/model_sign_on_policy_action_login_all_of_new_user_provisioning_user_type.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfNewUserProvisioningUserType type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionLoginAllOfNewUserProvisioningUserType struct { Id string `json:"id"` } -type _SignOnPolicyActionLoginAllOfNewUserProvisioningUserType SignOnPolicyActionLoginAllOfNewUserProvisioningUserType - // NewSignOnPolicyActionLoginAllOfNewUserProvisioningUserType instantiates a new SignOnPolicyActionLoginAllOfNewUserProvisioningUserType 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionLoginAllOfNewUserProvisioningUserType) ToMap() (map[st return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfNewUserProvisioningUserType) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfNewUserProvisioningUserType := _SignOnPolicyActionLoginAllOfNewUserProvisioningUserType{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfNewUserProvisioningUserType) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfNewUserProvisioningUserType(varSignOnPolicyActionLoginAllOfNewUserProvisioningUserType) - - return err -} - type NullableSignOnPolicyActionLoginAllOfNewUserProvisioningUserType struct { value *SignOnPolicyActionLoginAllOfNewUserProvisioningUserType isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_recovery.go b/management/model_sign_on_policy_action_login_all_of_recovery.go index 9fa970e9..1a35b231 100644 --- a/management/model_sign_on_policy_action_login_all_of_recovery.go +++ b/management/model_sign_on_policy_action_login_all_of_recovery.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfRecovery type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionLoginAllOfRecovery struct { Enabled bool `json:"enabled"` } -type _SignOnPolicyActionLoginAllOfRecovery SignOnPolicyActionLoginAllOfRecovery - // NewSignOnPolicyActionLoginAllOfRecovery instantiates a new SignOnPolicyActionLoginAllOfRecovery 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionLoginAllOfRecovery) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfRecovery) UnmarshalJSON(bytes []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{ - "enabled", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfRecovery := _SignOnPolicyActionLoginAllOfRecovery{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfRecovery) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfRecovery(varSignOnPolicyActionLoginAllOfRecovery) - - return err -} - type NullableSignOnPolicyActionLoginAllOfRecovery struct { value *SignOnPolicyActionLoginAllOfRecovery isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_registration.go b/management/model_sign_on_policy_action_login_all_of_registration.go index a80b76cd..11877e01 100644 --- a/management/model_sign_on_policy_action_login_all_of_registration.go +++ b/management/model_sign_on_policy_action_login_all_of_registration.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfRegistration type satisfies the MappedNullable interface at compile time @@ -28,8 +27,6 @@ type SignOnPolicyActionLoginAllOfRegistration struct { ConfirmIdentityProviderAttributes *bool `json:"confirmIdentityProviderAttributes,omitempty"` } -type _SignOnPolicyActionLoginAllOfRegistration SignOnPolicyActionLoginAllOfRegistration - // NewSignOnPolicyActionLoginAllOfRegistration instantiates a new SignOnPolicyActionLoginAllOfRegistration 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 @@ -195,41 +192,6 @@ func (o SignOnPolicyActionLoginAllOfRegistration) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfRegistration) UnmarshalJSON(bytes []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{ - "enabled", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfRegistration := _SignOnPolicyActionLoginAllOfRegistration{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfRegistration) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfRegistration(varSignOnPolicyActionLoginAllOfRegistration) - - return err -} - type NullableSignOnPolicyActionLoginAllOfRegistration struct { value *SignOnPolicyActionLoginAllOfRegistration isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_registration_external.go b/management/model_sign_on_policy_action_login_all_of_registration_external.go index 467b49f3..1545df73 100644 --- a/management/model_sign_on_policy_action_login_all_of_registration_external.go +++ b/management/model_sign_on_policy_action_login_all_of_registration_external.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfRegistrationExternal type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionLoginAllOfRegistrationExternal struct { Href string `json:"href"` } -type _SignOnPolicyActionLoginAllOfRegistrationExternal SignOnPolicyActionLoginAllOfRegistrationExternal - // NewSignOnPolicyActionLoginAllOfRegistrationExternal instantiates a new SignOnPolicyActionLoginAllOfRegistrationExternal 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionLoginAllOfRegistrationExternal) ToMap() (map[string]in return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfRegistrationExternal) UnmarshalJSON(bytes []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{ - "href", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfRegistrationExternal := _SignOnPolicyActionLoginAllOfRegistrationExternal{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfRegistrationExternal) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfRegistrationExternal(varSignOnPolicyActionLoginAllOfRegistrationExternal) - - return err -} - type NullableSignOnPolicyActionLoginAllOfRegistrationExternal struct { value *SignOnPolicyActionLoginAllOfRegistrationExternal isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_registration_population.go b/management/model_sign_on_policy_action_login_all_of_registration_population.go index d72751ac..18b14fe6 100644 --- a/management/model_sign_on_policy_action_login_all_of_registration_population.go +++ b/management/model_sign_on_policy_action_login_all_of_registration_population.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfRegistrationPopulation type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionLoginAllOfRegistrationPopulation struct { Id string `json:"id"` } -type _SignOnPolicyActionLoginAllOfRegistrationPopulation SignOnPolicyActionLoginAllOfRegistrationPopulation - // NewSignOnPolicyActionLoginAllOfRegistrationPopulation instantiates a new SignOnPolicyActionLoginAllOfRegistrationPopulation 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionLoginAllOfRegistrationPopulation) ToMap() (map[string] return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfRegistrationPopulation) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfRegistrationPopulation := _SignOnPolicyActionLoginAllOfRegistrationPopulation{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfRegistrationPopulation) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfRegistrationPopulation(varSignOnPolicyActionLoginAllOfRegistrationPopulation) - - return err -} - type NullableSignOnPolicyActionLoginAllOfRegistrationPopulation struct { value *SignOnPolicyActionLoginAllOfRegistrationPopulation isSet bool diff --git a/management/model_sign_on_policy_action_login_all_of_social_providers.go b/management/model_sign_on_policy_action_login_all_of_social_providers.go index 76bbfdba..54eadf46 100644 --- a/management/model_sign_on_policy_action_login_all_of_social_providers.go +++ b/management/model_sign_on_policy_action_login_all_of_social_providers.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionLoginAllOfSocialProviders type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionLoginAllOfSocialProviders struct { Id string `json:"id"` } -type _SignOnPolicyActionLoginAllOfSocialProviders SignOnPolicyActionLoginAllOfSocialProviders - // NewSignOnPolicyActionLoginAllOfSocialProviders instantiates a new SignOnPolicyActionLoginAllOfSocialProviders 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionLoginAllOfSocialProviders) ToMap() (map[string]interfa return toSerialize, nil } -func (o *SignOnPolicyActionLoginAllOfSocialProviders) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionLoginAllOfSocialProviders := _SignOnPolicyActionLoginAllOfSocialProviders{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionLoginAllOfSocialProviders) - - if err != nil { - return err - } - - *o = SignOnPolicyActionLoginAllOfSocialProviders(varSignOnPolicyActionLoginAllOfSocialProviders) - - return err -} - type NullableSignOnPolicyActionLoginAllOfSocialProviders struct { value *SignOnPolicyActionLoginAllOfSocialProviders isSet bool diff --git a/management/model_sign_on_policy_action_mfa.go b/management/model_sign_on_policy_action_mfa.go index 22985e45..b8670168 100644 --- a/management/model_sign_on_policy_action_mfa.go +++ b/management/model_sign_on_policy_action_mfa.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionMFA type satisfies the MappedNullable interface at compile time @@ -48,8 +47,6 @@ type SignOnPolicyActionMFA struct { NoDevicesMode *EnumSignOnPolicyNoDeviceMode `json:"noDevicesMode,omitempty"` } -type _SignOnPolicyActionMFA SignOnPolicyActionMFA - // NewSignOnPolicyActionMFA instantiates a new SignOnPolicyActionMFA 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 @@ -643,42 +640,6 @@ func (o SignOnPolicyActionMFA) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicyActionMFA) UnmarshalJSON(bytes []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{ - "priority", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionMFA := _SignOnPolicyActionMFA{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionMFA) - - if err != nil { - return err - } - - *o = SignOnPolicyActionMFA(varSignOnPolicyActionMFA) - - return err -} - type NullableSignOnPolicyActionMFA struct { value *SignOnPolicyActionMFA isSet bool diff --git a/management/model_sign_on_policy_action_mfa_all_of_applications.go b/management/model_sign_on_policy_action_mfa_all_of_applications.go index 8690cb47..d4d8108d 100644 --- a/management/model_sign_on_policy_action_mfa_all_of_applications.go +++ b/management/model_sign_on_policy_action_mfa_all_of_applications.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionMFAAllOfApplications type satisfies the MappedNullable interface at compile time @@ -25,8 +24,6 @@ type SignOnPolicyActionMFAAllOfApplications struct { DeviceAuthorization *SignOnPolicyActionMFAAllOfDeviceAuthorization `json:"deviceAuthorization,omitempty"` } -type _SignOnPolicyActionMFAAllOfApplications SignOnPolicyActionMFAAllOfApplications - // NewSignOnPolicyActionMFAAllOfApplications instantiates a new SignOnPolicyActionMFAAllOfApplications 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 @@ -153,41 +150,6 @@ func (o SignOnPolicyActionMFAAllOfApplications) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *SignOnPolicyActionMFAAllOfApplications) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionMFAAllOfApplications := _SignOnPolicyActionMFAAllOfApplications{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionMFAAllOfApplications) - - if err != nil { - return err - } - - *o = SignOnPolicyActionMFAAllOfApplications(varSignOnPolicyActionMFAAllOfApplications) - - return err -} - type NullableSignOnPolicyActionMFAAllOfApplications struct { value *SignOnPolicyActionMFAAllOfApplications isSet bool diff --git a/management/model_sign_on_policy_action_mfa_all_of_device_authentication_policy.go b/management/model_sign_on_policy_action_mfa_all_of_device_authentication_policy.go index 4f3dc175..059cb49f 100644 --- a/management/model_sign_on_policy_action_mfa_all_of_device_authentication_policy.go +++ b/management/model_sign_on_policy_action_mfa_all_of_device_authentication_policy.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy struct { Id string `json:"id"` } -type _SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy - // NewSignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy instantiates a new SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy) ToMap() (map[strin return toSerialize, nil } -func (o *SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy := _SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy) - - if err != nil { - return err - } - - *o = SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy(varSignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy) - - return err -} - type NullableSignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy struct { value *SignOnPolicyActionMFAAllOfDeviceAuthenticationPolicy isSet bool diff --git a/management/model_sign_on_policy_action_ping_id_win_login_passwordless.go b/management/model_sign_on_policy_action_ping_id_win_login_passwordless.go index d96aede3..ffa75ed7 100644 --- a/management/model_sign_on_policy_action_ping_id_win_login_passwordless.go +++ b/management/model_sign_on_policy_action_ping_id_win_login_passwordless.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionPingIDWinLoginPasswordless type satisfies the MappedNullable interface at compile time @@ -33,8 +32,6 @@ type SignOnPolicyActionPingIDWinLoginPasswordless struct { OfflineMode SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode `json:"offlineMode"` } -type _SignOnPolicyActionPingIDWinLoginPasswordless SignOnPolicyActionPingIDWinLoginPasswordless - // NewSignOnPolicyActionPingIDWinLoginPasswordless instantiates a new SignOnPolicyActionPingIDWinLoginPasswordless 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 @@ -344,44 +341,6 @@ func (o SignOnPolicyActionPingIDWinLoginPasswordless) ToMap() (map[string]interf return toSerialize, nil } -func (o *SignOnPolicyActionPingIDWinLoginPasswordless) UnmarshalJSON(bytes []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{ - "priority", - "type", - "uniqueUserAttribute", - "offlineMode", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionPingIDWinLoginPasswordless := _SignOnPolicyActionPingIDWinLoginPasswordless{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionPingIDWinLoginPasswordless) - - if err != nil { - return err - } - - *o = SignOnPolicyActionPingIDWinLoginPasswordless(varSignOnPolicyActionPingIDWinLoginPasswordless) - - return err -} - type NullableSignOnPolicyActionPingIDWinLoginPasswordless struct { value *SignOnPolicyActionPingIDWinLoginPasswordless isSet bool diff --git a/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_offline_mode.go b/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_offline_mode.go index 8639cbd0..463d153d 100644 --- a/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_offline_mode.go +++ b/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_offline_mode.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode struct { Enabled bool `json:"enabled"` } -type _SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode - // NewSignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode instantiates a new SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode) ToMap() (m return toSerialize, nil } -func (o *SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode) UnmarshalJSON(bytes []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{ - "enabled", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode := _SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode) - - if err != nil { - return err - } - - *o = SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode(varSignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode) - - return err -} - type NullableSignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode struct { value *SignOnPolicyActionPingIDWinLoginPasswordlessAllOfOfflineMode isSet bool diff --git a/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_unique_user_attribute.go b/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_unique_user_attribute.go index 9f6fcd67..6c94956d 100644 --- a/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_unique_user_attribute.go +++ b/management/model_sign_on_policy_action_ping_id_win_login_passwordless_all_of_unique_user_attribute.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute struct Name string `json:"name"` } -type _SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute - // NewSignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute instantiates a new SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute 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 @@ -82,41 +79,6 @@ func (o SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute) To return toSerialize, nil } -func (o *SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute) UnmarshalJSON(bytes []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", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute := _SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute) - - if err != nil { - return err - } - - *o = SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute(varSignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute) - - return err -} - type NullableSignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute struct { value *SignOnPolicyActionPingIDWinLoginPasswordlessAllOfUniqueUserAttribute isSet bool diff --git a/management/model_sign_on_policy_action_progressive_profiling.go b/management/model_sign_on_policy_action_progressive_profiling.go index a9a6d7de..5b61b27a 100644 --- a/management/model_sign_on_policy_action_progressive_profiling.go +++ b/management/model_sign_on_policy_action_progressive_profiling.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionProgressiveProfiling type satisfies the MappedNullable interface at compile time @@ -38,8 +37,6 @@ type SignOnPolicyActionProgressiveProfiling struct { PromptText string `json:"promptText"` } -type _SignOnPolicyActionProgressiveProfiling SignOnPolicyActionProgressiveProfiling - // NewSignOnPolicyActionProgressiveProfiling instantiates a new SignOnPolicyActionProgressiveProfiling 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 @@ -401,46 +398,6 @@ func (o SignOnPolicyActionProgressiveProfiling) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *SignOnPolicyActionProgressiveProfiling) UnmarshalJSON(bytes []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{ - "priority", - "type", - "attributes", - "preventMultiplePromptsPerFlow", - "promptIntervalSeconds", - "promptText", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionProgressiveProfiling := _SignOnPolicyActionProgressiveProfiling{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionProgressiveProfiling) - - if err != nil { - return err - } - - *o = SignOnPolicyActionProgressiveProfiling(varSignOnPolicyActionProgressiveProfiling) - - return err -} - type NullableSignOnPolicyActionProgressiveProfiling struct { value *SignOnPolicyActionProgressiveProfiling isSet bool diff --git a/management/model_sign_on_policy_action_progressive_profiling_all_of_attributes.go b/management/model_sign_on_policy_action_progressive_profiling_all_of_attributes.go index 03b4038c..76192faf 100644 --- a/management/model_sign_on_policy_action_progressive_profiling_all_of_attributes.go +++ b/management/model_sign_on_policy_action_progressive_profiling_all_of_attributes.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyActionProgressiveProfilingAllOfAttributes type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type SignOnPolicyActionProgressiveProfilingAllOfAttributes struct { Required bool `json:"required"` } -type _SignOnPolicyActionProgressiveProfilingAllOfAttributes SignOnPolicyActionProgressiveProfilingAllOfAttributes - // NewSignOnPolicyActionProgressiveProfilingAllOfAttributes instantiates a new SignOnPolicyActionProgressiveProfilingAllOfAttributes 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 @@ -110,42 +107,6 @@ func (o SignOnPolicyActionProgressiveProfilingAllOfAttributes) ToMap() (map[stri return toSerialize, nil } -func (o *SignOnPolicyActionProgressiveProfilingAllOfAttributes) UnmarshalJSON(bytes []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", - "required", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyActionProgressiveProfilingAllOfAttributes := _SignOnPolicyActionProgressiveProfilingAllOfAttributes{} - - err = json.Unmarshal(bytes, &varSignOnPolicyActionProgressiveProfilingAllOfAttributes) - - if err != nil { - return err - } - - *o = SignOnPolicyActionProgressiveProfilingAllOfAttributes(varSignOnPolicyActionProgressiveProfilingAllOfAttributes) - - return err -} - type NullableSignOnPolicyActionProgressiveProfilingAllOfAttributes struct { value *SignOnPolicyActionProgressiveProfilingAllOfAttributes isSet bool diff --git a/management/model_sign_on_policy_assignment.go b/management/model_sign_on_policy_assignment.go index 7d1791af..03829557 100644 --- a/management/model_sign_on_policy_assignment.go +++ b/management/model_sign_on_policy_assignment.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SignOnPolicyAssignment type satisfies the MappedNullable interface at compile time @@ -30,8 +29,6 @@ type SignOnPolicyAssignment struct { SignOnPolicy SignOnPolicyActionCommonSignOnPolicy `json:"signOnPolicy"` } -type _SignOnPolicyAssignment SignOnPolicyAssignment - // NewSignOnPolicyAssignment instantiates a new SignOnPolicyAssignment 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 @@ -254,42 +251,6 @@ func (o SignOnPolicyAssignment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SignOnPolicyAssignment) UnmarshalJSON(bytes []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{ - "priority", - "signOnPolicy", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSignOnPolicyAssignment := _SignOnPolicyAssignment{} - - err = json.Unmarshal(bytes, &varSignOnPolicyAssignment) - - if err != nil { - return err - } - - *o = SignOnPolicyAssignment(varSignOnPolicyAssignment) - - return err -} - type NullableSignOnPolicyAssignment struct { value *SignOnPolicyAssignment isSet bool diff --git a/management/model_subscription.go b/management/model_subscription.go index 34afb39a..4a008584 100644 --- a/management/model_subscription.go +++ b/management/model_subscription.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the Subscription type satisfies the MappedNullable interface at compile time @@ -41,8 +40,6 @@ type Subscription struct { VerifyTlsCertificates bool `json:"verifyTlsCertificates"` } -type _Subscription Subscription - // NewSubscription instantiates a new Subscription 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 @@ -439,46 +436,6 @@ func (o Subscription) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Subscription) UnmarshalJSON(bytes []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{ - "enabled", - "filterOptions", - "format", - "httpEndpoint", - "name", - "verifyTlsCertificates", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSubscription := _Subscription{} - - err = json.Unmarshal(bytes, &varSubscription) - - if err != nil { - return err - } - - *o = Subscription(varSubscription) - - return err -} - type NullableSubscription struct { value *Subscription isSet bool diff --git a/management/model_subscription_filter_options.go b/management/model_subscription_filter_options.go index d6ad1546..b1445aa1 100644 --- a/management/model_subscription_filter_options.go +++ b/management/model_subscription_filter_options.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SubscriptionFilterOptions type satisfies the MappedNullable interface at compile time @@ -34,8 +33,6 @@ type SubscriptionFilterOptions struct { UserAgentExposed *bool `json:"userAgentExposed,omitempty"` } -type _SubscriptionFilterOptions SubscriptionFilterOptions - // NewSubscriptionFilterOptions instantiates a new SubscriptionFilterOptions 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 @@ -275,41 +272,6 @@ func (o SubscriptionFilterOptions) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SubscriptionFilterOptions) UnmarshalJSON(bytes []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{ - "includedActionTypes", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSubscriptionFilterOptions := _SubscriptionFilterOptions{} - - err = json.Unmarshal(bytes, &varSubscriptionFilterOptions) - - if err != nil { - return err - } - - *o = SubscriptionFilterOptions(varSubscriptionFilterOptions) - - return err -} - type NullableSubscriptionFilterOptions struct { value *SubscriptionFilterOptions isSet bool diff --git a/management/model_subscription_filter_options_included_applications_inner.go b/management/model_subscription_filter_options_included_applications_inner.go index 494df1e3..109bbd15 100644 --- a/management/model_subscription_filter_options_included_applications_inner.go +++ b/management/model_subscription_filter_options_included_applications_inner.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SubscriptionFilterOptionsIncludedApplicationsInner type satisfies the MappedNullable interface at compile time @@ -23,8 +22,6 @@ type SubscriptionFilterOptionsIncludedApplicationsInner struct { Id string `json:"id"` } -type _SubscriptionFilterOptionsIncludedApplicationsInner SubscriptionFilterOptionsIncludedApplicationsInner - // NewSubscriptionFilterOptionsIncludedApplicationsInner instantiates a new SubscriptionFilterOptionsIncludedApplicationsInner 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 @@ -81,41 +78,6 @@ func (o SubscriptionFilterOptionsIncludedApplicationsInner) ToMap() (map[string] return toSerialize, nil } -func (o *SubscriptionFilterOptionsIncludedApplicationsInner) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSubscriptionFilterOptionsIncludedApplicationsInner := _SubscriptionFilterOptionsIncludedApplicationsInner{} - - err = json.Unmarshal(bytes, &varSubscriptionFilterOptionsIncludedApplicationsInner) - - if err != nil { - return err - } - - *o = SubscriptionFilterOptionsIncludedApplicationsInner(varSubscriptionFilterOptionsIncludedApplicationsInner) - - return err -} - type NullableSubscriptionFilterOptionsIncludedApplicationsInner struct { value *SubscriptionFilterOptionsIncludedApplicationsInner isSet bool diff --git a/management/model_subscription_http_endpoint.go b/management/model_subscription_http_endpoint.go index ff679ce5..73ef8382 100644 --- a/management/model_subscription_http_endpoint.go +++ b/management/model_subscription_http_endpoint.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the SubscriptionHttpEndpoint type satisfies the MappedNullable interface at compile time @@ -26,8 +25,6 @@ type SubscriptionHttpEndpoint struct { Headers *map[string]string `json:"headers,omitempty"` } -type _SubscriptionHttpEndpoint SubscriptionHttpEndpoint - // NewSubscriptionHttpEndpoint instantiates a new SubscriptionHttpEndpoint 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 @@ -119,41 +116,6 @@ func (o SubscriptionHttpEndpoint) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SubscriptionHttpEndpoint) UnmarshalJSON(bytes []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{ - "url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varSubscriptionHttpEndpoint := _SubscriptionHttpEndpoint{} - - err = json.Unmarshal(bytes, &varSubscriptionHttpEndpoint) - - if err != nil { - return err - } - - *o = SubscriptionHttpEndpoint(varSubscriptionHttpEndpoint) - - return err -} - type NullableSubscriptionHttpEndpoint struct { value *SubscriptionHttpEndpoint isSet bool diff --git a/management/model_template.go b/management/model_template.go index b1c8619d..b7731ea5 100644 --- a/management/model_template.go +++ b/management/model_template.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the Template type satisfies the MappedNullable interface at compile time @@ -39,8 +38,6 @@ type Template struct { AllowDynamicVariables *bool `json:"allowDynamicVariables,omitempty"` } -type _Template Template - // NewTemplate instantiates a new Template 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 @@ -359,43 +356,6 @@ func (o Template) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Template) UnmarshalJSON(bytes []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{ - "displayName", - "deliveryMethods", - "variables", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varTemplate := _Template{} - - err = json.Unmarshal(bytes, &varTemplate) - - if err != nil { - return err - } - - *o = Template(varTemplate) - - return err -} - type NullableTemplate struct { value *Template isSet bool diff --git a/management/model_template_content_common.go b/management/model_template_content_common.go index 750f00ec..be05640e 100644 --- a/management/model_template_content_common.go +++ b/management/model_template_content_common.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the TemplateContentCommon type satisfies the MappedNullable interface at compile time @@ -36,8 +35,6 @@ type TemplateContentCommon struct { Variant *string `json:"variant,omitempty"` } -type _TemplateContentCommon TemplateContentCommon - // NewTemplateContentCommon instantiates a new TemplateContentCommon 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 @@ -330,42 +327,6 @@ func (o TemplateContentCommon) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TemplateContentCommon) UnmarshalJSON(bytes []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{ - "locale", - "deliveryMethod", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varTemplateContentCommon := _TemplateContentCommon{} - - err = json.Unmarshal(bytes, &varTemplateContentCommon) - - if err != nil { - return err - } - - *o = TemplateContentCommon(varTemplateContentCommon) - - return err -} - type NullableTemplateContentCommon struct { value *TemplateContentCommon isSet bool diff --git a/management/model_template_content_email.go b/management/model_template_content_email.go index f342ba4a..67910deb 100644 --- a/management/model_template_content_email.go +++ b/management/model_template_content_email.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the TemplateContentEmail type satisfies the MappedNullable interface at compile time @@ -46,8 +45,6 @@ type TemplateContentEmail struct { EmailContentType *string `json:"emailContentType,omitempty"` } -type _TemplateContentEmail TemplateContentEmail - // NewTemplateContentEmail instantiates a new TemplateContentEmail 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 @@ -549,43 +546,6 @@ func (o TemplateContentEmail) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TemplateContentEmail) UnmarshalJSON(bytes []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{ - "locale", - "deliveryMethod", - "body", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varTemplateContentEmail := _TemplateContentEmail{} - - err = json.Unmarshal(bytes, &varTemplateContentEmail) - - if err != nil { - return err - } - - *o = TemplateContentEmail(varTemplateContentEmail) - - return err -} - type NullableTemplateContentEmail struct { value *TemplateContentEmail isSet bool diff --git a/management/model_template_content_push.go b/management/model_template_content_push.go index 293c7866..2c996ff0 100644 --- a/management/model_template_content_push.go +++ b/management/model_template_content_push.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the TemplateContentPush type satisfies the MappedNullable interface at compile time @@ -41,8 +40,6 @@ type TemplateContentPush struct { PushCategory *EnumTemplateContentPushCategory `json:"pushCategory,omitempty"` } -type _TemplateContentPush TemplateContentPush - // NewTemplateContentPush instantiates a new TemplateContentPush 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 @@ -426,44 +423,6 @@ func (o TemplateContentPush) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TemplateContentPush) UnmarshalJSON(bytes []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{ - "locale", - "deliveryMethod", - "title", - "body", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varTemplateContentPush := _TemplateContentPush{} - - err = json.Unmarshal(bytes, &varTemplateContentPush) - - if err != nil { - return err - } - - *o = TemplateContentPush(varTemplateContentPush) - - return err -} - type NullableTemplateContentPush struct { value *TemplateContentPush isSet bool diff --git a/management/model_template_content_sms.go b/management/model_template_content_sms.go index 051eb26d..d12de7ff 100644 --- a/management/model_template_content_sms.go +++ b/management/model_template_content_sms.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the TemplateContentSMS type satisfies the MappedNullable interface at compile time @@ -40,8 +39,6 @@ type TemplateContentSMS struct { Sender *string `json:"sender,omitempty"` } -type _TemplateContentSMS TemplateContentSMS - // NewTemplateContentSMS instantiates a new TemplateContentSMS 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 @@ -395,43 +392,6 @@ func (o TemplateContentSMS) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TemplateContentSMS) UnmarshalJSON(bytes []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{ - "locale", - "deliveryMethod", - "content", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varTemplateContentSMS := _TemplateContentSMS{} - - err = json.Unmarshal(bytes, &varTemplateContentSMS) - - if err != nil { - return err - } - - *o = TemplateContentSMS(varTemplateContentSMS) - - return err -} - type NullableTemplateContentSMS struct { value *TemplateContentSMS isSet bool diff --git a/management/model_template_content_voice.go b/management/model_template_content_voice.go index 77feddb6..b3ae9807 100644 --- a/management/model_template_content_voice.go +++ b/management/model_template_content_voice.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the TemplateContentVoice type satisfies the MappedNullable interface at compile time @@ -40,8 +39,6 @@ type TemplateContentVoice struct { Voice *string `json:"voice,omitempty"` } -type _TemplateContentVoice TemplateContentVoice - // NewTemplateContentVoice instantiates a new TemplateContentVoice 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 @@ -395,43 +392,6 @@ func (o TemplateContentVoice) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TemplateContentVoice) UnmarshalJSON(bytes []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{ - "locale", - "deliveryMethod", - "content", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varTemplateContentVoice := _TemplateContentVoice{} - - err = json.Unmarshal(bytes, &varTemplateContentVoice) - - if err != nil { - return err - } - - *o = TemplateContentVoice(varTemplateContentVoice) - - return err -} - type NullableTemplateContentVoice struct { value *TemplateContentVoice isSet bool diff --git a/management/model_user.go b/management/model_user.go index 7223dc42..63e3d25e 100644 --- a/management/model_user.go +++ b/management/model_user.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the User type satisfies the MappedNullable interface at compile time @@ -73,8 +72,6 @@ type User struct { VerifyStatus *EnumUserVerifyStatus `json:"verifyStatus,omitempty"` } -type _User User - // NewUser instantiates a new User 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 @@ -1172,42 +1169,6 @@ func (o User) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *User) UnmarshalJSON(bytes []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{ - "email", - "username", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varUser := _User{} - - err = json.Unmarshal(bytes, &varUser) - - if err != nil { - return err - } - - *o = User(varUser) - - return err -} - type NullableUser struct { value *User isSet bool diff --git a/management/model_user_account.go b/management/model_user_account.go index 927a06ba..9454b880 100644 --- a/management/model_user_account.go +++ b/management/model_user_account.go @@ -13,7 +13,6 @@ package management import ( "encoding/json" "time" - "fmt" ) // checks if the UserAccount type satisfies the MappedNullable interface at compile time @@ -32,8 +31,6 @@ type UserAccount struct { UnlockAt *time.Time `json:"unlockAt,omitempty"` } -type _UserAccount UserAccount - // NewUserAccount instantiates a new UserAccount 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 @@ -221,42 +218,6 @@ func (o UserAccount) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *UserAccount) UnmarshalJSON(bytes []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{ - "canAuthenticate", - "status", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varUserAccount := _UserAccount{} - - err = json.Unmarshal(bytes, &varUserAccount) - - if err != nil { - return err - } - - *o = UserAccount(varUserAccount) - - return err -} - type NullableUserAccount struct { value *UserAccount isSet bool diff --git a/management/model_user_photo.go b/management/model_user_photo.go index 0a53e4b7..e3a5ca22 100644 --- a/management/model_user_photo.go +++ b/management/model_user_photo.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the UserPhoto type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type UserPhoto struct { Href string `json:"href"` } -type _UserPhoto UserPhoto - // NewUserPhoto instantiates a new UserPhoto 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 @@ -82,41 +79,6 @@ func (o UserPhoto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *UserPhoto) UnmarshalJSON(bytes []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{ - "href", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varUserPhoto := _UserPhoto{} - - err = json.Unmarshal(bytes, &varUserPhoto) - - if err != nil { - return err - } - - *o = UserPhoto(varUserPhoto) - - return err -} - type NullableUserPhoto struct { value *UserPhoto isSet bool diff --git a/management/model_user_population.go b/management/model_user_population.go index 0847e2be..20454c38 100644 --- a/management/model_user_population.go +++ b/management/model_user_population.go @@ -12,7 +12,6 @@ package management import ( "encoding/json" - "fmt" ) // checks if the UserPopulation type satisfies the MappedNullable interface at compile time @@ -24,8 +23,6 @@ type UserPopulation struct { Id string `json:"id"` } -type _UserPopulation UserPopulation - // NewUserPopulation instantiates a new UserPopulation 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 @@ -82,41 +79,6 @@ func (o UserPopulation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *UserPopulation) UnmarshalJSON(bytes []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{ - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &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) - } - } - - varUserPopulation := _UserPopulation{} - - err = json.Unmarshal(bytes, &varUserPopulation) - - if err != nil { - return err - } - - *o = UserPopulation(varUserPopulation) - - return err -} - type NullableUserPopulation struct { value *UserPopulation isSet bool diff --git a/management/openapitools.json b/management/openapitools.json new file mode 100644 index 00000000..4053ae89 --- /dev/null +++ b/management/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.0.1" + } +} diff --git a/scripts/generate.sh b/scripts/generate.sh index 778d8f34..7fb8f4e1 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -11,7 +11,8 @@ else if [[ -f "generate/pingone-$3.yml" ]]; then \ echo "==> Running codegen-$3..." - openapi-generator generate -i generate/pingone-$3.yml -g go --additional-properties=packageName=$3,packageVersion=$version,isGoSubmodule=true,enumClassPrefix=true,apiNameSuffix=Api -o . --git-repo-id $2 --git-user-id $1 --http-user-agent "pingtools PingOne-GOLANG-SDK ($3)/$version go"; \ + openapi-generator-cli version-manager set 7.0.1 + openapi-generator-cli generate -i generate/pingone-$3.yml -g go --additional-properties=packageName=$3,packageVersion=$version,isGoSubmodule=true,enumClassPrefix=true,apiNameSuffix=Api -o . --git-repo-id $2 --git-user-id $1 --http-user-agent \"pingtools PingOne-GOLANG-SDK \($3\)/$version go\"; \ go get -u ./... go mod tidy go mod vendor