func()

in sdk/resourcemanager/oracledatabase/armoracledatabase/models_serde.go [922:1185]


func (a *AutonomousDatabaseCloneProperties) UnmarshalJSON(data []byte) error {
	var rawMsg map[string]json.RawMessage
	if err := json.Unmarshal(data, &rawMsg); err != nil {
		return fmt.Errorf("unmarshalling type %T: %v", a, err)
	}
	for key, val := range rawMsg {
		var err error
		switch key {
		case "actualUsedDataStorageSizeInTbs":
			err = unpopulate(val, "ActualUsedDataStorageSizeInTbs", &a.ActualUsedDataStorageSizeInTbs)
			delete(rawMsg, key)
		case "adminPassword":
			err = unpopulate(val, "AdminPassword", &a.AdminPassword)
			delete(rawMsg, key)
		case "allocatedStorageSizeInTbs":
			err = unpopulate(val, "AllocatedStorageSizeInTbs", &a.AllocatedStorageSizeInTbs)
			delete(rawMsg, key)
		case "apexDetails":
			err = unpopulate(val, "ApexDetails", &a.ApexDetails)
			delete(rawMsg, key)
		case "autonomousDatabaseId":
			err = unpopulate(val, "AutonomousDatabaseID", &a.AutonomousDatabaseID)
			delete(rawMsg, key)
		case "autonomousMaintenanceScheduleType":
			err = unpopulate(val, "AutonomousMaintenanceScheduleType", &a.AutonomousMaintenanceScheduleType)
			delete(rawMsg, key)
		case "availableUpgradeVersions":
			err = unpopulate(val, "AvailableUpgradeVersions", &a.AvailableUpgradeVersions)
			delete(rawMsg, key)
		case "backupRetentionPeriodInDays":
			err = unpopulate(val, "BackupRetentionPeriodInDays", &a.BackupRetentionPeriodInDays)
			delete(rawMsg, key)
		case "cpuCoreCount":
			err = unpopulate(val, "CPUCoreCount", &a.CPUCoreCount)
			delete(rawMsg, key)
		case "characterSet":
			err = unpopulate(val, "CharacterSet", &a.CharacterSet)
			delete(rawMsg, key)
		case "cloneType":
			err = unpopulate(val, "CloneType", &a.CloneType)
			delete(rawMsg, key)
		case "computeCount":
			err = unpopulate(val, "ComputeCount", &a.ComputeCount)
			delete(rawMsg, key)
		case "computeModel":
			err = unpopulate(val, "ComputeModel", &a.ComputeModel)
			delete(rawMsg, key)
		case "connectionStrings":
			err = unpopulate(val, "ConnectionStrings", &a.ConnectionStrings)
			delete(rawMsg, key)
		case "connectionUrls":
			err = unpopulate(val, "ConnectionUrls", &a.ConnectionUrls)
			delete(rawMsg, key)
		case "customerContacts":
			err = unpopulate(val, "CustomerContacts", &a.CustomerContacts)
			delete(rawMsg, key)
		case "dataBaseType":
			err = unpopulate(val, "DataBaseType", &a.DataBaseType)
			delete(rawMsg, key)
		case "dataSafeStatus":
			err = unpopulate(val, "DataSafeStatus", &a.DataSafeStatus)
			delete(rawMsg, key)
		case "dataStorageSizeInGbs":
			err = unpopulate(val, "DataStorageSizeInGbs", &a.DataStorageSizeInGbs)
			delete(rawMsg, key)
		case "dataStorageSizeInTbs":
			err = unpopulate(val, "DataStorageSizeInTbs", &a.DataStorageSizeInTbs)
			delete(rawMsg, key)
		case "databaseEdition":
			err = unpopulate(val, "DatabaseEdition", &a.DatabaseEdition)
			delete(rawMsg, key)
		case "dbVersion":
			err = unpopulate(val, "DbVersion", &a.DbVersion)
			delete(rawMsg, key)
		case "dbWorkload":
			err = unpopulate(val, "DbWorkload", &a.DbWorkload)
			delete(rawMsg, key)
		case "displayName":
			err = unpopulate(val, "DisplayName", &a.DisplayName)
			delete(rawMsg, key)
		case "failedDataRecoveryInSeconds":
			err = unpopulate(val, "FailedDataRecoveryInSeconds", &a.FailedDataRecoveryInSeconds)
			delete(rawMsg, key)
		case "inMemoryAreaInGbs":
			err = unpopulate(val, "InMemoryAreaInGbs", &a.InMemoryAreaInGbs)
			delete(rawMsg, key)
		case "isAutoScalingEnabled":
			err = unpopulate(val, "IsAutoScalingEnabled", &a.IsAutoScalingEnabled)
			delete(rawMsg, key)
		case "isAutoScalingForStorageEnabled":
			err = unpopulate(val, "IsAutoScalingForStorageEnabled", &a.IsAutoScalingForStorageEnabled)
			delete(rawMsg, key)
		case "isLocalDataGuardEnabled":
			err = unpopulate(val, "IsLocalDataGuardEnabled", &a.IsLocalDataGuardEnabled)
			delete(rawMsg, key)
		case "isMtlsConnectionRequired":
			err = unpopulate(val, "IsMtlsConnectionRequired", &a.IsMtlsConnectionRequired)
			delete(rawMsg, key)
		case "isPreview":
			err = unpopulate(val, "IsPreview", &a.IsPreview)
			delete(rawMsg, key)
		case "isPreviewVersionWithServiceTermsAccepted":
			err = unpopulate(val, "IsPreviewVersionWithServiceTermsAccepted", &a.IsPreviewVersionWithServiceTermsAccepted)
			delete(rawMsg, key)
		case "isReconnectCloneEnabled":
			err = unpopulate(val, "IsReconnectCloneEnabled", &a.IsReconnectCloneEnabled)
			delete(rawMsg, key)
		case "isRefreshableClone":
			err = unpopulate(val, "IsRefreshableClone", &a.IsRefreshableClone)
			delete(rawMsg, key)
		case "isRemoteDataGuardEnabled":
			err = unpopulate(val, "IsRemoteDataGuardEnabled", &a.IsRemoteDataGuardEnabled)
			delete(rawMsg, key)
		case "licenseModel":
			err = unpopulate(val, "LicenseModel", &a.LicenseModel)
			delete(rawMsg, key)
		case "lifecycleDetails":
			err = unpopulate(val, "LifecycleDetails", &a.LifecycleDetails)
			delete(rawMsg, key)
		case "lifecycleState":
			err = unpopulate(val, "LifecycleState", &a.LifecycleState)
			delete(rawMsg, key)
		case "localAdgAutoFailoverMaxDataLossLimit":
			err = unpopulate(val, "LocalAdgAutoFailoverMaxDataLossLimit", &a.LocalAdgAutoFailoverMaxDataLossLimit)
			delete(rawMsg, key)
		case "localDisasterRecoveryType":
			err = unpopulate(val, "LocalDisasterRecoveryType", &a.LocalDisasterRecoveryType)
			delete(rawMsg, key)
		case "localStandbyDb":
			err = unpopulate(val, "LocalStandbyDb", &a.LocalStandbyDb)
			delete(rawMsg, key)
		case "longTermBackupSchedule":
			err = unpopulate(val, "LongTermBackupSchedule", &a.LongTermBackupSchedule)
			delete(rawMsg, key)
		case "memoryPerOracleComputeUnitInGbs":
			err = unpopulate(val, "MemoryPerOracleComputeUnitInGbs", &a.MemoryPerOracleComputeUnitInGbs)
			delete(rawMsg, key)
		case "ncharacterSet":
			err = unpopulate(val, "NcharacterSet", &a.NcharacterSet)
			delete(rawMsg, key)
		case "nextLongTermBackupTimeStamp":
			err = unpopulateDateTimeRFC3339(val, "NextLongTermBackupTimeStamp", &a.NextLongTermBackupTimeStamp)
			delete(rawMsg, key)
		case "ociUrl":
			err = unpopulate(val, "OciURL", &a.OciURL)
			delete(rawMsg, key)
		case "ocid":
			err = unpopulate(val, "Ocid", &a.Ocid)
			delete(rawMsg, key)
		case "openMode":
			err = unpopulate(val, "OpenMode", &a.OpenMode)
			delete(rawMsg, key)
		case "operationsInsightsStatus":
			err = unpopulate(val, "OperationsInsightsStatus", &a.OperationsInsightsStatus)
			delete(rawMsg, key)
		case "peerDbId":
			err = unpopulate(val, "PeerDbID", &a.PeerDbID)
			delete(rawMsg, key)
		case "peerDbIds":
			err = unpopulate(val, "PeerDbIDs", &a.PeerDbIDs)
			delete(rawMsg, key)
		case "permissionLevel":
			err = unpopulate(val, "PermissionLevel", &a.PermissionLevel)
			delete(rawMsg, key)
		case "privateEndpoint":
			err = unpopulate(val, "PrivateEndpoint", &a.PrivateEndpoint)
			delete(rawMsg, key)
		case "privateEndpointIp":
			err = unpopulate(val, "PrivateEndpointIP", &a.PrivateEndpointIP)
			delete(rawMsg, key)
		case "privateEndpointLabel":
			err = unpopulate(val, "PrivateEndpointLabel", &a.PrivateEndpointLabel)
			delete(rawMsg, key)
		case "provisionableCpus":
			err = unpopulate(val, "ProvisionableCpus", &a.ProvisionableCpus)
			delete(rawMsg, key)
		case "provisioningState":
			err = unpopulate(val, "ProvisioningState", &a.ProvisioningState)
			delete(rawMsg, key)
		case "refreshableModel":
			err = unpopulate(val, "RefreshableModel", &a.RefreshableModel)
			delete(rawMsg, key)
		case "refreshableStatus":
			err = unpopulate(val, "RefreshableStatus", &a.RefreshableStatus)
			delete(rawMsg, key)
		case "role":
			err = unpopulate(val, "Role", &a.Role)
			delete(rawMsg, key)
		case "sqlWebDeveloperUrl":
			err = unpopulate(val, "SQLWebDeveloperURL", &a.SQLWebDeveloperURL)
			delete(rawMsg, key)
		case "scheduledOperations":
			err = unpopulate(val, "ScheduledOperations", &a.ScheduledOperations)
			delete(rawMsg, key)
		case "serviceConsoleUrl":
			err = unpopulate(val, "ServiceConsoleURL", &a.ServiceConsoleURL)
			delete(rawMsg, key)
		case "source":
			err = unpopulate(val, "Source", &a.Source)
			delete(rawMsg, key)
		case "sourceId":
			err = unpopulate(val, "SourceID", &a.SourceID)
			delete(rawMsg, key)
		case "subnetId":
			err = unpopulate(val, "SubnetID", &a.SubnetID)
			delete(rawMsg, key)
		case "supportedRegionsToCloneTo":
			err = unpopulate(val, "SupportedRegionsToCloneTo", &a.SupportedRegionsToCloneTo)
			delete(rawMsg, key)
		case "timeCreated":
			err = unpopulateDateTimeRFC3339(val, "TimeCreated", &a.TimeCreated)
			delete(rawMsg, key)
		case "timeDataGuardRoleChanged":
			err = unpopulate(val, "TimeDataGuardRoleChanged", &a.TimeDataGuardRoleChanged)
			delete(rawMsg, key)
		case "timeDeletionOfFreeAutonomousDatabase":
			err = unpopulate(val, "TimeDeletionOfFreeAutonomousDatabase", &a.TimeDeletionOfFreeAutonomousDatabase)
			delete(rawMsg, key)
		case "timeLocalDataGuardEnabled":
			err = unpopulate(val, "TimeLocalDataGuardEnabled", &a.TimeLocalDataGuardEnabled)
			delete(rawMsg, key)
		case "timeMaintenanceBegin":
			err = unpopulateDateTimeRFC3339(val, "TimeMaintenanceBegin", &a.TimeMaintenanceBegin)
			delete(rawMsg, key)
		case "timeMaintenanceEnd":
			err = unpopulateDateTimeRFC3339(val, "TimeMaintenanceEnd", &a.TimeMaintenanceEnd)
			delete(rawMsg, key)
		case "timeOfLastFailover":
			err = unpopulate(val, "TimeOfLastFailover", &a.TimeOfLastFailover)
			delete(rawMsg, key)
		case "timeOfLastRefresh":
			err = unpopulate(val, "TimeOfLastRefresh", &a.TimeOfLastRefresh)
			delete(rawMsg, key)
		case "timeOfLastRefreshPoint":
			err = unpopulate(val, "TimeOfLastRefreshPoint", &a.TimeOfLastRefreshPoint)
			delete(rawMsg, key)
		case "timeOfLastSwitchover":
			err = unpopulate(val, "TimeOfLastSwitchover", &a.TimeOfLastSwitchover)
			delete(rawMsg, key)
		case "timeReclamationOfFreeAutonomousDatabase":
			err = unpopulate(val, "TimeReclamationOfFreeAutonomousDatabase", &a.TimeReclamationOfFreeAutonomousDatabase)
			delete(rawMsg, key)
		case "timeUntilReconnectCloneEnabled":
			err = unpopulate(val, "TimeUntilReconnectCloneEnabled", &a.TimeUntilReconnectCloneEnabled)
			delete(rawMsg, key)
		case "usedDataStorageSizeInGbs":
			err = unpopulate(val, "UsedDataStorageSizeInGbs", &a.UsedDataStorageSizeInGbs)
			delete(rawMsg, key)
		case "usedDataStorageSizeInTbs":
			err = unpopulate(val, "UsedDataStorageSizeInTbs", &a.UsedDataStorageSizeInTbs)
			delete(rawMsg, key)
		case "vnetId":
			err = unpopulate(val, "VnetID", &a.VnetID)
			delete(rawMsg, key)
		case "whitelistedIps":
			err = unpopulate(val, "WhitelistedIPs", &a.WhitelistedIPs)
			delete(rawMsg, key)
		}
		if err != nil {
			return fmt.Errorf("unmarshalling type %T: %v", a, err)
		}
	}
	return nil
}